# Register Phone Number with a 6-Digit PIN

Canonical: https://docs.bluehola.com/docs/assets-phone-numbers/post-v1-phone-numbers-id-register
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--post">POST</span><code class="endpoint-path">/v1/phone-numbers/{id}/register</code></div>

Register the phone number using a 6-digit PIN.

:::note[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

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | Platform-scoped phone number ID, `pn_...` |

### Request body
A request body is required.
### Request body fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pin` | string | Yes | 6 digits |

Content-Type: `application/json`
Schema:

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

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## 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.
