---
title: "List jobs"
method: GET
path: "/api/jobs/{namespace}"
tags: ["jobs"]
---

# List jobs

`GET /api/jobs/{namespace}`

List of jobs for an entity

## Path parameters

- `namespace` string, required

## Query parameters

- `label` union — Filter jobs by label. Format: 'key=value' (e.g., 'environment=production'). Repeat the parameter to filter by several labels.
  - string — Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').
  - string[]
- `stage` union — Filter jobs by status stage. Repeat the parameter to filter by several stages.
  - 'COMPLETED' | 'CANCELED' | 'ERROR' | 'DELETED' | 'RUNNING' | 'SCHEDULING'
  - string[]
- `cursor` string — Pagination cursor obtained from the `rel="next"` link of a previous response's `Link` header.

## Response `200`

The list of jobs

- object[]
  - `id` string, required
  - `createdAt` string, date-time, required
  - `spaceId` string
  - `dockerImage` string
  - `timeout` number
  - `environment` object, required
  - `command` string[]
  - `arguments` string[]
  - `arch` 'amd64' | 'arm64'
  - `flavor` 'cpu-basic' | 'cpu-upgrade' | 'cpu-performance' | 'cpu-xl' | 'sprx8' | 'zero-a10g' | 't4-small' | 't4-medium' | 'l4x1' | 'l4x4' | 'l40sx1' | 'l40sx4' | 'l40sx8' | 'a10g-small' | 'a10g-large' | 'a10g-largex2' | 'a10g-largex4' | 'a100-large' | 'a100x4' | 'a100x8' | 'h200' | 'h200x2' | 'h200x4' | 'h200x8' | 'rtx-pro-6000' | 'rtx-pro-6000x2' | 'rtx-pro-6000x4' | 'rtx-pro-6000x8' | 'inf2x6', required
  - `createdBy` object, required
    - `id` string, required
    - `name` string, required
  - `resourceGroupId` string
  - `retry` number
  - `startedAt` string, date-time
  - `finishedAt` string, date-time
  - `durations` object
    - `schedulingSecs` number
    - `runningSecs` number
    - `totalSecs` number
  - `volumes` object[]
    - `type` string, required
    - `source` string, required
    - `mountPath` string, required
    - `revision` string
    - `readOnly` boolean
    - `path` string
  - `expose` object — Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).
    - `ports` integer[], required
    - `portsPublic` integer[] — Subset of `ports` reachable without any authentication.
  - `type` 'job', required
  - `owner` object, required
    - `id` string, required
    - `name` string, required
    - `type` 'user' | 'org', required
    - `avatarUrl` string, required
  - `resourceGroup` object
    - `id` string, required
    - `name` string, required
    - `numUsers` number
  - `initiator` union
    - object
      - `id` string, required
      - `name` string, required
      - `type` 'user' | 'org', required
      - `avatarUrl` string, required
    - object
      - `type` 'scheduled-job', required
      - `id` string, required
    - object
      - `type` 'duplicated-job', required
      - `id` string, required
    - object
      - `type` 'webhook', required
      - `id` string, required
  - `status` object, required
    - `stage` 'COMPLETED' | 'CANCELED' | 'ERROR' | 'DELETED' | 'RUNNING' | 'SCHEDULING', required
    - `message` string, nullable, required
    - `cancelReason` union
      - 'NO_CREDITS' | 'NO_SUBSCRIPTION'
      - string
    - `failureCount` number
    - `exposeUrls` string[] — One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://<job_id>--8000.hf.jobs`). Absent when the job is not exposed.
    - `sshUrl` string — SSH endpoint for the job (e.g. `ssh://<job_id>@ssh.hf.jobs`). Only present when `ssh.enabled`.
  - `secrets` string[]
  - `labels` object
  - `hfToken` object
    - `ownerName` string, required
    - `orgName` string
    - `tokenRole` 'read' | 'write' | 'fineGrained'
    - `tokenId` string
    - `settingsUrl` string

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/6ab9f7d9cfb5/schema)
