Skip to main content
GET
/
api
/
v1
/
create-document
/
{request_id}
Create Document Result Check
import requests

url = "https://www.datalab.to/api/v1/create-document/{request_id}"

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

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

print(response.text)
{
  "status": "<string>",
  "success": true,
  "error": "<string>",
  "output_format": "<string>",
  "output_base64": "<string>",
  "runtime": 123,
  "page_count": 123,
  "cost_breakdown": {},
  "versions": {}
}

Authorizations

X-API-Key
string
header
required

Path Parameters

request_id
string
required

Cookies

wos-session
string
access_token
string
datalab_active_team
string

Response

Successful Response

Response model for create document endpoint.

status
string
required

The status of the request. Should be 'complete' when the request is done.

success
boolean | null

Whether the document creation was successful.

error
string | null

Error message if document creation failed.

output_format
string | null

Output format: 'docx'.

output_base64
string | null

Base64-encoded document (DOCX).

runtime
number | null

Processing time in seconds.

page_count
integer | null

Number of pages in the document.

cost_breakdown
Cost Breakdown · object

A dictionary of the cost breakdown of this request.

versions

A dictionary of the versions of the libraries used in the request.