Skip to main content
POST
Node.js

Autorizações

Authorization
string
header
obrigatório

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

Required scope: message:write.

Cabeçalhos

Idempotency-Key
string

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

Required string length: 1 - 64
Exemplo:

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

Corpo

application/json
to
string
obrigatório

Destination number that should receive the OTP.

Exemplo:

"+5511999999999"

prefix
string

Short brand prefix included in the OTP SMS.

Required string length: 1 - 32
Exemplo:

"Rewrite"

expiresIn
integer

Minutes until the OTP expires.

Intervalo obrigatório: 1 <= x <= 15
Exemplo:

5

Resposta

200 - application/json

Successful response

ok
boolean
obrigatório
data
object
obrigatório