Get Task by ID
Purpose
The Get Task Status by ID endpoint retrieves the status of a specific raw archive generation task.
Request data
You can retrieve the status of a task by sending a GET request.
HTTPS method: GET
get
URL request example
https://api.tomtom.com/junction-analytics/1/archive/raw-data/tasks/{id}?key={Your_API_Key}Request parameters
The following table shows the query parameters:
- Required parameters must be used or the call will fail.
- Optional parameters may be used.
| Required parameters | Description |
|---|---|
| The unique identifier of the raw archive generation task. Value: The ID of the task you want to check. |
| An API Key valid for the requested service. Value: Your valid API Key. |
Request headers
| Header | Value |
|---|---|
| Content-Type | application/json |
Example request
get
curl command example
$ curl 'https://api.tomtom.com/junction-analytics/1/archive/raw-data/tasks/65268ff77cd5d952a185b9b7?key={Your_API_Key}' -i -X GETResponse data
This response returns the status of the raw archive generation task.
Response body example
{ "id": "65268ff77cd5d952a185b9b7", "status": "IN_PROGRESS", "batchStatus": "IN_PROGRESS", "junctionIds": ["65268ff77cd5d952a185b9b5", "65268ff77cd5d952a185b9b6"], "lastUpdatedAt": "2025-08-06T18:30:01.208Z"}Response fields
| Field | Description |
|---|---|
| The unique identifier of the raw archive generation task. |
| The current status of the task, such as IN_PROGRESS, COMPLETED, or FAILED. |
| The current status of the batch task, such as IN_PROGRESS, COMPLETED, or FAILED. |
| List of junction IDs associated with the raw archive generation task. |
| The timestamp of the last update to the task status, in ISO 8601 format. |
Errors
The following table shows the HTTP error response codes.
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found
|
Error response field
| Field | Description |
|---|---|
| Problem description. |
Example error response
Response error - JSON
{ "errorMessage": "Access to tasks statuses is denied."}