Skip to main content
GET
List all messages
This endpoint requires an API key with the messages.read scope.
You see the same conversations as in your partner dashboard: programs you’re enrolled in, and programs that have messaged you. Listing messages doesn’t mark them as read.

Authorizations

Authorization
string
header
required

Partner API key

Scopes

messages.read

Read your messages with programs

Headers

Dub-Version
enum<string>

The API version to use. Defaults to the version your API key was created with.

Available options:
mozart

Query Parameters

pageSize
integer
default:50

The number of items per page.

Required range: 1 <= x <= 100
Example:

50

startingAfter
string

The ID of the last item on the current page. Returns the page after it.

endingBefore
string

The ID of the first item on the current page. Returns the page before it.

programId
string

The ID or slug of the program to filter messages by. If not provided, messages with all programs are returned.

Maximum string length: 255
sourceType
enum<string>

Only return messages sent by you (partner) or by the program (program).

Available options:
partner,
program
unread
boolean

Only return messages that are unread (true) or read (false) by the recipient. Without sourceType, this returns messages from programs.

Response

The list of messages.

data
object[]
required
hasMore
boolean
required

Whether there are more messages in the direction you're paging.