POST
/
pdf
/
markdown
curl --request POST \
  --url https://www.refile.co/api/v1/pdf/markdown \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "markdown": "<string>",
  "output": "binary",
  "theme": "modern",
  "pageNumeration": "center",
  "pageSize": "A4"
}'
{
  "url": "https://files.refile.co/pdf/a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6.pdf"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Markdown content and formatting options

The body is of type object.

Response

200
application/pdf

PDF generated successfully

Generated PDF file (when output=binary)