POST URL: /api/v1/channels/
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Body
The channel type to create. One of:
webchat, widget, email, whatsapp, telegram, instagram, x, sms.Channel-specific credentials and settings. Required fields differ by type — see the config reference below.
Whether the channel should be active immediately after creation.
Config reference by channel type
telegram
telegram
| Field | Type | Description |
|---|---|---|
bot_token | string | Your Telegram bot token from @BotFather. PingBack uses this to register a webhook automatically. |
whatsapp / instagram
whatsapp / instagram
| Field | Type | Description |
|---|---|---|
phone_number_id | string | The phone number ID from your Meta app. |
access_token | string | Your Meta permanent or long-lived access token. |
verify_token | string | A token you choose — used to verify the webhook during setup. |
x (Twitter)
x (Twitter)
| Field | Type | Description |
|---|---|---|
api_key | string | X (Twitter) API key. |
api_secret | string | X API secret. |
access_token | string | Access token for your X app. |
access_token_secret | string | Access token secret. |
bearer_token | string | Bearer token for read-only API access. |
Response
UUID of the newly created channel.
UUID of the business that owns this channel.
The channel type.
The stored configuration. For WhatsApp and Instagram channels, PingBack appends a
_meta_setup_instructions key containing the callback_url and verify_token you need to register in your Meta app dashboard.Whether the channel is active.
ISO 8601 timestamp of channel creation.
Example
Response example
Update a channel
Method:PATCH URL: /api/v1/channels/{channel_id}
Updates an existing channel’s type, config, or active status. The same config rules by channel type apply.
Path parameters
The UUID of the channel to update.
Body
Same fields as Create Channel:type, config, is_active.
Example
Delete a channel
Method:DELETE URL: /api/v1/channels/{channel_id}
Permanently removes a channel from your business. This cannot be undone.
Path parameters
The UUID of the channel to delete.
Example
Response example
Errors
| Status | Meaning |
|---|---|
| 400 | Bad request — missing required config fields or invalid channel type |
| 401 | Unauthorized — missing or invalid token |
| 402 | Plan limit reached — upgrade required to add this channel type |
| 404 | Channel not found |