Gamma API
ProjectsJobs

List project jobs

GET
/api/projects/{projectId}/jobs

The latest 200, newest first.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Query Parameters

status?string
Value in"queued""running""succeeded""failed""canceled"
type?string

e.g. model.convert.

Length1 <= length <= 50

Response Body

OK.

application/json
  1. response
jobs*array<>
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/jobs'
Example Response
{  "jobs": [    {      "id": "string",      "type": "string",      "status": "queued",      "attempts": -9007199254740991,      "runAt": "2019-08-24T14:15:22Z",      "startedAt": "2019-08-24T14:15:22Z",      "finishedAt": "2019-08-24T14:15:22Z",      "leaseUntil": "2019-08-24T14:15:22Z",      "workerId": "string",      "lastError": "string",      "createdById": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "subject": {        "kind": "model",        "id": "string",        "label": "string"      }    }  ]}