Skip to main content
GET
List messages

Authorizations

x-api-key
string
header
required

Your ps_ API key

Query Parameters

startDate
string<date-time>

ISO 8601 lower bound (inclusive) on createdAt. Must be ≤ endDate.

endDate
string<date-time>

ISO 8601 upper bound (inclusive) on createdAt.

page
integer
default:1

Page, ≥ 1 (default 1). page × pageSize may not exceed 10000 (400 INVALID_PAGINATION).

Required range: x >= 1
pageSize
integer
default:30

Items per page, 1–100 (default 30).

Required range: 1 <= x <= 100
status
string

CSV of QUEUED, SENT, DELIVERED, READ, PLAYED, FAILED, CANCELED (case-insensitive). Implies outbound only. Any other value → 400 INVALID_STATUS.

direction
enum<string>

in or out (else 400 INVALID_DIRECTION). out leaves out outbound rows that had no send request (APP, LAYER, native-inbox CHATWOOT).

Available options:
in,
out

A phone number in any format, or a template name.

templateId
string

Template id or name. Implies outbound only.

window
enum<string>

open or closed — service-window state recorded at send time (else 400 INVALID_WINDOW). Implies outbound only.

Available options:
open,
closed

Response

Messages

data
object[]
page
integer
pageSize
integer
total
integer
totalPages
integer
notice
enum<string>
Available options:
PII_RELAY_ONLY