Skip to content

List where a schedule's results went

View as Markdown
GET
/v1/schedules/{triggerId}/deliveries
curl --request GET \
--url 'https://example.com/v1/schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deliveries?status=pending&limit=25' \
--header 'Authorization: Bearer <token>'

Newest first: each message its sendResultsTo sent, to a destination or to me, and how it went: pending, delivered, failed or skipped, with the reason. Whoever can read the schedule can read them.

triggerId
required
string format: uuid

TriggerId — the trigger id (a UUID).

status

pending: waiting for its next attempt, or held while its destination is failing. delivered: the destination took it. failed: it can’t be sent (see reason). skipped: it was never sent (see reason).

string
Allowed values: pending delivered failed skipped

Only deliveries with this status.

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

Media typeapplication/json
object
data
required
Array<object>
object
deliveryId
required
string
to
required

The destination’s id, or me: the schedule owner’s own email.

string
event
required

What a delivery tells: a run that ended, an approval that waits on a person, a test, or, at the end of an hour whose cap (rate-cap) left messages out, how many.

string
Allowed values: run.finished approval.requested destination.test rate-cap.summary
scheduleId
required

The schedule that sent it; null for a test.

string | null
runId
required

The run it is about; null for a test or a rate-cap.summary.

string | null
approvalId
required

approval.requested: the approval that waits; null otherwise.

string | null
status
required

pending: waiting for its next attempt, or held while its destination is failing. delivered: the destination took it. failed: it can’t be sent (see reason). skipped: it was never sent (see reason).

string
Allowed values: pending delivered failed skipped
reason
required

Why it was skipped (rate-cap, no-access, destination-removed, not-for-this-project, project-deleted) or failed (destination-failing, window-ended, refused, or a send error such as timeout); null otherwise.

string | null
attempts
required
integer
nextAttemptAt
required

When the next attempt is due; null unless pending and not held.

string | null format: date-time
lastAttemptAt
required
string | null format: date-time
lastResponseStatus
required

The HTTP status (or SMTP reply code) of the last attempt; null when it got none.

integer | null
lastError
required

Why the last attempt failed, as a fixed reason that never holds the URL.

string | null
createdAt
required
string format: date-time
deliveredAt
required
string | null format: date-time
nextCursor
string
hasMore
required
boolean
Example
{
"data": [
{
"event": "run.finished",
"status": "pending"
}
]
}

Unknown status (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"
}
}

No cron trigger with that id.

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.

trigger-operation-unsupported: this deployment has no destinations.

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"
}
}

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