Retrieve structured sheets
structured_sheets.retrieve(strstructured_sheets_id) -> StructuredSheetResponse
GET/v1/structured-sheets/{structured_sheets_id}
Get the status and details of a structured sheets conversion.
Parameters
structured_sheets_id: str
The unique identifier of the structured sheets conversion.
Returns
Retrieve structured sheets
import os
from deeptable import DeepTable
client = DeepTable(
api_key=os.environ.get("DEEPTABLE_API_KEY"), # This is the default and can be omitted
)
structured_sheet_response = client.structured_sheets.retrieve(
"ss_01abc2def3ghjkmnpqrs4uvwxy",
)
print(structured_sheet_response.id){
"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"
]
}