POST
/
api
/
documents
/
assistant
/
raw
Upload a raw document to a given assistant
curl --request POST \
  --url https://api.vambe.me/api/documents/assistant/raw \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "content": "<string>",
  "fileName": "<string>",
  "externalId": "<string>"
}'

Headers

x-api-key
string
required

API key needed to authorize the request

Body

application/json

The content of the document, the name of the file, the external id of the document and the assistant id.

content
string
required
fileName
string
required
externalId
string
required
assistantId
string

Response

Document created successfully.