Parse a Document from a URL
Parse one document fetched from a URL with the platform’s fast lite parse
POST /v3/parse/, backed by your organization’s system parse workflow (provisioned automatically on first use).
Provide one HTTPS URL. The file is named by the response’s Content-Disposition, else by the URL’s path — see File names. The response is a run reference — poll GET /v3/runs/{run_id}/ until status is processed; the parsed markdown is at results.parse.markdown. A failed, non-2xx, or timed-out fetch surfaces as 422 with the failure reason in detail.
File names
A from-url file is named from the response, not from the request. The name matters twice: it carries the extension the import requires (a URL whose path is an opaque key, such as a presigned object GET, has none), and it is the name you and your users see everywhere the file is listed, so a file called by its storage key is a poor experience. Precedence:- The
Content-Dispositionfilename on the response (RFC 6266;filename*=UTF-8''…wins overfilename=, and any path is cut to its last segment). - Else the URL path’s last segment:
https://example.com/invoices/april.pdfimports asapril.pdf. - Else the slot mint’s extension error, as today: the import fails with
422.
urls in length and order. On S3, ResponseContentDisposition signs it in:
response-content-disposition on a V4 signed URL) and Azure (rscd on a SAS) offer the same override.
Whichever name applies must end in a supported extension (.pdf, .docx, .png, …): a bare key such as uploads/7c1f3e9a names the file 7c1f3e9a, which has none, and the import fails with 422. A name that collides with a file already in the parse workflow is auto-renamed (april.pdf → april (1).pdf).
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Body
Body for POST /v3/parse/from-url/.
HTTPS URL the backend fetches server-side. The filename is derived from the URL's path.
"https://example.com/invoices/april.pdf"
Response
Successful Response
202 response for both run triggers (upload/run/ and
document-packets/{id}/run/).
Unique identifier of the new run (hyphenated UUID).
"069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
The document packet the run executes on (hyphenated UUID).
"069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
The workflow being run (hyphenated UUID).
"0686bb97-8c30-70f0-8000-97669e000eb8"
Status at acceptance time — normally queued.
queued, in_progress, processed, error, cancelled "queued"

