Skip to main content
GET
/
jobs
List batch jobs
curl --request GET \
  --url https://api.blaxel.ai/v0/jobs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "metadata": {
        "name": "my-resource",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "createdBy": "<string>",
        "updatedBy": "<string>",
        "displayName": "My Resource",
        "labels": {},
        "plan": "<string>",
        "url": "<string>",
        "workspace": "<string>"
      },
      "spec": {
        "enabled": true,
        "githubRunner": {
          "repositories": "[\"my-org/repo-a\", \"my-org/repo-b\"]"
        },
        "policies": [
          "<string>"
        ],
        "region": "us-was-1",
        "revision": {
          "active": "rev-abc123",
          "canary": "<string>",
          "canaryPercent": 10,
          "stickySessionTtl": 0,
          "traffic": 100
        },
        "runtime": {
          "diskPercent": 80,
          "envs": [
            {
              "name": "MY_ENV_VAR",
              "secret": true,
              "value": "my-value"
            }
          ],
          "generation": "mk3",
          "image": "<string>",
          "maxRetries": 3,
          "memory": 2048,
          "ports": [
            {
              "target": 8080,
              "name": "http",
              "protocol": "HTTP"
            }
          ],
          "timeout": 3600
        },
        "triggers": [
          {
            "configuration": {
              "authenticationType": "blaxel",
              "callbackSecret": "<string>",
              "callbackUrl": "https://myapp.com/webhook",
              "path": "/invoke",
              "retry": 3,
              "schedule": "0 * * * *",
              "tasks": [
                {}
              ],
              "timeout": 300
            },
            "enabled": true,
            "id": "trigger-1",
            "type": "http"
          }
        ],
        "volumes": [
          {
            "mountPath": "/mnt/data",
            "name": "scratch",
            "sizeMb": 102400,
            "type": "ephemeral",
            "readOnly": false
          }
        ]
      },
      "events": [
        {
          "canaryRevision": "<string>",
          "message": "Deployment successful",
          "revision": "rev-abc123",
          "status": "DEPLOYED",
          "time": "2025-01-15T10:30:00Z",
          "type": "deployment"
        }
      ]
    }
  ],
  "meta": {
    "hasMore": true,
    "nextCursor": "<string>",
    "total": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.blaxel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Query Parameters

cursor
string

Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.

limit
integer
default:50

Maximum number of items to return per page. Defaults to 50, clamped to 200.

Required range: 1 <= x <= 200
sort
enum<string>

Sort spec, formatted as <key>:<direction>. Allowed values are createdAt:desc (default), createdAt:asc, name:asc, name:desc. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.

Available options:
createdAt:desc,
createdAt:asc,
name:asc,
name:desc
q
string

Substring search across metadata.name, metadata.displayName and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.

Maximum string length: 200
anchor
enum<string>

Start from a known pagination boundary. end is only supported for createdAt:desc listings and returns the oldest page directly without walking every cursor from the first page.

Available options:
end

Response

200 - application/json

successful operation

Cursor-paginated list of batch jobs. Returned starting with API version 2026-04-28; older API versions return a bare array.

data
object[]

Page of jobs.

meta
object

Pagination metadata returned alongside a page of listing results. Always present on listing endpoints starting with API version 2026-04-28.

Last modified on May 27, 2026