Skip to navigation

Upload conversation file

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_idstringRequired

Headers

xi-api-keystringOptional

Request

This endpoint expects a multipart form containing a file.
filefileRequired
Image, PDF, or text file to upload

Response

Successful Response
file_idstring

Errors

422
Files Create Request Unprocessable Entity Error