List where a schedule's results went
const url = 'https://example.com/v1/schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deliveries?status=pending&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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”TriggerId — the trigger id (a UUID).
Query Parameters
Section titled “Query Parameters”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).
Only deliveries with this status.
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 deliveries.
object
object
The destination’s id, or me: the schedule owner’s own email.
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.
The schedule that sent it; null for a test.
The run it is about; null for a test or a rate-cap.summary.
approval.requested: the approval that waits; null otherwise.
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).
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.
When the next attempt is due; null unless pending and not held.
The HTTP status (or SMTP reply code) of the last attempt; null when it got none.
Why the last attempt failed, as a fixed reason that never holds the URL.
Example
{ "data": [ { "event": "run.finished", "status": "pending" } ]}Unknown status (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" }}No cron trigger with that id.
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.
trigger-operation-unsupported: this deployment has no destinations.
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" }}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.
See also
GET /v1/schedules/{triggerId}: Fetch a cron schedulePATCH /v1/schedules/{triggerId}: Update a cron schedulePOST /v1/schedules/{triggerId}/pause: Pause a cron schedulePOST /v1/schedules/{triggerId}/resume: Resume a cron schedule- Run on a schedule
- Kindgi 0.7.0
- Error code
authz-backend-unavailable - Error code
bad-input - Error code
database-busy - Error code
rate-limit-exceeded - Error code
trigger-operation-unsupported - Every error code