All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| get_whats_app_phone_number | GET /v1/whatsapp/phone-numbers/{phoneNumberId} | Get phone number |
| get_whats_app_phone_numbers | GET /v1/whatsapp/phone-numbers | List phone numbers |
| purchase_whats_app_phone_number | POST /v1/whatsapp/phone-numbers/purchase | Purchase phone number |
| release_whats_app_phone_number | DELETE /v1/whatsapp/phone-numbers/{phoneNumberId} | Release phone number |
models::GetWhatsAppPhoneNumber200Response get_whats_app_phone_number(phone_number_id) Get phone number
Retrieve the current status of a purchased phone number. Used to poll for Meta pre-verification completion after purchase.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| phone_number_id | String | Phone number record ID | [required] |
models::GetWhatsAppPhoneNumber200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::GetWhatsAppPhoneNumbers200Response get_whats_app_phone_numbers(status, profile_id) List phone numbers
List all WhatsApp phone numbers purchased by the authenticated user. By default, released numbers are excluded.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| status | Option<String> | Filter by status (by default excludes released numbers) | ||
| profile_id | Option<String> | Filter by profile |
models::GetWhatsAppPhoneNumbers200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::PurchaseWhatsAppPhoneNumber200Response purchase_whats_app_phone_number(purchase_whats_app_phone_number_request) Purchase phone number
Initiate purchasing a WhatsApp phone number. Payment-first flow: the user does not pick a specific number. The system either creates a Stripe Checkout Session (first number) or increments the existing subscription quantity and provisions inline (subsequent numbers). Requires a paid plan. The maximum number of phone numbers is determined by the user's plan.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| purchase_whats_app_phone_number_request | PurchaseWhatsAppPhoneNumberRequest | [required] |
models::PurchaseWhatsAppPhoneNumber200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::ReleaseWhatsAppPhoneNumber200Response release_whats_app_phone_number(phone_number_id) Release phone number
Release a purchased phone number. This will: 1. Disconnect any linked WhatsApp social account 2. Decrement the Stripe subscription quantity (or cancel if last number) 3. Release the number from Telnyx 4. Mark the number as released
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| phone_number_id | String | Phone number record ID | [required] |
models::ReleaseWhatsAppPhoneNumber200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]