Agents Platform

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.

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

Path parameters

conversation_idstring required

Headers

xi-api-keystring 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

filestring binary required

Image, PDF, or text file to upload

Response

Successful Response

file_idstring required

Changes