Agents Platform

Create File Document

Changed on

Create a knowledge base document generated form the uploaded file.

post/v1/convai/knowledge-base/file

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/knowledge-base/file
  • Auth
    none declared

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

Documentation that the agent will have access to in order to interact with users.

namestring nullable

A custom, human-readable name for the document.

parent_folder_idstring nullable

If set, the created document or folder will be placed inside the given folder.

Response

Successful Response

idstring required
namestring required

Changes

    • breaking

      removed the required property from the response with the status

    • info

      api operation id Create_file_document_v1_convai_knowledge_base_file_post removed and replaced with create_file_document_route

    • info

      api tag Agents Platform added

    • info

      api tag Conversational AI removed

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      endpoint added