Tutorial: Create a Table and Query Rows
End-to-end flow to define a table schema and query rows through the flat `/v1` API.
1. Create a table
curl -X POST "https://api.pdfparse.net/v1/tables" \
-H "Authorization: Bearer ${PDFPARSE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"name": "invoice_rows",
"columns": [
{"name": "invoice_number", "prompt": "Invoice number", "type": "text"},
{"name": "invoice_date", "prompt": "Invoice date", "type": "date"},
{"name": "total", "prompt": "Invoice total", "type": "number"}
]
}'Capture the returned id or slug.
2. Verify table list
curl -X GET "https://api.pdfparse.net/v1/tables" \
-H "Authorization: Bearer ${PDFPARSE_API_KEY}"3. Query rows for the table
curl -X POST "https://api.pdfparse.net/v1/rows/search" \
-H "Authorization: Bearer ${PDFPARSE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"table_id": "<table_id>",
"filters": [],
"page": 1,
"pageSize": 50
}'