curl -X GET https://api.tableflow.com/v2/extractions/uT2bJNWN75YPU95r \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "uT2bJNWN75YPU95r",
"workspace_id": "dk4g1tUg1uHLs8YU",
"template_id": "JlLZVabDjYWzu7C9",
"template_name": "Invoice Template",
"file_name": "acme-invoice-apr2023.pdf",
"file_size": 245872,
"file_type": {
"key": "document",
"extension": "pdf",
"mime_type": "application/pdf"
},
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "File uploaded"
},
{
"status": "completed",
"time": 1682366240,
"message": "Extraction completed"
}
],
"created_at": 1682366228,
"updated_at": 1682366240,
"data": {
"fields": {
"values": {
"invoice_number": "INV-20230415",
"invoice_date": "2023-04-15",
"customer_name": "Acme Corporation",
"payment_terms": "Net 30",
"total_amount": "1245.75"
},
"validations": {}
},
"tables": {
"line_items": {
"pagination": {
"offset": 0,
"limit": 100,
"total": 2,
"next_offset": null,
"filter": "all"
},
"rows": [
{
"index": 0,
"values": {
"description": "Ergonomic Office Chair",
"quantity": "1",
"unit_price": "249.99",
"amount": "249.99"
},
"validations": {}
},
{
"index": 1,
"values": {
"description": "Wireless Keyboard",
"quantity": "2",
"unit_price": "59.95",
"amount": "119.90"
},
"validations": {}
}
]
}
}
},
"stats": {
"fields": {
"valid": 5,
"invalid": 0,
"total": 5
},
"tables": {
"line_items": {
"rows": {
"valid": 2,
"invalid": 0,
"total": 2
},
"columns": {
"total": 4
}
}
}
},
"template": {
"id": "JlLZVabDjYWzu7C9",
"name": "Invoice Template",
"fields": [
{
"key": "invoice_number",
"name": "Invoice Number",
"data_type": "string"
}
],
"tables": [
{
"key": "line_items",
"name": "Line Items",
"columns": [
{
"key": "description",
"name": "Description",
"data_type": "string"
}
]
}
]
}
}
Get extraction by ID
curl -X GET https://api.tableflow.com/v2/extractions/uT2bJNWN75YPU95r \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "uT2bJNWN75YPU95r",
"workspace_id": "dk4g1tUg1uHLs8YU",
"template_id": "JlLZVabDjYWzu7C9",
"template_name": "Invoice Template",
"file_name": "acme-invoice-apr2023.pdf",
"file_size": 245872,
"file_type": {
"key": "document",
"extension": "pdf",
"mime_type": "application/pdf"
},
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "File uploaded"
},
{
"status": "completed",
"time": 1682366240,
"message": "Extraction completed"
}
],
"created_at": 1682366228,
"updated_at": 1682366240,
"data": {
"fields": {
"values": {
"invoice_number": "INV-20230415",
"invoice_date": "2023-04-15",
"customer_name": "Acme Corporation",
"payment_terms": "Net 30",
"total_amount": "1245.75"
},
"validations": {}
},
"tables": {
"line_items": {
"pagination": {
"offset": 0,
"limit": 100,
"total": 2,
"next_offset": null,
"filter": "all"
},
"rows": [
{
"index": 0,
"values": {
"description": "Ergonomic Office Chair",
"quantity": "1",
"unit_price": "249.99",
"amount": "249.99"
},
"validations": {}
},
{
"index": 1,
"values": {
"description": "Wireless Keyboard",
"quantity": "2",
"unit_price": "59.95",
"amount": "119.90"
},
"validations": {}
}
]
}
}
},
"stats": {
"fields": {
"valid": 5,
"invalid": 0,
"total": 5
},
"tables": {
"line_items": {
"rows": {
"valid": 2,
"invalid": 0,
"total": 2
},
"columns": {
"total": 4
}
}
}
},
"template": {
"id": "JlLZVabDjYWzu7C9",
"name": "Invoice Template",
"fields": [
{
"key": "invoice_number",
"name": "Invoice Number",
"data_type": "string"
}
],
"tables": [
{
"key": "line_items",
"name": "Line Items",
"columns": [
{
"key": "description",
"name": "Description",
"data_type": "string"
}
]
}
]
}
}
curl -X GET https://api.tableflow.com/v2/extractions/uT2bJNWN75YPU95r \
-H "Authorization: Bearer YOUR_API_KEY"
Show data
Show fields
Show tables
Show pagination
Show stats
Show tables
Show columns
{
"id": "uT2bJNWN75YPU95r",
"workspace_id": "dk4g1tUg1uHLs8YU",
"template_id": "JlLZVabDjYWzu7C9",
"template_name": "Invoice Template",
"file_name": "acme-invoice-apr2023.pdf",
"file_size": 245872,
"file_type": {
"key": "document",
"extension": "pdf",
"mime_type": "application/pdf"
},
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "File uploaded"
},
{
"status": "completed",
"time": 1682366240,
"message": "Extraction completed"
}
],
"created_at": 1682366228,
"updated_at": 1682366240,
"data": {
"fields": {
"values": {
"invoice_number": "INV-20230415",
"invoice_date": "2023-04-15",
"customer_name": "Acme Corporation",
"payment_terms": "Net 30",
"total_amount": "1245.75"
},
"validations": {}
},
"tables": {
"line_items": {
"pagination": {
"offset": 0,
"limit": 100,
"total": 2,
"next_offset": null,
"filter": "all"
},
"rows": [
{
"index": 0,
"values": {
"description": "Ergonomic Office Chair",
"quantity": "1",
"unit_price": "249.99",
"amount": "249.99"
},
"validations": {}
},
{
"index": 1,
"values": {
"description": "Wireless Keyboard",
"quantity": "2",
"unit_price": "59.95",
"amount": "119.90"
},
"validations": {}
}
]
}
}
},
"stats": {
"fields": {
"valid": 5,
"invalid": 0,
"total": 5
},
"tables": {
"line_items": {
"rows": {
"valid": 2,
"invalid": 0,
"total": 2
},
"columns": {
"total": 4
}
}
}
},
"template": {
"id": "JlLZVabDjYWzu7C9",
"name": "Invoice Template",
"fields": [
{
"key": "invoice_number",
"name": "Invoice Number",
"data_type": "string"
}
],
"tables": [
{
"key": "line_items",
"name": "Line Items",
"columns": [
{
"key": "description",
"name": "Description",
"data_type": "string"
}
]
}
]
}
}
{
"error": "No extraction ID provided"
}