Skip to main content
POST

Authorizations

x-api-key
string
header
required

Your ps_ API key

Headers

Idempotency-Key
string

Retry-safe key: the same key returns the same story.

Body

application/json
type
enum<string>
required

Story kind.

Available options:
text,
image,
video
text
string

Required for text. 1–700 characters.

Required string length: 1 - 700
backgroundColor
string

text only. Default #128C7E.

Pattern: ^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$
textColor
string

text only. Default #FFFFFF; when only backgroundColor is sent, black or white by contrast. Both sent → used as is.

Pattern: ^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$
font
enum<string>
default:system

text only. Font name. Default system.

Available options:
system,
system_text,
script,
system_bold,
morningbreeze,
calistoga,
exo2,
courier
mediaUrl
string

Required for image/video. A public https URL — the only way to pass media (there is no mediaId). Up to 100 MiB; WebP is converted to JPEG.

caption
string

image/video only. Up to 1024 characters.

Maximum string length: 1024
recipients
string[]

1 to 5000 phone numbers (E.164 without +) or JIDs; more than 5000 → 400 VALIDATION_ERROR. Left out → the phone's status privacy.

Required array length: 1 - 5000 elements
deliverAt
string<date-time>

Optional. ISO-8601 date-time to publish later (same rules as deliverAt on /v1/messages/send): stored in UTC, no zone = UTC, past/now publishes right away, invalid → 400 VALIDATION_ERROR. The media is downloaded at publish time. Cancel with DELETE /v1/stories/{id} while QUEUED.

Response

Story queued

id
string
status
enum<string>
Available options:
QUEUED
type
string
recipients
enum<string>
Available options:
explicit,
privacy
deliverAt
string<date-time> | null

Scheduled time in UTC, or null when published right away.