Webhook REST APIs
List all endpoints
1 | |
Example responses
200 Response
1 2 3 4 5 6 7 8 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | Inline |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
Create a new webhook endpoint
1 | |
Body parameter
1 2 3 4 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | WebhookEndpointCreateDTO | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEndpointDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Get the detail of an endpoint
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEndpointDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Update a webhook endpoint
1 | |
Body parameter
1 2 3 4 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
| body | body | WebhookEndpointUpdateDTO | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEndpointDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Delete an endpoint
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEndpointDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Get event delivered to an endpoint
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
| from_date | query | string(date) | false | - |
| to_date | query | string(date) | false | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | Inline |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Rotate secret keys
1 | |
Roll out a new secret key. Old secret keys are active within the rotation period and will be deleted at the end.
Body parameter
1 2 3 4 5 6 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
| body | body | WebhookRotationDTO | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEndpointDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Get all events
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| from_date | query | string(date) | false | - |
| to_date | query | string(date) | false | - |
Example responses
200 Response
1 2 3 4 5 6 7 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | Inline |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Get the detail of an event
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| event_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | WebhookEventDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEventNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Replay the delivery of an event to an endpoint
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| delivery_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | DeliveryTicketDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookDeliveryNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Replay failed deliveries to an endpoint
1 | |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 6 7 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | Inline |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |
Send a dummy event to a specific endpoint.
1 | |
The event sent is of type webhook.ping. You can use this to test if your webhook endpoint has been set up correctly.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| endpoint_id | path | string(uuid) | true | - |
Example responses
200 Response
1 2 3 4 5 | |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful Response | DeliveryTicketDTO |
| 401 | Unauthorized | Unauthorized | UnauthorizedError |
| 403 | Forbidden | Forbidden | ForbiddenError |
| 404 | Not Found | Not Found | WebhookEndpointNotFoundError |
| 422 | Unprocessable Entity | Validation Error | RequestValidationError |