List destinations
const url = 'https://example.com/v1/destinations?limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/destinations?limit=25' \ --header 'Authorization: Bearer <token>'A tenant admin’s. With projectId: the destinations that project’s schedules may use, for anyone who may make a schedule there (run on the project), without people, host, urlRef, secretRef and projects.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only the destinations this project’s schedules may use. With it, anyone who may make a schedule in the project lists them, without people, host, urlRef, secretRef and projects; a tenant admin sees every field.
1..100. Default 25.
Where the previous page ended: its nextCursor, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise 400 bad-input, and the list starts again without it. Absent → first page.
Responses
Section titled “Responses”Page of destinations.
object
Where a schedule sends its results. Its URL is never returned: host and urlRef say where it goes. GET /v1/destinations?projectId= answers a caller who is not a workspace admin without people, host, urlRef, secretRef and projects.
object
Where a destination sends. email goes to workspace members, each checked when a message is sent; the others post to a URL.
email: the workspace members it goes to. Absent on the other kinds.
The URL’s host, on every kind but email. The URL itself is never returned.
Where its URL is kept, on every kind but email.
object
webhook: its signing secret, by reference, as a webhook endpoint’s.
object
The projects whose schedules may use it. Absent: every project’s may.
What a message carries. link: the run’s status and its console link. answer: also the run’s answer, up to its first 1,000 characters; only on a destination that names projects, and never on the webhook kind, whose receiver reads the run with its own key.
active: it takes messages. failing: its last delivery got an answer that won’t change on a retry (such as a removed webhook’s 404 or 410); later messages for it are kept but held until a sendTest reaches it.
Why it is failing, as a fixed reason that never holds the URL; null when it is active.
Example
{ "data": [ { "kind": "email", "content": "link", "status": "active" } ]}projectId is not a UUID (bad-input).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not a tenant admin, or, with projectId, may not make a schedule in that project (permission-denied). Without an authorization store, a tenant admin is the deployment’s API token, an admin key, or a console signed in with either.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.
The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.