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

# Upload File

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

Upload an image or PDF 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.

## Response `200`

Successful Response

- ConvAIFileUploadResponseModel
  - `file_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/3b2cee2701a3/schema)
