GET
/
v2
/
jobs
/
{job_id}
/
await
curl --request GET \
  --url https://mango.sievedata.com/v2/jobs/{job_id}/await \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "function_id": "<string>",
  "organization_id": "<string>",
  "function": {
    "name": "<string>",
    "owner_name": "<string>"
  },
  "status": "<string>",
  "created_at": "2024-12-15T01:41:59.195000",
  "started_at": "2024-12-15T01:41:59.195000",
  "completed_at": "2024-12-15T01:41:59.195000",
  "inputs": {},
  "outputs": [],
  "error": "<string>",
  "visibility": "<string>",
  "run_id": "<string>",
  "children": {},
  "restarts": [
    {
      "timestamp": "2024-12-15T01:41:59.195000",
      "reason": "<string>",
      "type": "preemption",
      "run_id": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

The Sieve API key to authenticate with.

Path Parameters

job_id
string
required

The ID of the job.

Query Parameters

offset
integer
default:
0

Exclude the first N outputs.

Response

200
application/json
Successful Response
id
string
required

The id of the job.

function_id
string
required

The id of the function that the job belongs to. This can be the first 7 characters of the full id.

organization_id
string
required

The ID of the organization that submitted the function.

function
object | null
required

The name of the function that the job belongs to.

status
string
required

The status of the job. Possible values: 'queued', 'processing', 'error', 'finished', 'cancelled'

created_at
string | null
required

The UTC time the job was created.

started_at
string | null
required

The UTC time the job started processing by the function.

completed_at
string | null
required

The UTC time the job was completed.

error
string | null
required

The error that the job ran into. Empty string if there's no error.

visibility
string
required

"public" or "private".

run_id
string | null
required

The run_id of the job.

inputs
object

Show child attributes

outputs
array

Show child attributes

children
object | null

Child attributes

restarts
object[] | null

Job restart metadata