Upload a document to Affinda for parsing and data extraction. Use this action when you need to: - Parse resumes/CVs to extract candidate information - Process invoices to extract line items, amounts, and vendor details - Extract data from any supported document type (PDF, DOCX,…
urlstringPublicly accessible URL of the document to parse. Alternative to uploading a `file`. The URL must be directly accessible without authentication.
fileobjectDocument file to upload for parsing. Supports PDF, DOCX, DOC, PNG, JPG, TIFF formats.
waitbooleanIf true, the API will wait for parsing to complete before returning. If false or omitted, returns immediately with status 'pending'.
compactbooleanIf true, return a compact response with fewer fields for faster transmission.
fileNamestringOverride filename when uploading via URL. This sets the document's display name in Affinda. Ignored when uploading via `file` parameter.
languagestringISO 639-1 language code for the document content. Helps improve OCR and extraction accuracy for non-English documents.
workspacestringWorkspace identifier where the document will be created. Obtain this from the get_workspaces action. If omitted, defaults to the user's primary workspace.
collectionstringCollection identifier to add the document to. Obtain this from the get_collections action. If not specified, document will be in the workspace without a collection.
expiryTimestringISO 8601 datetime when the document should be automatically deleted. Use for temporary documents or compliance requirements.
identifierstringCustom identifier for your own reference to track this document. Must be unique within your workspace.
rejectDuplicatesbooleanIf true, reject the document if it appears to be a duplicate of an existing document in the collection.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.