---
title: "Download report"
method: GET
path: "/api/v1/analytics/report/{id}/permalink/{token}"
tags: ["Report"]
---

# Download report

`GET /api/v1/analytics/report/{id}/permalink/{token}`

Download latest report export result via permalink. Using a permalink will allow anyone with the link to view the report. We recommend to use other export features for exporting data.

## Path parameters

- `id` string, required — Resource identifier.
- `token` string, required — Random string token.

## Response `202`

Request accepted. URL token is valid. No data can be provided yet, but data processing got triggered.

- object
  - `data` object[], nullable, required
    - `id` string, uuid, required — Query execution ID
    - `status` string, required — Query execution status
    - `query` string, required — SQL query
    - `url` string, required — URL to download the result
    - `error` string, required — Error message
    - `exportFormat` string — Export format of the result
    - `createdAt` string, date-time, required — Creation time
    - `updatedAt` string, date-time, required — Last update time

## Other responses

- `301` — Permanent redirect response
- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `402` — Resource can not be accessed because you exceeded the credit limit.
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `415` — Resource representation send in the request is not supported.
- `429` — Too many API calls made.

---

[API](https://skmtc.dev/xentral/apis/xentral-api.md) · [All operations](https://skmtc.dev/xentral/apis/xentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xentral/xentral-api/revisions/8a27ba392442/schema)
