Get messages

Description

Summary: Retrieves a paginated list of messages from streams with optional filtering. Details: This endpoint returns messages with support for filtering by status, stream ID, phone number, and date range. Results are paginated and returned as a JSON array of message objects along with pagination metadata. Each message includes details such as its ID, content, status, associated stream, timestamps, and delivery information.

Authentication & Scopes

Authentication is handled via an API key provided in the Authorization header. No OAuth scopes are defined; access is granted or denied based on the validity of the key.

MethodDetails
API KeyPass your API key directly in the Authorization header value (not as a Bearer token).

Headers

HeaderRequiredDescription
AuthorizationYesThe API key that verifies your access to the API.
acceptNoExpected response format. Default: application/json.
Content-TypeNoRequest content type. Default: application/json.

Parameters

All parameters are passed as query parameters and are optional.

ParameterTypeRequiredDescription
itemsPerPagenumberNoThe number of items to include per page. Default: 30.
pagenumberNoThe page number for pagination. Default: 1.
statusnumberNoFilter messages by status code (e.g., 2).
streamId[]stringNoFilter messages by one or more stream IDs. Can be repeated for multiple streams.
phonestringNoFilter messages by phone number.
startDatestringNoFilter messages created on or after this date.
endDatestringNoFilter messages created on or before this date.

Request Body

This endpoint does not use a request body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
string
string
string
string
string
string
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json