Get a webhook endpoint
One endpoint of the organization. The secret is not included.
One endpoint of the organization. The secret is not included.
The organization API key, sent as Authorization: Bearer <key>.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/webhooks/string"{ "createdAt": "2019-08-24T14:15:22Z", "eventTypes": [ "sale.won" ], "id": "string", "previousSecretExpiresAt": "2019-08-24T14:15:22Z", "status": "enabled", "updatedAt": "2019-08-24T14:15:22Z", "url": "string"}Create a webhook endpoint POST
Registers an https endpoint for the organization's events and returns its signing secret, ONCE. Every delivery carries `Trama-Signature: t=<unix>,v1=<hex>`, HMAC-SHA256 of `<t>.<raw body>` with that secret. An organization has at most 20 endpoints, disabled ones included: one more answers 409 `WEBHOOK_ENDPOINT_LIMIT_REACHED`.
Update a webhook endpoint PATCH
Changes the url, the events or the status. Fields left out stay as they are. The secret does not change: use rotate-secret.