Skip to main content
GET
/
documents
/
{document_id}
Get document details
import requests

url = "https://app.ubik-agent.com/api/v1/documents/{document_id}"

headers = {"X-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "c1d2e3f4-a5b6-7890-1234-567890abcdef",
  "name": "Q1 Sales Report.pdf",
  "file_type": "application/pdf",
  "status": "completed",
  "created_at": "2025-09-28T10:05:00Z",
  "updated_at": "2025-09-28T10:05:00Z",
  "processing_pipeline": "default-pipeline",
  "file_name": "2024_Q1_Sales_Final_v2.pdf",
  "markdown_content": "# Q1 Sales Report..."
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

document_id
string<uuid>
required

Response

Successful Response

id
string<uuid>
required

The unique identifier for the document.

name
string
required

The display name of the document.

status
string
required

The current processing status of the document.

created_at
string<date-time>
required

The timestamp when the document was created.

updated_at
string<date-time>
required

The timestamp when the document was last updated.

file_type
string | null

The MIME type of the document file.

processing_pipeline
string | null

The name of the processing pipeline used for this document.

error_message
string | null

If processing failed, this field will contain the error message.

file_name
string | null

The original file name of the document.

markdown_content
string | null

The full content of the document converted to Markdown format.