Add your mobile number for alert texts

POST
/v1/members/me/mobile

Texts a six-digit code to the number from the workspace's own texting number, through the same destination checks and trust limits as any text the platform starts. Nothing is texted to the number until it is confirmed. At most three numbers a day.

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
number*string

Your mobile number with its country code, for example +14155550142.

Response Body

The mobile, now waiting for the code that was texted to it

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 \  -H "Authorization: Bearer $VOICELAYER_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "number": "+14155550142"  }'
Example Response
{  "status": "waiting",  "last4": "0142",  "textsUnavailable": null,  "alertTextsPerDay": 20}