v1
latestOpenAPI 3.0.02026-07-14135106116.2 KBdocuments
Upload a new doc to the inbox
This endpoint uploads a new file to the given inbox and will process the file.
Upload mode: sync
When sync=true (default), the call will block and wait for the processing to complete.
If you have a custom output configured (this is set by contract.fit team), passing mimetype application/vnd.cf.custom will allow you to get the custom output formatted result
Since it might yield inconsistent results if a timeout is raised while waiting, it is recommended to use the async mode.
Upload mode: async
When sync=false, the call will schedule the processing and return without waiting for completion. It will return the document ID, so that the processed document can be retrieved at a later date.
Permission required: upload
post/documents/{inbox_id}
Response
Success