curl --request GET \
--url https://api.indm.social/v1/media \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.indm.social/v1/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.indm.social/v1/media"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3d2a7f10-9c4e-4b8a-a1f2-6e0b5d7c9a31",
"account_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"ig_media_id": "18034567891234567",
"type": "reel",
"caption": "Three things I plant before the last frost. Comment GUIDE for the full list.",
"permalink": "https://www.instagram.com/reel/C9xYz12AbCd/",
"comments_count": 214,
"like_count": 3120,
"automations_count": 1,
"posted_at": "2026-11-05T07:30:00Z"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "invalid_request",
"code": "button_label_too_long",
"message": "The button label is 26 characters. Instagram shows up to 20, so it would be cut off.",
"param": "button_label",
"doc_url": "https://docs.indm.social/errors#button_label_too_long"
}
}{
"error": {
"type": "authentication_error",
"code": "api_key_expired",
"message": "This API key expired on 3 Feb 2027. Create a new one under Settings → API keys.",
"doc_url": "https://docs.indm.social/errors#api_key_expired"
}
}{
"error": {
"type": "not_found",
"code": "media_not_found",
"message": "There's no post with that id in this workspace. GET /v1/media lists them; refresh the account first if it was just published.",
"param": "media_id",
"doc_url": "https://docs.indm.social/errors#media_not_found"
}
}{
"error": {
"type": "rate_limited",
"code": "rate_limited",
"message": "That's more than 120 requests a minute on one key. Wait 18s and try again.",
"doc_url": "https://docs.indm.social/errors#rate_limited"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Something went wrong on our end. Try again; if it keeps happening, quote request req_8Qm2ZcY4vN7tLp1K to support@indm.social.",
"doc_url": "https://docs.indm.social/errors#internal_error"
}
}List media
Posts and reels inDM has synced, newest first. Stories are left out: they expire in a day, which is shorter than most automations are meant to run.
This is what inDM has synced, which can trail Instagram by a few minutes. Refresh content pulls in anything newer.
Needs a read or full key.
curl --request GET \
--url https://api.indm.social/v1/media \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.indm.social/v1/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.indm.social/v1/media"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3d2a7f10-9c4e-4b8a-a1f2-6e0b5d7c9a31",
"account_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"ig_media_id": "18034567891234567",
"type": "reel",
"caption": "Three things I plant before the last frost. Comment GUIDE for the full list.",
"permalink": "https://www.instagram.com/reel/C9xYz12AbCd/",
"comments_count": 214,
"like_count": 3120,
"automations_count": 1,
"posted_at": "2026-11-05T07:30:00Z"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "invalid_request",
"code": "button_label_too_long",
"message": "The button label is 26 characters. Instagram shows up to 20, so it would be cut off.",
"param": "button_label",
"doc_url": "https://docs.indm.social/errors#button_label_too_long"
}
}{
"error": {
"type": "authentication_error",
"code": "api_key_expired",
"message": "This API key expired on 3 Feb 2027. Create a new one under Settings → API keys.",
"doc_url": "https://docs.indm.social/errors#api_key_expired"
}
}{
"error": {
"type": "not_found",
"code": "media_not_found",
"message": "There's no post with that id in this workspace. GET /v1/media lists them; refresh the account first if it was just published.",
"param": "media_id",
"doc_url": "https://docs.indm.social/errors#media_not_found"
}
}{
"error": {
"type": "rate_limited",
"code": "rate_limited",
"message": "That's more than 120 requests a minute on one key. Wait 18s and try again.",
"doc_url": "https://docs.indm.social/errors#rate_limited"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Something went wrong on our end. Try again; if it keeps happening, quote request req_8Qm2ZcY4vN7tLp1K to support@indm.social.",
"doc_url": "https://docs.indm.social/errors#internal_error"
}
}Authorizations
An API key from Settings → API keys in the inDM app, sent as
Authorization: Bearer indm_.... Keys belong to one workspace and carry a scope:
read for GET routes and the validate dry run, full for everything. Keep keys on
your server; never ship one to a browser or a mobile app.
Query Parameters
Only this account's media. Leave it out to list every account in the workspace.
How many items per page. From 1 to 100.
1 <= x <= 100The next_cursor from the previous page. Leave it out for the first page. Cursors
are opaque; pass them back exactly as you received them.