Confirm your mobile number
POST
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.
apiKeyheader
AuthorizationBearer <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.
application/json- body
code*stringThe six digits that were texted to you.
The mobile, now confirmed
application/json- response
status*stringValue in
"none""waiting""confirmed""stopped"last4*string|nulltextsUnavailable*|Value in
"no_texting_number""not_trusted_yet"nullalertTextsPerDay*integer|nullcurl -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}