# GET /jobs/{id}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the jobs group.

Get a job with its log and result

- Who may call it: administrator, reseller, customer
- Token scope: any
- Answers: 200 OK

Any signed-in user can retrieve jobs they requested. Administrators can retrieve any job, and resellers can also retrieve jobs requested by their customers. The API returns 404 if the job does not exist and 403 if the caller lacks access to it.

For queued and running jobs, usual_seconds gives the typical duration in seconds. UrbeStack considers the 200 most recent successful runs of the same type with recorded start and finish times and uses up to 20 runs with the same subject. The value is the median duration, using the lower of the two middle values for an even sample, or null if no matching duration is available.

## Parameters

- `id` (path, integer, 1 or more, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/jobs/1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "job": {
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": 1,
    "created_by_name": "text",
    "dismissed_at": "text",
    "finished_at": "2026-09-09T10:15:04Z",
    "id": 1,
    "lane": "short",
    "log": "",
    "params": {},
    "progress": 100,
    "result": {},
    "started_at": "2026-09-09T10:15:01Z",
    "status": "queued",
    "type": "rebuild",
    "usual_seconds": 1
  },
  "server_time": "text",
  "timezone": "text"
}
```

## Errors

- 400: Invalid id
- 401: Authentication required
- 403: Insufficient privileges
- 404: Job <id> not found
