---
title: "Jobs"
description: "<p>Retrieve the result of an asynchronous analytics job.</p>"
url: "https://www.contentstack.com/docs/developers/apis/analytics-api/jobs"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-27"
---

# Jobs

Retrieve the result of an asynchronous analytics job.

## Retrieve Data

### Retrieve Data

**GET** `/analytics/v2/job/{jobId}/data`

The Retrieve Data request collects the result of an analytics job. Every other endpoint returns a jobId rather than data, and you pass that jobId here.

Because the jobs run asynchronously, a job may still be in progress when you call. Read the job state from the response body rather than the status code: a queued job returns 200 with the message Job waiting, and a running job returns 200 with Job active. Repeat the request until the body carries your data.

A failed job returns 500 with Job failed. A jobId that does not exist returns 404 with Job not found.

page is optional and defaults to 0. When the job response reported paginated as true, pass a whole number to fetch that page. A page that does not exist, or a value that is not a whole number, returns 404 with No data found.

A jobId can be read only by the user who created it, within the same organization. A request from any other user returns 404, so a jobId cannot be handed between users or integrations.

#### URL Parameters

- **jobId** (required)
  Enter your job ID.

#### Query Parameters

- **orgUid** (required)
  Enter the UID of your Organization.
- **page** (optional)
  Enter the page number you want to retrieve in the response.

#### Headers

- **authorization** (optional)
  An OAuth access token from a machine-to-machine app, for server-to-server calls that need no user session.

Authentication is required. Pass either this header or authtoken, not both. The renderer lists them as separate optional headers, but a request with neither is rejected.
- **authtoken** (optional)
  A Contentstack authtoken, returned by the Log in to your account request on the Content Management API.

Authentication is required. Pass either this header or authorization, not both. The renderer lists them as separate optional headers, but a request with neither is rejected.

An account may hold at most 20 valid authtokens at a time; creating a twenty-first expires the oldest without warning. In an SSO-enabled organization, users who sign in through the identity provider do not receive an authtoken, so only the organization owner and users permitted to bypass SSO can call this API with one.

#### Sample Response

```json
{
  "data": [
    {
      "total_launch_domain": 62,
      "total_launch_env": 42,
      "total_launch_project": 52
    }
  ],
  "meta": {
    "duration": "day",
    "from": "2024-01-01",
    "includeCount": "true",
    "orgUid": "blt426dad4d38234fd5",
    "services": "[\"cdn\",\"cma\"]",
    "to": "2024-05-28"
  },
  "uid": "c13878ab-ff27-4b9c-ae99-a085c8f75f7d"
}
```