Tools

Get Documents from Object

Beta
POST

Request

This endpoint expects an object.
document_id
stringRequired
pagination_limit
integerOptional
pagination_offset
integerOptional

Response

This endpoint returns an object
output
map from strings to any
POST
1curl -X POST https://api.athenaintelligence.ai/api/v0/tools/file/langchain-documents \
2 -H "X-API-KEY: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "document_id": "doc_9249292-d118-42d3-95b4-00eccfe0754f",
6 "pagination_limit": 250,
7 "pagination_offset": 0
8}'
200
Successful
1{
2 "output": {
3 "documents": {
4 "0": {
5 "page_content": "Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
6 "metadata": {}
7 }
8 }
9 }
10}