---
title: "Get a signed URL for an attachment"
method: GET
path: "/public/v1/attachments/signed-url"
tags: ["public"]
---

# Get a signed URL for an attachment

`GET /public/v1/attachments/signed-url`

## Request

- Base URL: `https://api.gurusup.com`
- URL: `https://api.gurusup.com/public/v1/attachments/signed-url`
- Auth: API key in header `x-api-key`

Generate a time-limited signed URL to download a private attachment from storage. The `path` parameter should be the relative URL returned in attachment objects (e.g. `attachments/{org_id}/{thread_hash}/{msg_id}/{filename}`).

## Query parameters

- `path` string, required
- `expiration_minutes` integer

## Response `200`

A signed URL valid for the specified duration.

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gurusup/apis/gurusup-api.md) · [All operations](https://skmtc.dev/gurusup/apis/gurusup-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gurusup/apis/gurusup-api/revisions/8b3c86d4bf1e?raw)
