Skip to main content
PUT
/
v0
/
user
/
me
/
phone
/
code
Verify Phone
curl --request PUT \
  --url https://api.sumvin.com/v0/user/me/phone/code \
  --header 'Content-Type: application/json' \
  --header 'x-sumvin-pat: <api-key>' \
  --data '
{
  "verification_code": "123456"
}
'
{
  "_links": {
    "self": {
      "href": "<string>",
      "method": "GET",
      "templated": false,
      "description": "<string>"
    },
    "wallets": {
      "href": "<string>",
      "method": "GET",
      "templated": false,
      "description": "<string>"
    },
    "kyc-status": {
      "href": "<string>",
      "method": "GET",
      "templated": false,
      "description": "<string>"
    },
    "kyc-token": {
      "href": "<string>",
      "method": "GET",
      "templated": false,
      "description": "<string>"
    }
  },
  "phone_number": "<string>",
  "status": "<string>",
  "message": "<string>",
  "expires_in_seconds": 123
}

Authorizations

x-sumvin-pat
string
header
required

Personal access token issued to the Sumvin CLI. Send it in the x-sumvin-pat header to authenticate as the owning user.

Headers

x-sumvin-token
string | null
x-sumvin-pat
string | null
x-juno-jwt
string | null
x-juno-orgid
string | null

Tenant org ID for multi-tenant auth

X-Timestamp-Format
string

Controls how timestamp fields are serialized in JSON response bodies.

Default (header omitted or any other value): epoch milliseconds as integers. iso8601: UTC ISO 8601 strings of the form YYYY-MM-DDTHH:MM:SSZ.

Example: with X-Timestamp-Format: iso8601, the field value 1704067200000 becomes "2024-01-01T00:00:00Z".

Affected fields (recursively, in dicts and arrays): any field whose name ends in _at, plus the literal field names timestamp, period_start, and period_end. All other fields are passed through unchanged.

Only iso8601 is recognized. Any other value (or omitting the header) yields the default epoch-ms representation; the server does not reject unknown values, so this is documented as an example rather than an enum to keep generated clients permissive.

Example:

"iso8601"

Body

application/json
verification_code
string
required

6-digit verification code received via SMS. Codes expire after 10 minutes.

Required string length: 6
Pattern: ^\d{6}$
Example:

"123456"

Response

Phone number verified successfully

HAL-style hypermedia links for navigation.

phone_number
string
required

Phone number being verified in E.164 format.

status
string
required

Verification status: 'code_sent' or 'verified'.

message
string
required

Human-readable status message.

expires_in_seconds
integer | null

Seconds until the verification code expires. Null after successful verification.