# Jobs (/api/reference/jobs)



A job is the unit of execution within a build — one node in the build's
DAG, corresponding to a single `command` step. Jobs carry their own state,
`step_key`, `command`, `exit_code`, and `depends_on` edges.

These endpoints read a single job within a build and list a job's
artifacts. Jobs are planned by the executor in topological order; you
cannot create or cancel a job directly — operate on its
[Build](/api/reference/builds) instead.

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document="&#x22;./openapi.json&#x22;" webhooks="[]" operations="[{&#x22;path&#x22;:&#x22;/api/v0/organizations/{org}/pipelines/{pipeline}/builds/{number}/jobs&#x22;,&#x22;method&#x22;:&#x22;get&#x22;},{&#x22;path&#x22;:&#x22;/api/v0/organizations/{org}/pipelines/{pipeline}/builds/{number}/jobs/{job_id}&#x22;,&#x22;method&#x22;:&#x22;get&#x22;}]" />
