Retrieve structured sheet
client.StructuredSheets.Get(ctx, structuredSheetID) (*StructuredSheetResponse, error)
GET/v1/structured-sheets/{structured_sheet_id}
Get the status and details of a structured sheet conversion.
Retrieve structured sheet
package main
import (
"context"
"fmt"
"github.com/deeptable-com/deeptable-go"
"github.com/deeptable-com/deeptable-go/option"
)
func main() {
client := deeptable.NewClient(
option.WithAPIKey("My API Key"),
)
structuredSheetResponse, err := client.StructuredSheets.Get(context.TODO(), "ss_01kfxgjd94fn9stqm42nejb627")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", structuredSheetResponse.ID)
}
{
"id": "ss_01kfxgjd94fn9stqm42nejb627",
"created_at": "2024-01-15T10:30:00Z",
"file_id": "file_01kfxgjd94fn9stqm414vjb0s8",
"object": "structured_sheet",
"status": "completed",
"updated_at": "2024-01-15T10:35:00Z",
"last_error": {
"code": "invalid_file_format",
"message": "The uploaded file is not a valid Excel spreadsheet."
},
"sheet_names": [
"Sheet1",
"Financials"
],
"table_count": 6
}Returns Examples
{
"id": "ss_01kfxgjd94fn9stqm42nejb627",
"created_at": "2024-01-15T10:30:00Z",
"file_id": "file_01kfxgjd94fn9stqm414vjb0s8",
"object": "structured_sheet",
"status": "completed",
"updated_at": "2024-01-15T10:35:00Z",
"last_error": {
"code": "invalid_file_format",
"message": "The uploaded file is not a valid Excel spreadsheet."
},
"sheet_names": [
"Sheet1",
"Financials"
],
"table_count": 6
}