Skip to main content

Register Phone Number with a 6-Digit PIN

POST/v1/phone-numbers/{id}/register

Register the phone number using a 6-digit PIN.

Authentication

Send Authorization: Bearer <API_KEY> in the request headers, with the required scope phone_numbers:manage. Which resources an API Key can reach is determined by its current authorization scope.

Request​

Base URL: https://api.bluehola.com

Parameters​

NameInRequiredType / constraintsDescription
idpathYesstringPlatform-scoped phone number ID, pn_...

Request body​

A request body is required.

Request body fields​

FieldTypeRequiredDescription
pinstringYes6 digits

Content-Type: application/json Schema:

{
"type": "object",
"properties": {
"pin": {
"type": "string",
"description": "string · required — 6 digits"
}
},
"required": [
"pin"
]
}

Response​

StatusDescription
200OK
4xxClient error

For the common error envelope and how to handle it, see Error Codes.

Notes​

pin carries a dual meaning: it is both "the two-step verification PIN being set on first registration" and "the existing PIN when the number already has two-step verification enabled" — Meta does not distinguish the two cases.

Preconditions​

This endpoint does not check whether request-code/verify-code have been completed:

  • A number already verified in WhatsApp Manager → can be registered directly.
  • Calling register directly on a number with unverified ownership → rejected by Meta (go through request-code/verify-code first).

Rate limit​

At most 10 registration requests in 72 hours (a Meta-side rule); exceeding it blocks that number's registration capability for 72 hours. On success the local state is hard-coded to connected, without parsing Meta's response body for confirmation.

Registering again after a display name is approved​

After a new display name is approved, you must call this endpoint for the new name to reach WhatsApp users — within 14 days of approval, or the name has to be submitted for review again. Once registration succeeds, the platform refreshes the number from Meta automatically, so GET /v1/phone-numbers/{id} returns the new name right away. If that refresh fails, the registration result is unaffected.

Customer Keys​

Customer Keys can call this endpoint, but only for phone numbers their customer entity currently owns; any other number returns 403. The rest of the lifecycle group — deregister, request-code, verify-code and two-step-pin — is not open to customer Keys.