v1

latestOpenAPI 3.1.02026-07-26151126273.9 KB

Create Document

Create a DOCX document from markdown with track changes support. Supports <ins>, <del>, and <comment> tags.

post/api/v1/create-document

Cookies

wos-sessionstring
datalab_active_teamstring

Request body

markdownstring required

The markdown content to convert to a document. Supports track changes markup (<ins>, <del>, <comment> tags).

output_formatstring

The output format for the document. Currently only 'docx' is supported.

webhook_urlstring nullable

Optional webhook URL to call when the request is complete.

processing_locationstring nullable

Optional residency region override (e.g. us, eu). When provided, use file_url or direct-upload; multipart uploads are rejected. When omitted, the request uses the team's configured residency and profile.

model_override_settingsobject nullable

Response

Successful Response

successboolean

Whether the request was successful.

errorstring nullable

If the request was not successful, this will contain an error message.

request_idstring required

The ID of the request. This ID can be used to check the status of the request.

request_check_urlstring required

The URL to check the status of the request and get results.