---
title: "Create Attachment"
method: POST
path: "/core/conversations/{conversation_id}/attachments"
tags: ["Conversation Attachments"]
---

# Create Attachment

`POST /core/conversations/{conversation_id}/attachments`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/conversations/{conversation_id}/attachments`
- Auth: HTTP bearer

## Path parameters

- `conversation_id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- CreateAttachmentRequest
  - `filename` string, required
  - `content_type` string, required
  - `size_bytes` integer, required
  - `source` string

## Response `200`

Successful Response

- CreateAttachmentResponse
  - `attachment_id` string, required
  - `url` string, required
  - `fields` object, required
  - `s3_key` string, required
  - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

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