Skip to navigation

Get messages around a message

Returns one window of messages centred on an anchor message.

Cursors

older is a before cursor for GET /partner/v1/accounts/{creatorId}/conversations/{conversationId}/messages, and newer is a cursor for GET /partner/v1/accounts/{creatorId}/conversations/{conversationId}/messages/after.

Unknown anchors

An anchor that cannot be resolved (withdrawn, in another conversation, or unknown) returns anchor: null with an empty page. It is never a 404, so message ids cannot be probed.

Messages carry the same fields as in the conversation’s message history, and each message’s tip is always null.

Required scopes: read:messages.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:read:messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

conversationIdstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Query parameters

anchorstringRequired1-64 characters
The message to centre the window on.
limitintegerOptional>=1
How many messages the window holds. Values above 100 are clamped to 100.

Response

The window.
conversationobject
The thread, or null before its first message.
anchorobject or null
messageslist of objects
olderstring or null

A before cursor for listMessages.

newerstring or null

A cursor for listMessagesAfter.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error