---
title: "Get Attachment"
method: GET
path: "/attachments/{attachment_id}"
tags: ["Attachments"]
---

# Get Attachment

`GET /attachments/{attachment_id}`

## Request

- Base URL: `https://api.aspect.inc`
- URL: `https://api.aspect.inc/attachments/{attachment_id}`
- Auth: API key in header `Authorization`

Get an attachment by ID.

Returns the attachment with a download URL (if uploaded).

Authorization is based on the attachment's context:
- No context: Only the uploader can access
- Comment attachment: User must have VIEW access to the asset
- Icon attachments: User must have VIEW access to the workspace/project/collection
- Person and object reference photos: User must have VIEW access to the column's project

## Path parameters

- `attachment_id` string, uuid, required: The ID of the attachment to get

## Response `200`

Successful Response

- AttachmentResponse: An attachment with a temporary download URL; url and url_expires_at are null until the upload is confirmed.
  - `id` string, uuid, required: Resource identifier
  - `url` string, nullable: Temporary download URL
  - `url_expires_at` string, date-time, nullable: When the URL expires
  - `filename` string, required: Original filename
  - `mime_type` string, required: MIME type of the file
  - `size_bytes` integer, required: File size in bytes
  - `uploaded` boolean, required: Whether the file has been uploaded
  - `created` string, date-time, required: Created timestamp

## Other responses

- `422`: Validation Error

---

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