curl -X GET "https://api.tableflow.com/v2/extractions?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"
const axios = require("axios");
async function getExtractions(options = {}) {
try {
const response = await axios.get(
"https://api.tableflow.com/v2/extractions",
{
params: {
template_id: options.templateId,
limit: options.limit || 100,
offset: options.offset || 0,
},
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
return response.data;
} catch (error) {
console.error(error);
throw error;
}
}
// Example: list recent extractions
getExtractions({ limit: 50 }).then((result) => {
console.log(`Found ${result.total} extractions`);
result.extractions.forEach((ext) => {
console.log(`${ext.id} - ${ext.status} - ${ext.file_info.file_name}`);
});
});
import requests
def get_extractions(template_id=None, limit=100, offset=0):
url = "https://api.tableflow.com/v2/extractions"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {
"limit": limit,
"offset": offset
}
if template_id:
params["template_id"] = template_id
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
return response.json()
# Example: list recent extractions
result = get_extractions(limit=50)
print(f"Found {result['total']} extractions")
for ext in result["extractions"]:
print(f"{ext['id']} - {ext['status']} - {ext['file_info']['file_name']}")
{
"extractions": [
{
"id": "uT2bJNWN75YPU95r",
"status": "completed",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": {
"user_id": "123",
"reference": "INV-2023-04-15"
},
"created_at": 1682366228,
"updated_at": 1682366240,
"file_info": {
"file_name": "acme-invoice-apr2023.pdf",
"file_type": "pdf"
}
},
{
"id": "xK9mPqR3vW7nB2cD",
"status": "processing",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": null,
"created_at": 1682366300,
"updated_at": 1682366300,
"file_info": {
"file_name": "quarterly-report.xlsx",
"file_type": "xlsx"
}
}
],
"total": 47,
"limit": 100,
"offset": 0
}
Extractions
List Extractions
Get a paginated list of extractions in your workspace
GET
/
v2
/
extractions
curl -X GET "https://api.tableflow.com/v2/extractions?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"
const axios = require("axios");
async function getExtractions(options = {}) {
try {
const response = await axios.get(
"https://api.tableflow.com/v2/extractions",
{
params: {
template_id: options.templateId,
limit: options.limit || 100,
offset: options.offset || 0,
},
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
return response.data;
} catch (error) {
console.error(error);
throw error;
}
}
// Example: list recent extractions
getExtractions({ limit: 50 }).then((result) => {
console.log(`Found ${result.total} extractions`);
result.extractions.forEach((ext) => {
console.log(`${ext.id} - ${ext.status} - ${ext.file_info.file_name}`);
});
});
import requests
def get_extractions(template_id=None, limit=100, offset=0):
url = "https://api.tableflow.com/v2/extractions"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {
"limit": limit,
"offset": offset
}
if template_id:
params["template_id"] = template_id
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
return response.json()
# Example: list recent extractions
result = get_extractions(limit=50)
print(f"Found {result['total']} extractions")
for ext in result["extractions"]:
print(f"{ext['id']} - {ext['status']} - {ext['file_info']['file_name']}")
{
"extractions": [
{
"id": "uT2bJNWN75YPU95r",
"status": "completed",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": {
"user_id": "123",
"reference": "INV-2023-04-15"
},
"created_at": 1682366228,
"updated_at": 1682366240,
"file_info": {
"file_name": "acme-invoice-apr2023.pdf",
"file_type": "pdf"
}
},
{
"id": "xK9mPqR3vW7nB2cD",
"status": "processing",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": null,
"created_at": 1682366300,
"updated_at": 1682366300,
"file_info": {
"file_name": "quarterly-report.xlsx",
"file_type": "xlsx"
}
}
],
"total": 47,
"limit": 100,
"offset": 0
}
Retrieves a paginated list of extractions in your workspace. Returns a summary of each extraction including status, template, and file information.
Usage Notes
- Results are ordered by creation date (newest first)
- Use
template_idto filter extractions by a specific template - For full extraction data including fields and tables, use the Get Extraction endpoint
Request
string
Filter extractions by a specific template ID.
integer
default:"100"
Maximum number of extractions to return. Maximum value is 1000.
integer
default:"0"
Number of extractions to skip for pagination.
curl -X GET "https://api.tableflow.com/v2/extractions?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"
const axios = require("axios");
async function getExtractions(options = {}) {
try {
const response = await axios.get(
"https://api.tableflow.com/v2/extractions",
{
params: {
template_id: options.templateId,
limit: options.limit || 100,
offset: options.offset || 0,
},
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
return response.data;
} catch (error) {
console.error(error);
throw error;
}
}
// Example: list recent extractions
getExtractions({ limit: 50 }).then((result) => {
console.log(`Found ${result.total} extractions`);
result.extractions.forEach((ext) => {
console.log(`${ext.id} - ${ext.status} - ${ext.file_info.file_name}`);
});
});
import requests
def get_extractions(template_id=None, limit=100, offset=0):
url = "https://api.tableflow.com/v2/extractions"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {
"limit": limit,
"offset": offset
}
if template_id:
params["template_id"] = template_id
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
return response.json()
# Example: list recent extractions
result = get_extractions(limit=50)
print(f"Found {result['total']} extractions")
for ext in result["extractions"]:
print(f"{ext['id']} - {ext['status']} - {ext['file_info']['file_name']}")
Response
array
Array of extraction summary objects.
Show extraction
Show extraction
string
The unique identifier for the extraction.
string
The current status of the extraction (
processing, completed, or failed).string
The ID of the template used for the extraction.
object
Custom metadata associated with the extraction.
integer
Unix timestamp when the extraction was created.
integer
Unix timestamp when the extraction was last updated.
integer
Total number of extractions matching the query.
integer
The limit applied to this request.
integer
The offset applied to this request.
{
"extractions": [
{
"id": "uT2bJNWN75YPU95r",
"status": "completed",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": {
"user_id": "123",
"reference": "INV-2023-04-15"
},
"created_at": 1682366228,
"updated_at": 1682366240,
"file_info": {
"file_name": "acme-invoice-apr2023.pdf",
"file_type": "pdf"
}
},
{
"id": "xK9mPqR3vW7nB2cD",
"status": "processing",
"template_id": "JlLZVabDjYWzu7C9",
"metadata": null,
"created_at": 1682366300,
"updated_at": 1682366300,
"file_info": {
"file_name": "quarterly-report.xlsx",
"file_type": "xlsx"
}
}
],
"total": 47,
"limit": 100,
"offset": 0
}
⌘I