You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/api/webhooks.apib
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ You can receive any of the following types of events in webhook payloads.
30
30
+ events (array) - Array of event types this webhook will send. Use the [Events Documentation](#webhooks-documentation) endpoint to list the available event types.
31
31
+ active (boolean) - The status of the webhook. When false, the target will no longer receive batches.
32
32
+ custom_headers (object) - Object of custom headers to be used during POST requests to target.
33
+
+ exception_subaccounts (array) - Array of subaccount numbers to prevent receiving events in your webhook (only available for webhooks with Primary and All Subaccounts event source).
33
34
+ auth_type (enum) - Type of authentication to be used during POST requests to target. Read more about [webhook authentication](https://www.sparkpost.com/docs/tech-resources/webhook-authentication/#webhook-authentication-set-up).
34
35
+ none
35
36
+ basic
@@ -50,6 +51,7 @@ You can receive any of the following types of events in webhook payloads.
@@ -80,6 +82,7 @@ Webhooks only support standard ports, port 80 for HTTP traffic and port 443 for
80
82
+ active (boolean) - The status of the webhook. When false, the target will no longer receive batches.
81
83
+ Default: true
82
84
+ custom_headers (object) - Object of custom headers to be used during POST requests to target.
85
+
+ exception_subaccounts (array) - Array of subaccount numbers to prevent receiving events in your webhook (only available for webhooks with Primary and All Subaccounts event source). Must not have duplicate values nor be empty. Integer values only. Max size: 10.
83
86
+ auth_type: none, basic, oauth2 (enum)
84
87
Type of authentication to be used during POST requests to target. Read more about [webhook authentication](https://www.sparkpost.com/docs/tech-resources/webhook-authentication/#webhook-authentication-set-up).
85
88
+ Default: none
@@ -114,6 +117,7 @@ Webhooks only support standard ports, port 80 for HTTP traffic and port 443 for
114
117
"grant_type": "client_credentials"
115
118
}
116
119
},
120
+
"exception_subaccounts": [123],
117
121
"events": [
118
122
"delivery",
119
123
"injection",
@@ -232,6 +236,7 @@ and returns information on the response received from the target.
232
236
"open",
233
237
"click"
234
238
],
239
+
"exception_subaccounts": ["123"],
235
240
"auth_type":"oauth2",
236
241
"auth_request_details": {
237
242
"url":"https://oauth.myurl.com/tokens",
@@ -322,6 +327,8 @@ When SparkPost does not get a 200 response from your webhook consumer endpoint t
322
327
+ events (array) - Array of event types this webhook will send. Use the [Events Documentation](#webhooks-documentation) endpoint to list the available event types.
323
328
+ active (boolean) - The status of the webhook. When false, the target will no longer receive batches.
324
329
+ custom_headers (object) - Object of custom headers to be used during POST requests to target.
330
+
+ exception_subaccounts (array) - Array of subaccount numbers to prevent receiving events in your webhook (only available for webhooks with Primary and All Subaccounts event source). Must not have duplicate values. Integers or empty array. New array values will completely replace the current values. Max size: 10.
331
+
+ subaccount_id (number) - The new Subaccount to be set as the Event Source. Can be any integer number (use -1 for Primary and All Subaccounts or 0 for Primary Account only).
325
332
+ auth_type: none, basic, oauth2 (enum)
326
333
Type of authentication to be used during POST requests to target. Read more about [webhook authentication](https://www.sparkpost.com/docs/tech-resources/webhook-authentication/#webhook-authentication-set-up).
327
334
+ auth_request_details (object) - Object containing details needed to request authorization token for OAuth 2.0. This is required when `auth_type` is oauth2.
@@ -352,6 +359,7 @@ Any batches already queued for delivery to this webhook will not be affected. Fo
0 commit comments