v1
latestOpenAPI 3.0.32026-07-24156161.2 MBStreams Service
OTP Auth Request
Send a one-time password (OTP) to a recipient. TextPeak generates the code, delivers it using the stream's configured OTP template and channel, and returns a request_uuid you reference when verifying.
- Fails with 402 if the account balance is depleted, or 429 if the recipient's OTP request cap is reached.
- Use retry: true to resend to the same recipient.
Authentication: stream token in the Authorization header (see Authentication in the API Overview).
post/streams/otp/auth
Request body
Example request
{
"recipient_phone": "447700900123",
"event": "verification_code",
"template_variables": {
"first_name": "Lando"
},
"retry": true
}Response
The OTP was accepted for delivery.
Example response
{
"status": true,
"request_uuid": "b3f1c2a4-5d6e-47f8-9a0b-1c2d3e4f5a6b",
"code": "4821"
}