API Reference
Log In
API Reference

Create a Webhook subscription

Creates a Webhook subscription for a given Tenant.

Path Params
string
required

Unique Tenant identifier.

Query Params
string
Defaults to HTTP

Communication protocol: HTTP or SOCKET. Default: HTTP.

Body Params
string
required

The kind of modification type that should result in a notification.

string

Required for connectionType=HTTP. Callback URL where notifications should be received. Must be HTTPS.

string
required

The path to indicate the resource you want the Webhook subscription for. You must belong to the Tenant and/or Subscription for this, and can only listen to events within your Tenant space.

date-time
required

Date and time of Webhook subscription expiration.

string

Affiliate code (brandCode).

string

Required for connectionType=SOCKET. Name of the event to which the client subscribes.

string

If sent, the server generates an HMAC SHA256 hash of the event and attaches it in the HTTP request headers as "integrityHash". The value of this field is used for both client-side and server-side encryption/decryption.

number
Response
201

The Webhook subscription has been successfully created.

Language
Credentials
Click Try It! to start a request and see the response here!