Skip to main content
POST
Verify a mobile OTP (v1)
Step 2 of mobile number verification. Send the sessionId from Send a mobile OTP and the code the user typed. A match proves the user holds the number. This is a v1 endpoint: the response is a flat object, not the v2 envelope, and there is no billed field.

Environments

Billing

Charged only when the response status is success (the code matched). A charged response carries chargeble and user_consent, both the string "true", spelled exactly as shown. An error response is never charged.
This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.

Request

How to read the result

  • status: "success": the code matched. details is a short confirmation string.
  • A 200 response without status: "success" means the code did not match or the session expired. It is not charged, and its other keys are not part of the contract. Let the user retry or send a new OTP.

Errors

Every wrapped detail object also carries tranx_id and timestamp.

Test scenarios

Questions about this product are answered in the Mobile FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

application/json
session_id
string
required

The sessionId returned when the OTP was sent.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

otp
string
required

The code the user typed.

Example:

"123456"

user_id
string

Your own reference for the end user.

workflow_session_token
string

Pass only when the call is part of an idto workflow session.

Response

The call completed. Charged only when status is success.

status
string
required
tranx_id
string
required

idto transaction id for this call.

timestamp
string
required
details
string
chargeble
enum<string>

Present and "true" only when the call was charged.

Available options:
true

Present and "true" only when the call was charged.

Available options:
true
Last modified on December 1, 2026