Skip to main content
POST
Create Webhook

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
string

Path Parameters

instance
string
required

Instance ID from the Hypersender dashboard.

Example:

"{{ instance_id }}"

Body

application/json
url
string
required

Where Hypersender sends the events.

Maximum string length: 255
Example:

"https://example.com/hypersender"

events
enum<string>[]
required

Events to send to this URL.

Minimum array length: 1
Available options:
message.phone.received,
message.phone.sent,
message.phone.delivered,
message.send.failed,
message.send.expired,
message.notification.scheduled,
message.notification.failed,
message.phone.ussd,
phone.heartbeat.received,
phone.heartbeat.online,
phone.heartbeat.offline,
phone.heartbeat.missed,
phone.heartbeat.disabled,
phone.logout
Example:
name
string

A name to recognise the webhook in the dashboard. Default API webhook.

Maximum string length: 100
Example:

"n8n"

authorization_secret
string

Sent unchanged in the Authorization header of every webhook, so your endpoint can reject requests that are not from Hypersender. Stored encrypted and never returned.

Maximum string length: 512
Example:

"a-long-random-secret"

Response

The webhook was created.

data
object