---
title: "Get an activity data job"
method: GET
path: "/activity-data-jobs/{jobId}"
tags: ["Activity Data"]
---

# Get an activity data job

`GET /activity-data-jobs/{jobId}`

Returns the state of an activity data job. When `status` is `success` the
response includes the download URLs and their expiry.

## Path parameters

- `jobId` string, required

## Response `200`

The job.

- ActivityDataJob — An activity data export job. `downloadUrls` and `downloadUrlsExpirationDate` are only present when `status` is `success`; `errorMessage` only when it is `failure`.
  - `id` string
  - `status` 'pending' | 'running' | 'success' | 'failure' | 'cancelled'
  - `categories` string[]
  - `format` 'csv' | 'parquet'
  - `startTime` string, date-time
  - `endTime` string, date-time
  - `createdAt` string, date-time
  - `downloadUrls` object — Download URLs per category.
  - `downloadUrlsExpirationDate` string, date-time
  - `errorMessage` string

## Other responses

- `400` — The request is malformed or a parameter failed validation.
- `401` — The token is missing, malformed or expired.
- `403` — The token doesn't grant access to this resource.
- `404` — The resource doesn't exist.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
