Create a destination
Changed onCreates an HTTP destination for organization event notifications. You can create up to 50 destinations for an organization. The response includes the signing secret. Save it when you create the destination; later responses do not include it.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
Destination name. The name must contain 1 to 255 characters after leading and trailing spaces are removed.
Full URL of the endpoint that receives notifications. Must be a publicly resolvable address.
Custom headers to include in notification requests. You can set up to 10 headers. The Standard Webhooks headers and the transport headers are reserved.
Example request
{
"name": "Production webhooks",
"type": "http",
"url": "https://example.com/webhooks",
"custom_headers": {
"X-Environment": "production"
}
}Response
A single http destination with its new signing secret.
An HTTP destination with its new plaintext signing secret. The signing secret is returned only when a destination is created.
UUID v7 identifier of the destination.
Name of the destination.
Destination status. pending_verification means the destination is waiting for verification; enabled means it can receive notifications; disabled means it is paused; disabled_system means it was disabled automatically.
Endpoint URL of the destination.
Host part of the target URL.
Names of the configured custom headers. Header values are not returned.
Time of the most recent successful notification delivery, if any.
Time of the most recent failed notification delivery, if any.
Reason for the most recent failed notification delivery, if any.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Signing algorithm of the signing key.
Time when the destination was verified, if verification is complete.
Secret used to verify that an HTTP notification was sent by Kong.
Example response
{
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info