POST
/
notifications
/
policies
curl --request POST \
  --url https://eu.sequencehq.com/api/notifications/policies \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Dev team integration webhooks",
  "notificationTypes": [
    "CUSTOMER_CREATED"
  ],
  "recipients": [
    "https://api.company.com/webhooks"
  ],
  "channel": "WEBHOOK",
  "webhookSecret": "whsec_UserSubmittedSecret1234567890abc"
}'
{
  "id": "75da306e-8e25-47ac-8079-b695c369e2ef",
  "createdAt": "2022-06-28T16:47:00Z",
  "sequenceAccountId": "c4602d51-0fb4-4b48-b689-6ba28f540d1e",
  "name": "Dev team integration webhooks",
  "notificationTypes": [
    "CUSTOMER_CREATED"
  ],
  "recipients": [
    "https://api.company.com/webhooks"
  ],
  "channel": "WEBHOOK",
  "webhookSecret": "whsec_AutoGeneratedSecret01234567890ab"
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Body

application/json

Response

201
application/json

Created

The response is of type object.