GET
/
v2
/
jobs
/
{job_id}
curl --request GET \
  --url https://mango.sievedata.com/v2/jobs/{job_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "function_id": "<string>",
  "function": {
    "name": "<string>",
    "owner_name": "<string>",
    "visibility": "<string>",
    "title": "<string>",
    "code_url": "<string>",
    "description": "<string>",
    "tags": [
      "<string>"
    ],
    "cover_image_url": "<string>",
    "examples": [
      "<string>"
    ],
    "readme": "<string>",
    "latest_version": {
      "id": "<string>",
      "build_status": "<string>",
      "queued_at": "2023-11-07T05:31:56Z",
      "built_at": "2023-11-07T05:31:56Z",
      "ready_at": "2023-11-07T05:31:56Z",
      "compute_type": "<string>",
      "python_packages": [
        "<string>"
      ],
      "system_packages": [
        "<string>"
      ],
      "cuda_version": "<string>",
      "gpu": true,
      "split": 123,
      "minimum_replicas": 123,
      "maximum_replicas": 123,
      "inputs": [
        {
          "type": "<string>",
          "name": "<string>",
          "data": "<string>",
          "description": "<string>",
          "schema": {}
        }
      ],
      "outputs": [
        {
          "type": "<string>",
          "name": "<string>",
          "data": "<string>",
          "description": "<string>",
          "schema": {}
        }
      ],
      "current_workers": {
        "starting": 123,
        "setup": 123,
        "active": 123,
        "idle": 123,
        "awaiting_resources": 123
      },
      "environment_variables": [
        {
          "name": "<string>",
          "description": "<string>",
          "default": "<string>"
        }
      ],
      "stream_output": true,
      "function_dependencies": [
        "<string>"
      ]
    },
    "featured_key": 123,
    "function_type": "function",
    "webhooks": [
      {
        "type": "job.start",
        "url": "<string>"
      }
    ]
  },
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "started_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "inputs": {},
  "outputs": [
    {
      "type": "<string>",
      "name": "<string>",
      "data": "<string>",
      "description": "<string>",
      "schema": {}
    }
  ],
  "error": "<string>",
  "visibility": "<string>",
  "run_id": "<string>",
  "children": {}
}

Authorizations

X-API-Key
string
headerrequired

The Sieve API key to authenticate with.

Path Parameters

job_id
string
required

The ID of the job.

Query Parameters

offset
integer
default: 0

Response

200 - application/json
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.

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 time the job was created.

started_at
string | null
required

The time the job started processing by the function.

completed_at
string | null
required

The time the job was completed.

inputs
object
required

Show child attributes

outputs
array | null
required

Show child attributes

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.

children
object | null

Child attributes