Create structured sheets
POST/v1/structured-sheets
Start converting a spreadsheet workbook into structured data. This initiates an asynchronous conversion process. Poll the returned resource using the id to check completion status.
Body Parameters
file_id: string
The unique identifier of the file to convert.
sheet_names: optional array of string
List of sheet names to convert. If None, all sheets will be converted.
Returns
Create structured sheets
curl https://api.deeptable.com/v1/structured-sheets \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $DEEPTABLE_API_KEY" \
-d '{
"file_id": "file_01h45ytscbebyvny4gc8cr8ma2"
}'{
"id": "ss_01abc2def3ghjkmnpqrs4uvwxy",
"created_at": "2024-01-15T10:30:00Z",
"file_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"status": "completed",
"updated_at": "2024-01-15T10:35:00Z",
"exports_available": [
"sqlite"
],
"last_error": {
"code": "invalid_file_format",
"message": "The uploaded file is not a valid Excel spreadsheet."
},
"object": "structured_sheet",
"sheet_names": [
"Sheet1",
"Financials"
]
}Returns Examples
{
"id": "ss_01abc2def3ghjkmnpqrs4uvwxy",
"created_at": "2024-01-15T10:30:00Z",
"file_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"status": "completed",
"updated_at": "2024-01-15T10:35:00Z",
"exports_available": [
"sqlite"
],
"last_error": {
"code": "invalid_file_format",
"message": "The uploaded file is not a valid Excel spreadsheet."
},
"object": "structured_sheet",
"sheet_names": [
"Sheet1",
"Financials"
]
}