Skip to main content
POST
curl

Notes

  • Credits: 1 for inline HTML or file upload, 2 for URL mode
  • Use either html or url, never both
  • URL mode only supports public http and https addresses
  • Private or internal URLs are rejected
  • Authenticated HTML payloads and HTML uploads are limited to 10 MB

Authorizations

X-API-Key
string
header
required

Send your server-side API key in the X-API-Key header.

Body

html
string | null
url
string<uri> | null
options
object
Example:

Response

Successful response. Send Accept: application/json to receive file metadata instead of the binary payload.

fileName
string
required
size
integer<int32>
required
creditsUsed
integer<int32>
required
contentType
string
required
creditsRemaining
integer<int32> | null