List the photos of a conversation
const url = 'https://app.mondochat.io/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/photos?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.mondochat.io/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/photos?limit=50' \ --header 'Authorization: Bearer <token>'Lists the photos and videos of a conversation the caller can see, newest first, one page at a time. View-once media and voice notes are never listed. Takes a session token. Call it again to get fresh links for media whose link failed. See https://docs.mondochat.io/guides/media/.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
One page of a list, with a cursor for the next page.
object
The entries on this page.
A photo, video, voice note or avatar and the links to read it.
object
The media’s id.
What the media is.
pending until the upload is completed, held while it waits for the receiver’s consent or for moderation, rejected or deleted once it is gone.
The id of the user who uploaded it.
Example
{ "items": [ { "full_url": "https://media.example.test/p/0199d6a0-4000-7000-8000-000000000001/full.webp", "height": 2048, "id": "0199d6a0-4000-7000-8000-000000000001", "kind": "photo", "status": "ready", "thumb_url": "https://media.example.test/p/0199d6a0-4000-7000-8000-000000000001/thumb.webp", "uploader_id": "0199d6a0-1000-7000-8000-000000000001", "width": 1536 } ]}Problem
An RFC 9457 problem: the body of every error answer.
object
The stable error code to branch on, such as policy_denied.
What went wrong this time, when there is more to say.
For validation, one entry per invalid field.
One invalid field.
object
The path to the field.
What is wrong with it.
The path of the request.
For policy_denied and limit_reached, the rule or limit that refused the request; for forbidden, a short cause such as you_blocked; for banned, temporary when the ban expires.
The HTTP status code.
A short summary of the problem.
A URL that names the problem, https://app.mondochat.io/problems/<code>.
Example
{ "code": "policy_denied", "detail": null, "instance": "/v1/conversations/0199d6a0-2000-7000-8000-000000000001", "reason": "pins", "status": 403, "title": "Policy denied", "type": "https://app.mondochat.io/problems/policy_denied"}