Confirm your mobile number

POST
/v1/members/me/mobile/confirm

Confirms the number with the code that was texted to it (valid 15 minutes, five tries). Once confirmed, the same alerts your workspace sends by email to its Admins are sent to you by text as well.

Requires an API key with the workspace:write scope.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Request Body

application/json
  1. body
code*string

The six digits that were texted to you.

Response Body

The mobile, now confirmed

application/json
  1. response
status*string
Value in"none""waiting""confirmed""stopped"
last4*string|null
textsUnavailable*|
Value in"no_texting_number""not_trusted_yet"null
alertTextsPerDay*integer|null
Example Request
curl -X POST https://api.vlayers.ai/v1/members/me/mobile/confirm \  -H "Authorization: Bearer $VOICELAYER_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "code": "123456"  }'
Example Response
{  "status": "confirmed",  "last4": "0142",  "textsUnavailable": null,  "alertTextsPerDay": 20}