ποΈAPI
Authorization
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)
API Endpoints
Upload new document (File)
POST
https://api.docsparse.com/workflow-docs/upload
Uploading a new document file.
This will start file processing automatically after file is uploaded.
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-token |
|
Body
Name | Type | Description |
---|---|---|
| File | File to upload (pdf,jpg,png) |
| string | Workflow Identifier |
filename | string | File name (optional, unless filename is not present in the file object). Example: |
Response
Upload new document (Public URL)
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
Name | Value |
---|---|
Content-Type |
|
x-api-token |
|
Body
Name | Type | Description |
---|---|---|
| string | Public File URL |
| string | Workflow Identifier |
Response
Process Document (Sync)
POST
https://api.docsparse.com/workflow-docs/[documentId]/process
Process Document Synchronously (Need to wait a response)
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-token |
|
URL Parameters
Name | Type | Description |
---|---|---|
| string | Document Identifier |
Body
Name | Type | Description |
---|---|---|
| boolean | use 'true' to speed up |
Response
Process Document (Async)
POST
https://api.docsparse.com/workflow-docs/submit
Process Document Asynchronously (Need to use a webhook)
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-token |
|
Body
Name | Type | Description |
---|---|---|
| string | Document Identifier |
| boolean | use 'true' to speed up |
Response
List Workflow Documents
GET
https://api.docsparse.com/workflows/{workflowId}/workflow-docs
List workflow documents sorted by uploading date in descending order
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-token |
|
Query Parameters
Name | Type | Description |
---|---|---|
| string | Document Status. To get processed documents use |
Response
Last updated