Stasis
Jobs

List jobs

List all jobs with optional status filter

GET
/api/v1/jobs
X-API-Key<token>

In: header

Query Parameters

status?string
limit?integer
offset?integer

Response Body

application/json

curl -X GET "https://example.com/api/v1/jobs"
[
  {
    "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
    "status": "pending",
    "repository": {
      "url": "https://github.com/user/repo.git",
      "ref": "main",
      "commit_sha": "string",
      "auth": {
        "type": "bearer",
        "token": "string",
        "private_key": "string"
      }
    },
    "trigger": {
      "event": "push",
      "branch": "string",
      "pr_number": 0
    },
    "steps": [
      {
        "step_name": "string",
        "status": "success",
        "exit_code": 0,
        "duration_ms": 0
      }
    ],
    "artifacts": [
      {
        "name": "string",
        "size": 0,
        "content_type": "string",
        "created_at": "2019-08-24T14:15:22Z"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "started_at": "2019-08-24T14:15:22Z",
    "completed_at": "2019-08-24T14:15:22Z"
  }
]