Overview
Create a complete Excel workbook by defining logical content blocks. The intelligent layout engine automatically handles cell positioning and formula references, freeing you from managing specific cell addresses.Asynchronous Operation: Returns immediately with a job ID. Poll for the download URL.
Authentication
Bearer token (API key from app.stru.ai)
Request Body
Must be
"create_spreadsheet"Workbook name/title
Array of sheet definitionsSee Sheet Structure below
Sheet Structure
Each sheet contains an array of content blocks:Example Request
Response
When complete:Excel generation typically takes 3-10 seconds depending on complexity.
Best Practices
Name your tables - Use the
name field for data tables to reference them in formulasUse structured references - Reference named tables in formulas:
=SUM(MATERIALS[Total])Let the API handle layout - Don’t specify cell positions; the intelligent engine optimizes placement