---
title: "Get Attachment"
method: POST
path: "/api/v1/sessions/{sessionId}/attachments/{attachmentId}/get"
tags: ["Sessions"]
---

# Get Attachment

`POST /api/v1/sessions/{sessionId}/attachments/{attachmentId}/get`

Fetch an Attachment's contents.

## Path parameters

- `sessionId` string, uuid, required
- `attachmentId` string, uuid, required

## Request body

- GetAttachmentRequest
  - `resultsAccessKey` string, required — The Results Access Key for the Session associated with the Attachment being retrieved. This is returned during Session creation.

## Response `200`

OK

- GetAttachmentResponse
  - `content` string, byte, required — The raw file contents of the Attachment
  - `contentType` string, required — The MIME type of the Attachment data

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/trinsic/apis/trinsic-api.md) · [All operations](https://skmtc.net/trinsic/apis/trinsic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trinsic/trinsic-api/versions/e57fbc634d48/schema)
