List Cron Jobs

GET /v1/applications/{uuid}/cron-jobs

List an app's scheduled jobs. Each job fires an HTTP request to your deployed app on a schedule — nightly work, cache warming, digests, and the like. Cron Jobs require the cron_jobs entitlement and count against a per-account limit.

Response (200 OK)

cron_jobs array
The app's jobs (fields below); [] when it has none.
entitled bool
Whether your plan includes Cron Jobs. When false, creating or running a job answers 403.
limit int
How many cron jobs the account may have in total; -1 = no limit.

Job fields

uuid string (uuid)
The job's public id — the {cron_uuid} of the update, delete, and run endpoints.
application_uuid string (uuid)
The app the job belongs to.
account_uuid string (uuid)
The account that owns the app.
name string
A label for the job.
schedule string
A 5-field UTC cron expression (0 3 * * *) or a descriptor (@hourly, @daily).
method string
The HTTP method to fire. Default GET.
path string
The absolute path on your app to request. Default /.
headers object?
Extra request headers sent with each run, as {"name": "value"}. Omitted when there are none.
enabled bool
Whether the schedule is active. A disabled job never fires on its schedule but can still be run manually.
next_run_at datetime?
When the job fires next. Omitted while it is disabled.
last_run_at datetime?
When the job last ran. Omitted until it first fires.
last_status_code int?
The HTTP status your app answered the last run with. Omitted until a run got an answer.
last_error string?
Why the last run failed (no answer, timeout, …). Omitted when it didn't fail.
quota_paused_at datetime?
Set while the job is paused over the account's cron-job limit: it doesn't fire (on schedule or on demand) and can't be edited until the account has room. Omitted otherwise.
created_at, updated_at datetime
RFC 3339 UTC timestamps.
Response — 200 OK (abridged)
{ "cron_jobs": [ { "uuid": "019bfdb1-ec00-7002-8953-7f61c8a1f3e1", "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "account_uuid": "019a68b9-1a79-7820-a884-41f554aba6bd", "name": "nightly-digest", "schedule": "0 3 * * *", "method": "GET", "path": "/cron/digest", "enabled": true, "next_run_at": "2026-09-21T03:00:00Z", "last_run_at": "2026-09-20T03:00:04Z", "last_status_code": 200, "created_at": "2026-09-18T10:00:00Z", "updated_at": "2026-09-20T03:00:04Z" } ], "entitled": true }

Create a Cron Job

POST /v1/applications/{uuid}/cron-jobs

Add a scheduled job. On each tick the platform fires method https://<your-app><path>. The app must have a live serving endpoint (it must be deployed and reachable), or the request has nowhere to land.

Request (application/json)

name string
Optional. A label for the job, at most 120 characters; "" when left out.
schedule string
Required. A 5-field UTC cron expression (0 3 * * *) or a descriptor (@hourly, @daily). Missing or empty: 400 schedule is required.
method string
HTTP method: GET, POST, PUT, PATCH, DELETE or HEAD (case-insensitive). Left out or "": GET.
path string
Absolute path to request on your app: it starts with /, at most 512 characters. Left out or "": /.
headers object
Optional extra request headers, {"name": "value"} (max 20).
enabled bool
Whether to schedule it immediately. Default true.

Authenticating the request

Set a CRON_SECRET environment variable on the app and the platform sends it as Authorization: Bearer <CRON_SECRET> on every cron request — so your handler can confirm the call is a genuine platform cron and not a public hit.

Request
curl -X POST "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/cron-jobs" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json" \ -d '{"name":"nightly-digest","schedule":"0 3 * * *","method":"GET","path":"/cron/digest"}'
Response — 201 Created
{ "cron_job": { "uuid": "019bfdb1-ec00-7002-8953-7f61c8a1f3e1", "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "account_uuid": "019a68b9-1a79-7820-a884-41f554aba6bd", "name": "nightly-digest", "schedule": "0 3 * * *", "method": "GET", "path": "/cron/digest", "enabled": true, "next_run_at": "2026-09-19T03:00:00Z", "created_at": "2026-09-18T10:00:00Z", "updated_at": "2026-09-18T10:00:00Z" } }

Update a Cron Job

PUT /v1/applications/{uuid}/cron-jobs/{cron_uuid}

Change a job's schedule, target, or enabled state. A partial update: a field you leave out keeps its stored value, and a field you send replaces it, with the same validation as create. Toggle enabled to pause a job without deleting it.

Request (application/json)

name string
A new label, at most 120 characters; "" clears it.
schedule string
A new 5-field UTC cron expression or descriptor. "" is refused as on create: 400 schedule is required.
method string
A new HTTP method (the create values). "" sets GET, as on create.
path string
A new absolute path. "" sets /, as on create.
headers object | null
The job's new extra request headers, replacing all of them (max 20). {} or null removes every header.
enabled bool
false pauses the schedule; true resumes it.

Response (200 OK)

The updated job under cron_job (the job fields above), with next_run_at recomputed from the schedule (omitted while the job is disabled).

Request
curl -X PUT "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/cron-jobs/019bfdb1-ec00-7002-8953-7f61c8a1f3e1" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json" \ -d '{"schedule":"@hourly","enabled":true}'
Response — 200 OK
{ "cron_job": { "uuid": "019bfdb1-ec00-7002-8953-7f61c8a1f3e1", "application_uuid": "019be838-d261-7d9b-9499-71995a3a91c6", "account_uuid": "019a68b9-1a79-7820-a884-41f554aba6bd", "name": "nightly-digest", "schedule": "@hourly", "method": "GET", "path": "/cron/digest", "enabled": true, "next_run_at": "2026-09-21T11:00:00Z", "last_run_at": "2026-09-21T03:00:04Z", "last_status_code": 200, "created_at": "2026-09-18T10:00:00Z", "updated_at": "2026-09-21T10:12:40Z" } }

Delete a Cron Job

DELETE /v1/applications/{uuid}/cron-jobs/{cron_uuid}

Remove a job by its uuid. Returns 200 OK with {"deleted": true}. The schedule stops immediately. A job of another app or account is 404 cron job not found.

Request
curl -X DELETE \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/cron-jobs/019bfdb1-ec00-7002-8953-7f61c8a1f3e1" \ -H "X-API-KEY: <your_api_key>"

Run a Cron Job Now

POST /v1/applications/{uuid}/cron-jobs/{cron_uuid}/run

Fire the job immediately, off-schedule — the same request the scheduler would send (including the Authorization: Bearer <CRON_SECRET> header when CRON_SECRET is set). Use it to test a new job end to end without waiting for the next tick.

The answer is {"ran": true} plus status_code (what your app answered; omitted when it didn't answer) and error (why the run failed; omitted when it didn't). A job paused over the cron-job limit doesn't run (409); without the Cron Jobs entitlement the call is 403.

Request
curl -X POST \ "https://api.ngris.com/v1/applications/019be838-d261-7d9b-9499-71995a3a91c6/cron-jobs/019bfdb1-ec00-7002-8953-7f61c8a1f3e1/run" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json"
Response — 200 OK
{ "ran": true, "status_code": 200 }
Was this helpful?