Verify a number
POST/whatsapp/verifyNumber
Part 2: you verify the code you received, and now the number is verified and belongs to you.
This API allows you to add a number to your account, in order to use the Step 2: Onboarding API. In order to use the number, we must verify the number. You can request the verification code by SMS or by a phone call. This is part 2 of Step 1: Register a number.
This process is a two-part process:
- Part 1: you register the number by asking for the verification code. After submitting the registerNumber API, you will get an SMS or a phone call with a 6-digit verification code.
- Part 2: you verify the code you received (this page). Now the number is verified and belongs to you.
Registered phone numbers will wait in your account for 90 days, until
expiration. During this time you must create an account with that
number (Step 2: Onboarding). If
you did not create an account with that phone number, after 90 days you
will have to register the number again.
Settings
| Setting | Value |
|---|---|
| URL | https://partners.99digital.co.il/api/whatsapp/verifyNumber |
| Method | JSON via POST |
| Header | Authorization: Bearer {{access_token}} — the access token can be received from the Access Token API. |
Requires the Add new number permission (Verified Numbers).
Body
| Parameter | Description / Example | Maximum length | Remarks | Mandatory |
|---|---|---|---|---|
whatsapp | The same WhatsApp number you used to request the code with the registerNumber API | 20 | Use the country code and the number, digits only, without +. For example: 972501234567 | Yes |
code | The 6-digit code | 6 | 6 digits, numbers only. Remove any hyphens if the code received by SMS contains any. You can try up to 3 times. | Yes |
Response
{
"status": "OK",
"whatsapp": "972501234567",
"expiration": 1737109621,
"reason": 1
}
Response explained
| Parameter | Description |
|---|---|
status | OK or FAIL. "OK" means the verification was successful. "FAIL" means error. |
whatsapp | The WhatsApp number. |
expiration | The expiration timestamp (Unix time, in seconds), 90 days from now. Create the WhatsApp account with this number before then. |
reason | The status explanation — see the table below. |
| Reason | Explanation |
|---|---|
| 1 | Not FAIL: the status is OK. |
| 2 | Wrong credentials: the Authorization header is missing or not Bearer <token>, or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). |
| 3 | The access token does not exist or has expired. Please generate another one with the Access Token API. |
| 4 | The WhatsApp number is empty or wrong (digits only, up to 20). |
| 7 | The number you are trying to verify has already been verified by you. |
| 10 | code is empty or not a 6-digit number. |
| 11 | The WhatsApp number you are trying to verify is not a number that is waiting to be verified (in your account). Please use the registerNumber API (part 1) first. |
| 12 | The code is wrong, please try again. You can try up to 3 times. |
| 15 | Unknown error, please contact support. Also returned when the request body is not valid JSON. |
Request
Responses
- 200
- 403
The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.
Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.