V1/webhook_destination
Was this helpful?
Was this helpful?
Remove a webhook destination from the organization. The webhook destination might still be active for a few seconds after this endpoint returns.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
for the authenticated user.
Webhook:DeleteWebhookDestination
for the webhook destination.
The identifier of the webhook destination to update.
^[a-f0-9]{24}$
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
No content
Replace the secret for the given webhook destination. The new secret will be returned and cannot be retrieved later.
Until the dual_signing_stops_at
timestamp in the response, which is roughly 30 minutes after the generation of the new secret, the webhook
will be signed by both the old and the new secret. This allows the webhook consumer to transition to the new secret without downtime.
The webhook rotation can occur at most once per hour for each webhook destination.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
for the authenticated user.
Webhook:UpdateWebhookDestination
for the webhook destination.
The ID for the webhook destination to rotate the secret for.
^[a-f0-9]{24}$
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Retrieve the webhook deliveries to a webhook destination.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
on the authenticated user.
This endpoint may be impacted by the following permissions:
Webhook:GetWebhookDeliveries
on the webhook deliveries to retrieve.
The ID of the webhook destination whose deliveries to retrieve.
^[a-f0-9]{24}$
The status of the webhook delivery.
The type of the webhook.
An ISO8601 timestamp in UTC of the earliest creation time of the webhook deliveries to retrieve.
An ISO8601 timestamp in UTC of the latest creation time of the webhook deliveries to retrieve.
The maximum number of webhook deliveries to retrieve.
50
The token from the previous request to return the next page of webhook deliveries.
0
The fields to sort the webhook deliveries by. Supported fields are type
, status
, and created_at
. Specify a +
before the field name to indicate ascending sorting and -
for descending sorting. Multiple fields can be specified to break ties.
[]
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Retrieve this organization's webhook destinations.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
on the authenticated user.
This endpoint may be impacted by the following permissions:
Webhook:GetWebhookDestination
on the webhook destinations to retrieve.
The IDs of the webhook destinations to retrieve.
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Create a new webhook destination. At most 10 webhook destinations can be defined per organization.
A secret will immediately be issued for the webhook destination. Every webhook sent to this destination will be signed using this secret. This secret is one-view only and cannot be retrieved later.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
for the authenticated user.
Webhook:CreateWebhookDestination
for the webhook destination.
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
The URL to which the webhook will be sent.
A list of webhook types to receive.
The number of attempts to retry sending the webhook event in case of failure.
3
Update certain configs for a webhook destination. The changes will only take effect a few seconds after this endpoint returns.
The URL of a webhook destination cannot be changed. Use Create a webhook destination
instead.
Permissions
This endpoint requires the following permissions:
User:GetUserInfo
for the authenticated user.
Webhook:UpdateWebhookDestination
for the webhook destination.
The identifier of the webhook destination to update.
^[a-f0-9]{24}$
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
The number of attempts to retry sending the webhook event in case of failure. If not specified, this field is not updated.
A list of webhook types to receive. If not specified, this field is not updated.
No content