Skip to main content
POST
/
format
/
v1
/
document
"<string>"

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
content
string
required

The source content to format

output_format
enum<string>
required

Desired output format

Available options:
pdf,
docx,
html_preview
input_format
enum<string>
default:md

Format of the input content

Available options:
md,
json,
text
options
object

Optional template composition and styling settings used during document generation

Response

Formatted document (binary for PDF/DOCX, HTML for preview)

The response is of type file.