Webhook Subscriptions
Create a webhook subscription
Creates a webhook subscription. The URL must use HTTPS and resolve to a public address. If secret is omitted, the response includes a generated secret once.
post/webhooks
Request
- Base URL: https://next-api.saturation.io/v1
- URL: https://next-api.saturation.io/v1/webhooks
- Auth: HTTP bearer
Request body
Example request
{
"url": "https://hooks.example.com/saturation",
"events": [
"transaction.created"
],
"projectId": "txn_8f2a1c9e"
}Response
The created subscription and its signing secret. Store the secret before discarding the response.
Example response
{
"id": "txn_8f2a1c9e",
"url": "https://hooks.example.com/saturation",
"events": [
"transaction.created"
],
"workspaceId": "txn_8f2a1c9e",
"projectId": "txn_8f2a1c9e",
"secret": "whsec_example"
}Changes
Changes to this operation have not been checked yet.