---
title: "Get job by id"
method: GET
path: "/jobs/{job_id}"
tags: ["Jobs"]
---

# Get job by id

`GET /jobs/{job_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/jobs/{job_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Job are way to get results of long running tasks.             It either returns processing if tasks are still is running or                 result of task if it is completed

## Path parameters

- `job_id` integer, required: Job id is unique identifier for Job object. If processing is not completed, it will return processing otherwise it will have information about Job

## Response `200`

Success

- JobResponse
  - `job` JobSchema, required
    - `id` integer, required
    - `status` 'success' | 'failure' | 'processing' | 'error', required: Job status can be success, failure or processing
    - `response` object, required: Result of async task is stored in response
    - `last_updated_at` string, date-time, required: Job last updated at is the time when Job status was last updated
    - `created_at` string, date-time, required: Create at is time when async task was created
    - `path` string, required: API request path of the Job operation
    - `operation` string, required: Operation is async task name which Job is tracking

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/17af8131167d?raw)
