Authorizations
Basic authentication using an API key, e.g. {Authorization: Bearer aff_0bb4fbdf97b7e4111ff6c0015471094155f91}
.
You can find your API key within the Settings page of the Affinda web app. You can obtain an API key by signing up for a free trial.
Query Parameters
Whether to return the response in snake_case instead of camelCase. Default is false.
Body
Document to upload, either via file upload or URL to a file
File as binary data blob. Supported formats: PDF, DOC, DOCX, TXT, RTF, HTML, PNG, JPG, TIFF, ODT, XLS, XLSX
URL to download the document.
"https://api.affinda.com/static/sample_resumes/example.docx"
Uniquely identify a collection.
"mEFayXdO"
The document type's identifier. Provide if you already know the document type.
Uniquely identify a workspace.
"mEFayXdO"
If "true" (default), will return a response only after processing has completed. If "false", will return an empty data object which can be polled at the GET endpoint until processing is complete.
true
Deprecated in favor of customIdentifier
.
Specify a custom identifier for the document if you need one, not required to be unique.
Optional filename of the file
"Document.pdf"
The date/time in ISO-8601 format when the document will be automatically deleted. Defaults to no expiry.
Language code in ISO 639-1 format. Must specify zh-cn or zh-tw for Chinese.
"en"
If "true", parsing will fail when the uploaded document is duplicate of an existing document, no credits will be consumed. If "false", will parse the document normally whether its a duplicate or not. If not provided, will fallback to the workspace settings.
true
A JSON representation of the RegionBias object.
"{\"country\": \"vn\"}"
Explicitly mark this document as low priority.
true
If true, the returned parse result (assuming wait
is also true) will be a compact version of the full result.
true
If true, no data will be stored after parsing. Only compatible with requests where wait: True.
true
If true, the document will be viewable in the Affinda Validation Tool. Set to False to optimize parsing speed.
true
If true, the document will be treated like an image, and the text will be extracted using OCR. If false, the document will be treated like a PDF, and the text will be extracted using the parser. If not set, we will determine whether to use OCR based on whether words are found in the document.