curl --request POST \
--url https://dev.seqhq.io/api/notifications/policies/{id}/recipients \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recipients": [
"operations@example.com"
]
}
'{
"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"
}Add new recipients to an existing Notification Policy.
curl --request POST \
--url https://dev.seqhq.io/api/notifications/policies/{id}/recipients \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recipients": [
"operations@example.com"
]
}
'{
"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"
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 Notification policy ID
The webhook URLs or email addresses to add to the policy, depending on its channel
["operations@example.com"]OK
Unique ID
"75da306e-8e25-47ac-8079-b695c369e2ef"
Created at
"2022-06-28T16:47:00Z"
Sequence Account which this policy matches
"c4602d51-0fb4-4b48-b689-6ba28f540d1e"
Human-readable name
"Dev team integration webhooks"
The webhook URLs or email addresses which will receive notifications, depending on the channel
["https://api.company.com/webhooks"]Notification channel
WEBHOOK, EMAIL "WEBHOOK"
Set of notification types that this policy matches. If not present this policy will cover all notification types.
CUSTOMER_CREATED, CUSTOMER_UPDATED, CUSTOMER_ARCHIVED, INVOICE_CREATED, INVOICE_ISSUED, INVOICE_UPDATED, INTEGRATION_SYNC_COMPLETED, INTEGRATION_WEBHOOK_HANDLED, MERCHANT_UPDATED, BILLING_SCHEDULE_CREATED, BILLING_SCHEDULE_UPDATED, BILLING_SCHEDULE_ARCHIVED, CREDIT_NOTE_CREATED, CREDIT_NOTE_UPDATED, CREDIT_NOTE_ISSUED, QUOTE_PUBLISHED, QUOTE_ACCEPTED ["CUSTOMER_CREATED"]Webhook secret used to generate a signature header that's sent with an outbound webhook.It can be used to verify the authenticity of received Sequence webhooks. Only available for webhook channel policies.
"whsec_AutoGeneratedSecret01234567890ab"