ποΈAPI
Last updated
Last updated
DocsParse authorization works through header (x-api-token). To find API Token, go to your Workflow -> Integrations -> API (Click "Generate token" if you don't have it)
POST
https://api.docsparse.com/workflow-docs/upload
Uploading a new document file.
This will start file processing automatically after file is uploaded.
Headers
Body
Response
POST
https://api.docsparse.com/workflow-docs/url-upload
Upload document with URL.
This will start file processing automatically after file is uploaded.
Document URL should be public
Headers
Body
Response
POST
https://api.docsparse.com/workflow-docs/[documentId]/process
Process Document Synchronously (Need to wait a response)
Headers
URL Parameters
Body
Response
POST
https://api.docsparse.com/workflow-docs/submit
Process Document Asynchronously (Need to use a webhook)
Headers
Body
Response
GET
https://api.docsparse.com/workflows/{workflowId}/workflow-docs
List workflow documents sorted by uploading date in descending order
Headers
Query Parameters
Response
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Content-Type
multipart/form-data
x-api-token
<token>
file
File
File to upload (pdf,jpg,png)
workflowId
string
Workflow Identifier
filename
string
File name (optional, unless filename is not present in the file
object). Example: invoice.pdf
startProcessing
true/false
Optional parameter, defaults to true (start processing after upload). Set to false to disable processing after upload (has to be triggered manually)
Content-Type
application/json
x-api-token
<token>
fileUrl
string
Public File URL
workflowId
string
Workflow Identifier
startProcessing
true/false
Optional parameter, defaults to true (start processing after upload). Set to false to disable processing after upload (has to be triggered manually)
Content-Type
application/json
x-api-token
<token>
documentId
string
Document Identifier
useCache
boolean
use 'true' to speed up
Content-Type
application/json
x-api-token
<token>
workflowDocumentId
string
Document Identifier
useCache
boolean
use 'true' to speed up
Content-Type
application/json
x-api-token
<token>
status
string
Document Status. To get processed documents use parsed