Skip to main content
POST
Create Webhook
Add a webhook to this instance from code. It’s the same webhook you can create in the dashboard: Hypersender sends the events you choose to the URL, with the same payloads. Tools such as the n8n Hypersender Trigger use this to register their URL when a workflow is turned on, and delete it when it’s turned off.
  • events takes one or more event names, for example message.phone.received. Events this instance type doesn’t send are rejected.
  • Set authorization_secret to a long random value. Hypersender sends it unchanged in the Authorization header, so your endpoint can reject requests that don’t have it. It’s stored encrypted, and no endpoint returns it.
  • Each webhook counts toward your plan’s webhook limit. Over the limit, you get a 403 with the reason.

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
Last modified on November 27, 2026