Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Analytics API
  4. Jobs

Jobs

markdownView as Markdown

Retrieve the result of an asynchronous analytics job.

Retrieve Data

GEThttps://app.contentstack.com/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.

Sample Response
Status|200 OK
123456789101112131415161718
{
  "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"
}
Hide Parameters

URL Parameters

jobIdrequiredstring

Enter your job ID.

Example:

job_0******9-b**d-4**b-9**0-4**********2

Query Parameters

orgUidrequiredstring

Enter the UID of your Organization.

Example:

your_organization_uid
pageoptionalstring

Enter the page number you want to retrieve in the response.

Example:

1

Headers

authorizationoptionalstring

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.

authtokenoptionalstring

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.