POST
/
documents
/
add-document
curl --request POST \
  --url https://api.zeroentropy.dev/v1/documents/add-document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection_name": "<string>",
  "path": "<string>",
  "content": {
    "type": "text",
    "text": "<string>"
  },
  "metadata": {},
  "overwrite": false
}'
{
  "message": "Success!"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.