---
title: "Generate a URL for a report record"
method: POST
path: "/reports/{id}/url"
tags: ["Reports"]
---

# Generate a URL for a report record

`POST /reports/{id}/url`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/reports/{id}/url`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Generate a short-lived download URL for the caller's own ready report. Responds 404 if the report does not exist, is not owned by the caller, is not yet ready, or has expired.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- GenerateReportUrlResponse
  - `url` string

---

[API](https://skmtc.dev/surense/apis/report-api.md) - [All operations](https://skmtc.dev/surense/apis/report-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/report-api/revisions/cc45c9661a5b?raw)
