Page through conversation messages
#Operation ID: listMessages
relayToken/v1/conversations/{conversation_id}/messagesReactions are nested under their target messages. URL previews can be folded into the preceding text message.
Request
Path parameters
conversation_idstringRequiredPercent-encoded public resource identifier, not a database row ID.
Validation rules
- Minimum length
- 1
- Pattern
- ^[^\p{Cc}\p{Cf}]+$
Query parameters
limitintegerOptionalMaximum number of items in this page.
Default:50Validation rules
- Minimum
- 1
- Maximum
- 200
cursorstringOptionalOpaque next_cursor from the previous page, bound to the route, query, and database.
Validation rules
- Minimum length
- 1
- Pattern
- ^[^\p{Cc}\p{Cf}]+$
include_attachmentsstringOptionalInclude attachment metadata in messages and attachment parts. Accepts true, false, 1, or 0. Word spellings are case-insensitive.
Default:"false"Validation rules
- Pattern
- ^([Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]|[01])$
qstringOptionalCase-insensitive search of decoded message text in this conversation.
search_modestringOptionalText search matching mode.
Default:"contains"Allowed:"contains""exact"
Responses
200A page of messages.
Content type application/json
400, 401, 404, 500, 503Error responses
- 400
- Malformed JSON, query parameter, cursor, destination selection, or resource identifier.
- 401
- Missing or invalid bearer token.
- 404
- The requested resource was not found.
- 500
- The request failed.
- 503
- The database, sender, Messages access, or request store is unavailable.
Content type application/json
Headers on every response
X-Request-IDstringRequiredRequest correlation identifier.