---
title: "Upload File"
method: POST
path: "/v1/convai/conversations/{conversation_id}/files"
tags: ["Agents Platform"]
---

# Upload File

`POST /v1/convai/conversations/{conversation_id}/files`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/convai/conversations/{conversation_id}/files`
- Auth: none declared

Upload an image, PDF, or text file for a conversation. Returns a unique file ID that can be used to reference the file in the conversation.

## Path parameters

- `conversation_id` string, required

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Request body `multipart/form-data`

- BodyUploadFileV1ConvaiConversationsConversationIdFilesPost
  - `file` string, binary, required: Image, PDF, or text file to upload

## Response `200`

Successful Response

- ConvAIFileUploadResponseModel
  - `file_id` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-04-03** `deb5e58ddddf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/conversations/:conversation_id/files/post.md)

---

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