Send a one-time code to a phone number or an email address
post/verify/services/{id}/verifications
Send a one-time code to a phone number or an email address. channel auto uses the service's order and falls back by itself when a channel fails. Rate limits, fraud guards, opt-outs and the plan's allowance are checked first; a refusal says which rule and what to do. The code itself is never returned (only in the mock, where nothing is sent).
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Mcp
rivier_verify_start- Graphql
Mutation.voiceVerifyStartCreate- Sdk
verify.start- Cli
verify start
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- tostringrequiredA phone number (E.164, or national with the service's default country) or an email address At most 320 characters.
- channelstring or autoDefault: auto.
- localestringAt most 10 characters.
- customCodestringA code you made, when the service allows custom codes At most 10 characters. Pattern: ^[A-Za-z0-9]+$.
- ipstringThe caller's network address, for rate limits and fraud checks At most 64 characters.
- userIdstringAt most 120 characters.
- deviceIdstringAt most 120 characters.
- tagsobject
- amountstringAt most 40 characters.
- payeestringAt most 120 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring