Accounts
List Instagram media
List the posts or stories of one Instagram account so an automation trigger can reference a specific publication by its media ID.
GET
List Instagram media
Use this endpoint to discover the posts or stories of one Instagram account.
Pass the account UUID in the path and
A comment trigger also accepts a public post address. Send
surface in the query string. Your API
key needs the automations:read scope and access to that account.
surface is required and accepts posts or stories. Each item carries
id, surface, media_type, caption, thumbnail_url, instagram_url,
published_at, like_count, and comments_count. Every field except id and
surface can be null when Instagram does not return a value for it.
Reference a publication in a trigger
A comment trigger can bind to one post. Use a returnedid as the reference
value:
url as the
reference type and the address as value.
A story reply or story reaction trigger accepts only the id reference type,
so this endpoint is the way to bind one. Read
Update an automation for the complete trigger
shape.
Paginate the results
Setlimit to an integer from 1 through 50. When next_cursor is a string,
pass it back unchanged as cursor to request the next page. A null
next_cursor means you reached the end of the list.
This read does not change any automation, so it is safe to retry. When
Instagram cannot be reached, the API returns 503 with
api_instagram_media_unavailable. That response is temporary and does not mean
the account is unreachable.

