Get media from a chat
Chats
Get media from a chat
Returns a cursor-paginated list of media items shared between the authenticated user and the specified user. Media is extracted from chat messages and ordered by date (newest first).
Pagination Flow:
- First request: Omit the
cursorparameter, returns first 20 media items (or specified limit) - Subsequent requests: Use the
nextCursorfrom the previous response - End of results:
nextCursorwill benull
{
"data": [...media items...],
"nextCursor": "..." // Pass this to the next request to get the following page
}
GET
Get media from a chat
Required scope
read:chat— Read chat conversations, messages, and chat-related data. This includes viewing chat lists and message history.
Authorizations
OAuth 2.0 access token, presented as a JWT bearer token in the Authorization header. Obtain a token via the authorization-code flow; the scopes granted to the token determine which operations it may call.
Headers
API version to use for the request
Example:
"2025-06-26"
Path Parameters
Query Parameters
Cursor for fetching the next page of media
Filter by media type (image, video, audio, document)
Available options:
image, video, audio, document Number of media items to return (1-50, default: 20)
Required range:
1 <= x <= 50