API Overview
Integrate TableFlow’s document extraction capabilities into your applications
The TableFlow API enables you to integrate AI-powered document extraction with your applications and systems. This section covers the key endpoints, authentication, and usage patterns.
Base URL
All API requests should be made to:
Authentication
TableFlow uses API keys for authentication. You can generate API keys in your workspace settings.
All API requests must include an Authorization
header with your API key:
Content Types
The API accepts and returns JSON for most endpoints. For file uploads, use multipart/form-data
.
- For JSON requests:
Content-Type: application/json
- For file uploads:
Content-Type: multipart/form-data
Key Endpoints
Endpoint | Method | Description |
---|---|---|
/extractions/upload | POST | Upload a document for extraction |
/extractions/{id} | GET | Get extraction data |
/extractions/{id}/tables/{tableKey}/rows | GET | Get table rows from an extraction |
/extractions/{id}/tables/{tableKey}/download | GET | Download table data as CSV |
/extractions/{id}/download-original | GET | Download the original document |
Pagination
For endpoints that return collections of items, TableFlow supports pagination with the following parameters:
offset
- Number of items to skip (default: 0)limit
- Maximum number of items to return (default: 100, max: 1000)
Paginated responses include pagination metadata:
Errors
When an error occurs, the API returns an error response with details:
Webhooks
TableFlow can send webhook notifications for extraction events. Learn more about webhooks.
Example: Complete Extraction Flow
- Upload a document for extraction:
You can also use auto
as the template_id
and TableFlow will select the
best template based on the template’s allowed file types.
- Retrieve extraction data:
Field data will be included, but table rows need to be retrieved through /extractions/{id}/tables/{tableKey}/rows
- Download table data as CSV:
API Reference
Explore the detailed documentation for each endpoint in the sections below.