GET
/
v1
/
extract
/
document
/
{document_id}
curl --request GET \
  --url https://api.aurelio.ai/v1/extract/document/{document_id} \
  --header 'authorization: <api-key>'
{
  "status": "pending",
  "usage": {
    "tokens": 123,
    "pages": 123,
    "seconds": 123
  },
  "message": "<string>",
  "processing_options": {
    "chunk": true,
    "quality": "low"
  },
  "document": {
    "id": "<string>",
    "content": "<string>",
    "source": "<string>",
    "source_type": "application/pdf",
    "num_chunks": 123,
    "metadata": {},
    "chunks": []
  },
  "uploaded_urls": {
    "original_file": "<string>",
    "result_html": "<string>",
    "result_json": "<string>",
    "result_markdown": "<string>"
  }
}

Authorizations

authorization
string
header
required

Path Parameters

document_id
string
required

Response

200
application/json
Successful Response

Extended response payload for document processing

status
enum<string>
required

The status of the chunking process

Available options:
pending,
completed,
failed
usage
object
required

Usage

processing_options
object
required

The processing options for the document processor

document
object
required
message
string | null

Message

uploaded_urls
object | null

Uploaded URLs