Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer rw_....

Required scope: message:write.

Headers

Idempotency-Key
string

Optional key used to safely retry the same create request without creating duplicates.

Required string length: 1 - 64
Example:

"msg:login-otp:2026-03-20T14:22"

Body

application/json
Required array length: 1 - 100 elements
to
string
required

Destination number in E.164 format.

Example:

"+5511999999999"

content
string
required

Rendered SMS content to send.

Required string length: 1 - 1600
Example:

"Rewrite: seu codigo e 478201"

tags
object

Optional metadata stored with the message.

Example:
scheduledAt
string<date-time>

When provided, Rewrite schedules the message for later delivery.

Example:

"2026-03-20T14:30:00.000Z"

segmentation
object

Optional segmentation rules for long SMS bodies.

Response

200 - application/json

Successful response

ok
boolean
required
data
object
required