Upload a document
Store a document for parse / extract jobs (expires after a day).
POST
/docs/v1/filescurl --request POST \
--url 'https://factget.dev/docs/v1/files' \
--header "Authorization: Bearer $FACTGET_DOCS_KEY" \
--form "file=@./report.pdf"Replace IDs and sample values with your own. The sample uploads a local report.pdf.
Request body
multipart/form-data
filestringrequiredResponses
201Successful Response
application/json
The published schema does not define individual response fields for this endpoint. Inspect the returned JSON in your integration.
422Validation Error
application/json
detailobject[]Show item properties
locstring | integer[]requiredmsgstringrequiredtypestringrequiredinputobjectctxobjectThe API schema lists the responses above. Long-running operations can also return 202; see async jobs. For application errors, see errors & retries.