Webhooks
Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.
Outgoing webhooks, signed, retried, with a delivery log
My webhooks
Section titled “My webhooks”GET /v1/orgs/{org}/webhooksAPI keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200Webhooks — object
Create a webhook (the signing secret is shown once)
Section titled “Create a webhook (the signing secret is shown once)”POST /v1/orgs/{org}/webhooksThe URL must be https on a public address (checked now and before each delivery; no redirects).
API keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
url (required) |
string (uri) | |
description |
string | |
events (required) |
array of WebhookEventType | |
filters |
WebhookFilters | Optional narrowing; an empty or missing list matches everything. |
Responses
201Created — object403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem422Invalid input — Problem
The events a webhook can subscribe to, and how deliveries are signed
Section titled “The events a webhook can subscribe to, and how deliveries are signed”GET /v1/orgs/{org}/webhooks/eventsAPI keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200Events — object
A webhook
Section titled “A webhook”GET /v1/orgs/{org}/webhooks/{id}API keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
200The webhook — Webhook404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Change a webhook (enabling it again resets its failure count)
Section titled “Change a webhook (enabling it again resets its failure count)”PATCH /v1/orgs/{org}/webhooks/{id}API keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
description |
string | |
events |
array of WebhookEventType | |
filters |
WebhookFilters | Optional narrowing; an empty or missing list matches everything. |
enabled |
boolean |
Responses
200The webhook — Webhook404Not found (also returned for rows the caller may not see, and for disabled features) — Problem422Invalid input — Problem
Delete a webhook
Section titled “Delete a webhook”DELETE /v1/orgs/{org}/webhooks/{id}API keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
204Deleted404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Replace the signing secret (shown once)
Section titled “Replace the signing secret (shown once)”POST /v1/orgs/{org}/webhooks/{id}/rotate-secretAPI keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
200The webhook and its new secret — object404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Send a test event (ping)
Section titled “Send a test event (ping)”POST /v1/orgs/{org}/webhooks/{id}/testQueued and sent by the worker within seconds; watch the delivery log. Test events aren’t retried.
API keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
202Queued — WebhookDelivery404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
The delivery log (newest first)
Section titled “The delivery log (newest first)”GET /v1/orgs/{org}/webhooks/{id}/deliveriesAPI keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) | |
limit |
query | integer | Page size. |
cursor |
query | string | Opaque cursor from a previous page’s next_cursor. |
Responses
200A page — object
Send a failed delivery again
Section titled “Send a failed delivery again”POST /v1/orgs/{org}/webhook-deliveries/{id}/retryAPI keys: needs the webhooks:manage scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
200Queued again — WebhookDelivery409Conflicting state (card already answered, duplicate in flight, name taken) — Problem