Notification Policies
Create Notification policy
Changed onCreate a new Notification Policy, which will send matching notifications to the recipients you specify.
post/notifications/policies
Request
- Base URLhttps://sandbox.sequencehq.com/api
- URLhttps://sandbox.sequencehq.com/api/notifications/policies
- Authnone declared. Required headers: Authorization
Headers
Authorizationstring required
Your API credentials. Eg. Basic {credentials}.
sequence-version'2024-07-30'
Use this header to select an API version
Request body
Example request
{
"name": "Dev team integration webhooks",
"notificationTypes": [
"CUSTOMER_CREATED"
],
"recipients": [
"https://api.company.com/webhooks"
],
"channel": "WEBHOOK",
"webhookSecret": "whsec_UserSubmittedSecret1234567890abc"
}Response
Created
Example response
{
"id": "9c4c54e7-59da-44ae-9cc5-7fd81be7c133",
"createdAt": "2022-06-28T16:47:00Z",
"sequenceAccountId": "c4602d51-0fb4-4b48-b689-6ba28f540d1e",
"name": "Finance team emails",
"notificationTypes": [
"CUSTOMER_CREATED"
],
"recipients": [
"finance@example.com",
"operations@example.com"
],
"channel": "EMAIL"
}Changes
- warning
deleted the
headerrequest parameterSequence-Version - info
added the new optional
headerrequest parametersequence-version
- warning
- warning
added the new
WATCHTOWER_TASK_ASSIGNEDenum value to the/response property for the response status - info
added the new
WATCHTOWER_TASK_ASSIGNEDenum value to the request property/
- warning