source field in the request body. The source is a discriminated
union on type.
URL source ("type": "url")
Point an operation at any reachable https:// URL. Use a presigned HTTPS URL
for private object storage:
- Python
- TypeScript
- cURL
url—https://only. NDI verifies the resolved hostname.file_name— Chooses the processing lane and appears in result metadata.
Upload source ("type": "upload")
Stage bytes with POST /v1/uploads, then pass the handle:
- Python
- TypeScript
- cURL
- Ordinary uploads have no automatic expiry, including unused uploads.
- Explicit deletion of the consuming job or tenant removes their bytes. Deleting a workspace leaves standalone uploads its jobs read; erase them with
DELETE /v1/uploads/{upload_id}. Zero-retention uploads use isolated temporary staging and are deleted automatically. - Upload IDs are scoped to your API key.
create_upload / createUpload response directly as a parse/extract/split/classify/ground source.
Workspace file source ("type": "workspace_file")
Reference a file already stored in a workspace. Granular operations read the
raw source bytes — the file does not need to be ingested first.
- Python
- TypeScript
- cURL
Parse result source ("type": "parse_result")
On deployments that enforce malware scanning, parse_result sources return
409 scan_required; submit the original input. See malware scanning.
On deployments without that enforcement, reuse a successful Parse job without paying for the parse twice:
- Python
- TypeScript
- cURL
kind: "parse" and
status: "succeeded", and still have an available result.
Workspace file uploads
Uploading into a workspace is a different endpoint — notPOST /v1/uploads.
- Python
- TypeScript
- cURL
Job with kind: "file_upload". The file persists until you delete it, its workspace or its account (Zero retention remains separate); see Data retention. Large files use upload sessions. Browser clients use upload grants.
Workspace .txt sources may be up to 1 GiB. The SDK automatically uses a
resumable session for these files. When a workspace .txt is too large to
return inline (rendered text over 1 MiB), Parse keeps the complete UTF-8 text as
a streamed content artifact: document.markdown is then a preview and
ParseResult.document.content_url streams the full text. Smaller files return
the complete text inline and content_url is null. Split, Extract, and Ground retain their 256 MiB
operation limit and return file_size_too_large above it.