Skip to main content
POST
/
platforms
/
whatsapp
/
phone-numbers
/
{id}
/
register
Register a phone number with WhatsApp Business
curl --request POST \
  --url https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{id}/register \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pin": "123456"
}
'
{
  "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

6-digit two-step verification PIN

pin
string

PIN is the 6-digit two-step verification PIN to set on the phone number. This PIN is required for future re-registration and must be stored securely.

Example:

"123456"

Response

Phone number registered