Developers /Docs API

Upload a document

Store a document for parse / extract jobs (expires after a day).

POST/docs/v1/files
POST example
curl --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.

Authorization

Authorizationstring · header · required

Bearer Docs API key with the required scope. Learn about authentication →

Request body

multipart/form-data
filestringrequired

Responses

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[]required
msgstringrequired
typestringrequired
inputobject
ctxobject

The API schema lists the responses above. Long-running operations can also return 202; see async jobs. For application errors, see errors & retries.