Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

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

Required scope: message:write.

Path Parameters

id
string
required

OTP identifier returned by Rewrite.

Example:

"748395130237498412"

Body

application/json
to
string
required

Destination number used when the OTP was created.

Example:

"+5511999999999"

code
string
required

Numeric OTP code provided by the user.

Required string length: 4 - 10
Example:

"478201"

Response

200 - application/json

Successful response

ok
boolean
required
data
object
required