POST
/
documents
/
get-document-info
curl --request POST \
  --url https://api.zeroentropy.dev/v1/documents/get-document-info \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection_name": "<string>",
  "path": "<string>",
  "include_content": false
}'
{
  "document": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "collection_name": "<string>",
    "path": "<string>",
    "metadata": {},
    "index_status": "parsing_failed",
    "num_pages": 123,
    "content": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
collection_name
string
required

The name of the collection.

path
string
required

The filepath of the document that you're requesting. A 404 Not Found status code will be returned if no document with this path was found.

include_content
boolean
default:false

If true, then the document response will have the content attribute be a string, rather than null. This string will contain the full contents of the document.

Response

200
application/json
Successful Response
document
object
required