Skip to main content
Cron routes need a key scoped to all, cron, or cronjobs. Changes need read_write.

Create a cron job

POST /cli/cronjobs
string
required
Job name shown in Pxxl.
string
required
Five-field cron expression.
string
required
Endpoint called by the job.
GET | POST | PUT | PATCH | DELETE
default:"GET"
HTTP method sent to the endpoint.
object
Request headers sent by Pxxl.
number
default:"30"
Maximum execution time, from 1 to 30 seconds.
string
Associated project.
string
Owning team.
string
Optional. A retry with the same key returns the first job instead of creating another.
Response 201
Missing fields return 400. A bad method or URL returns 422.

Cron endpoints

Trigger a run

Response 202

Run history

status is running, success, or failed. output holds up to 10 KB of the response body.
Job headers can contain secrets. Keep cron management in trusted server code.