Direct Messages

List messages

Returns a paginated list of messages in a chat, ordered by external_posted_at descending (pending outbound messages without external_posted_at are ordered by created_at).

get/api/chats/{chat_id}/messages

Request

  • Base URL
    https://api.postproxy.dev
  • URL
    https://api.postproxy.dev/api/chats/{chat_id}/messages
  • Auth
    HTTP bearer

Query parameters

profile_group_idstring

Profile group context for the request. Optional when the API key is scoped to a profile group (that group is used automatically); with a full-access key, defaults to the first profile group in the account.

pageinteger

Page number (1-based). Passing 0 returns page 1.

per_pageinteger

Number of items per page.

direction'inbound' | 'outbound'

Filter by direction: inbound or outbound

status'pending' | 'published' | 'failed_waiting_for_retry' | 'failed' | 'received'

Filter by message status

Response

Paginated list of messages.

totalinteger
pageinteger
per_pageinteger

Changes

No recorded changes to this operation across all 1 revision of this API.