Parse a file
Changed onConvert uploaded file bytes into Markdown and optional HTML.
Request
- Base URL: https://api.context.dev/v1
- URL: https://api.context.dev/v1/parse
- Auth: HTTP bearer
Query parameters
Optional file extension hint, such as pdf, docx, xlsx, pptx, html, json, csv, md, py, rtf, jpg, png, or txt.
Preserve hyperlinks in Markdown output
Include image references in Markdown output
Shorten base64-encoded image data in the Markdown output
Extract only the main content from HTML-like inputs
Read text from images and scanned PDF pages. PDF page ranges still apply.
Optional client identifier used for usage attribution.
enabled turns on zero data retention. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR.
Labels for filtering usage in the dashboard.
Comma-separated labels for filtering usage, e.g. production,team-alpha.
[ "production", "team-alpha" ]
Request body application/octet-stream
Response
Successful response
Example response
{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}Changes
- warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info