SextantDocs
v1.9legacy
v2.4latestv1.9legacy

Switching keeps you on the same page when it exists in the other version.

You are reading the docs for Sextant v1.9, which no longer receives updates. This page has a current version: read it in v2.

REST API

The v1 REST API under /api/v1: authentication with API keys and the job endpoints.

Updated Reference Version v1.9

The v1 API lives under /api/v1 and authenticates with an API key from server.api_keys:

Shell
curl http://localhost:7420/api/v1/jobs?status=failed -H "X-Sextant-Key: $SEXTANT_KEY"
Method and path Purpose
POST /api/v1/jobs Enqueue a job
GET /api/v1/jobs List jobs, filter with status
GET /api/v1/jobs/:id Retrieve a job
POST /api/v1/jobs/:id/requeue Requeue a failed job
Shell
curl -X POST http://localhost:7420/api/v1/jobs \
  -H "X-Sextant-Key: $SEXTANT_KEY" -H "Content-Type: application/json" \
  -d '{"handler":"send-receipt","payload":{"to":"[email protected]"},"retries":3,"delay":60}'