Skip to main content
POST
/
platforms
/
whatsapp
/
phone-numbers
/
{id}
/
request-code
Request a phone number verification code
curl --request POST \
  --url https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{id}/request-code \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "en_US",
  "method": "SMS"
}
'
{
  "error": {
    "code": "resource.not_found",
    "message": "Account not found",
    "meta": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.social-api.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

id
string
required

Connected account ID (sapi_acc_...)

Body

application/json

Verification channel and locale

language
string

Language is the BCP-47 locale used for the verification message (e.g. en_US, fr_FR).

Example:

"en_US"

method
enum<string>

Method is the verification channel. WhatsApp Business API requires SMS or VOICE.

Available options:
SMS,
VOICE
Example:

"SMS"

Response

Code dispatched