---
title: "GET /datainsights/v1.1/tasks/token/{token}"
method: GET
path: "/datainsights/v1.1/tasks/token/{token}"
tags: ["Task"]
---

# GET /datainsights/v1.1/tasks/token/{token}

`GET /datainsights/v1.1/tasks/token/{token}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `token` string, required

## Response `200`

OK

- QueueResponse
  - `id` string
  - `status` string: Status of the task
  - `result` QueueResult
    - `url` string, url, required: Download URL of the generated report
    - `format` string, required: Format of the report
    - `view` string, required: View of the report
    - `filename` string, required: Name of the report
    - `generated_at` string: Timestamp of the report
    - `email` Email
      - `MessageId` string: ID of the email sent
      - `ResponseMetadata` ResponseMetadata
        - `RequestId` string: Request ID
        - `HTTPStatusCode` integer: HTTP status code
        - `HTTPHeaders` HTTPHeaders
          - `date` string: Date of the response
          - `content_type` string: Content type
          - `content_length` integer: Length of the content
          - `connection` string: Connection type
          - `x_amzn_requestid` string: Amazon request ID
        - `RetryAttempts` integer: Number of retry attempts
    - `emails` Email[]: Information about the emails sent to the user, if there were multiple emails sent.
      - `MessageId` string: ID of the email sent
      - `ResponseMetadata` ResponseMetadata
        - `RequestId` string: Request ID
        - `HTTPStatusCode` integer: HTTP status code
        - `HTTPHeaders` HTTPHeaders
          - `date` string: Date of the response
          - `content_type` string: Content type
          - `content_length` integer: Length of the content
          - `connection` string: Connection type
          - `x_amzn_requestid` string: Amazon request ID
        - `RetryAttempts` integer: Number of retry attempts
  - `error` string: Error, if the task failed

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cloudbeds/apis/data-insights-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/data-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/data-insights-api/revisions/0a16807149c2?raw)
