Skip to content

List destinations

View as Markdown
GET
/v1/destinations
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.

projectId
string format: uuid

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.

limit
integer
default: 25 >= 1 <= 100

1..100. Default 25.

cursor
string

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.

Page of destinations.

Media typeapplication/json
object
data
required
Array<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
destinationId
required
string
name
required
string
kind
required

Where a destination sends. email goes to workspace members, each checked when a message is sent; the others post to a URL.

string
Allowed values: email slack teams google-chat discord webhook
people

email: the workspace members it goes to. Absent on the other kinds.

Array<string>
host

The URL’s host, on every kind but email. The URL itself is never returned.

string
urlRef

Where its URL is kept, on every kind but email.

object
envName
required
string
/^[a-z][a-z0-9-]{0,62}$/
name
required
string
>= 1 characters <= 256 characters
secretRef

webhook: its signing secret, by reference, as a webhook endpoint’s.

object
envName
required
string
/^[a-z][a-z0-9-]{0,62}$/
name
required
string
>= 1 characters <= 256 characters
projects

The projects whose schedules may use it. Absent: every project’s may.

Array<string>
content
required

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.

string
Allowed values: link answer
status
required

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.

string
Allowed values: active failing
lastError
required

Why it is failing, as a fixed reason that never holds the URL; null when it is active.

string | null
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
nextCursor
string
hasMore
required
boolean
Example
{
"data": [
{
"kind": "email",
"content": "link",
"status": "active"
}
]
}

projectId is not a UUID (bad-input).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

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.

See also