Reports
Custom report definitions, sections, generation, PDF export and scheduling. Requires the Custom reports feature on the workspace.
- List custom reports for workspaceGET
/api/v1/reports - Create a custom reportPOST
/api/v1/reports - Get custom report with sectionsGET
/api/v1/reports/{report_id} - Update a custom reportPATCH
/api/v1/reports/{report_id} - Delete a custom reportDELETE
/api/v1/reports/{report_id} - Generate layout_config from natural language style descriptionPOST
/api/v1/reports/{report_id}/customize-style - Generate all stale sectionsPOST
/api/v1/reports/{report_id}/generate - Download report as PDFGET
/api/v1/reports/{report_id}/pdf - Get report scheduleGET
/api/v1/reports/{report_id}/schedule - Create report refresh schedulePOST
/api/v1/reports/{report_id}/schedule - Update report schedulePATCH
/api/v1/reports/{report_id}/schedule - Delete report scheduleDELETE
/api/v1/reports/{report_id}/schedule - Add section to a reportPOST
/api/v1/reports/{report_id}/sections - Update a report sectionPATCH
/api/v1/reports/{report_id}/sections/{section_id} - Delete a report sectionDELETE
/api/v1/reports/{report_id}/sections/{section_id} - Generate output for a single sectionPOST
/api/v1/reports/{report_id}/sections/{section_id}/generate - Send report via emailPOST
/api/v1/reports/{report_id}/send-email
List custom reports for workspace
/api/v1/reportsRequires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Query parameters
- default "true"
include_templatesstringSet to false to leave out report templates.
Returns200 · object
reportsarray of objectRequired10 child fields
created_atstringRequired- nullable
created_bystring - nullable
descriptionstring idstringRequired- default false
is_templateboolean layout_configobject- nullable
sectionsarray of objectPresent on single-report reads.
13 child fields
- nullable
cached_outputobjectThe last generated output.
created_atstringRequireddata_scopeobject- default "narrative"
display_typestringcards, table, narrative or grade_bar.
- nullable
generated_atstring idstringRequired- default true
is_staleboolean - nullable
prompt_templatestring report_idstringRequiredsection_typestringRequiredprompt_analysis, aggregate_summary or data_table.
- default 0
sort_orderinteger titlestringRequiredupdated_atstringRequired
- for example "Weekly narrative scorecard"
titlestringRequired updated_atstringRequiredworkspace_idstringRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/reports \
-H 'X-API-Key: <api key>'Create a custom report
/api/v1/reportsRequires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Bodyapplication/json · required
- nullable
descriptionstringUsed to propose the report's sections.
- nullable
modelstring - for example "Weekly narrative scorecard"
titlestringRequired
Returns201 · object
auto_generatedbooleanRequiredTrue when sections were proposed from the description.
reportobjectRequired10 child fields
created_atstringRequired- nullable
created_bystring - nullable
descriptionstring idstringRequired- default false
is_templateboolean layout_configobject- nullable
sectionsarray of objectPresent on single-report reads.
13 child fields
- nullable
cached_outputobjectThe last generated output.
created_atstringRequireddata_scopeobject- default "narrative"
display_typestringcards, table, narrative or grade_bar.
- nullable
generated_atstring idstringRequired- default true
is_staleboolean - nullable
prompt_templatestring report_idstringRequiredsection_typestringRequiredprompt_analysis, aggregate_summary or data_table.
- default 0
sort_orderinteger titlestringRequiredupdated_atstringRequired
- for example "Weekly narrative scorecard"
titlestringRequired updated_atstringRequiredworkspace_idstringRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/reports \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"title":"Weekly narrative scorecard"}'Get custom report with sections
/api/v1/reports/{report_id}Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Returns200 · object
reportobjectRequired10 child fields
created_atstringRequired- nullable
created_bystring - nullable
descriptionstring idstringRequired- default false
is_templateboolean layout_configobject- nullable
sectionsarray of objectPresent on single-report reads.
13 child fields
- nullable
cached_outputobjectThe last generated output.
created_atstringRequireddata_scopeobject- default "narrative"
display_typestringcards, table, narrative or grade_bar.
- nullable
generated_atstring idstringRequired- default true
is_staleboolean - nullable
prompt_templatestring report_idstringRequiredsection_typestringRequiredprompt_analysis, aggregate_summary or data_table.
- default 0
sort_orderinteger titlestringRequiredupdated_atstringRequired
- for example "Weekly narrative scorecard"
titlestringRequired updated_atstringRequiredworkspace_idstringRequired
Other responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}' \
-H 'X-API-Key: <api key>'Update a custom report
/api/v1/reports/{report_id}Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}' \
-X PATCH \
-H 'X-API-Key: <api key>'Delete a custom report
/api/v1/reports/{report_id}Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}' \
-X DELETE \
-H 'X-API-Key: <api key>'Generate layout_config from natural language style description
/api/v1/reports/{report_id}/customize-styleUse LLM to translate a natural language style description into a layout_config JSON.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/customize-style' \
-X POST \
-H 'X-API-Key: <api key>'Generate all stale sections
/api/v1/reports/{report_id}/generateRegenerate all stale sections of a report. Returns cached output for fresh sections.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Query parameters
modelstringModel override.
forcestringSet to 1 to regenerate sections that are not stale.
Returns200 · object
errorsarray of objectgenerated_countintegerRequiredreportobjectRequired10 child fields
created_atstringRequired- nullable
created_bystring - nullable
descriptionstring idstringRequired- default false
is_templateboolean layout_configobject- nullable
sectionsarray of objectPresent on single-report reads.
13 child fields
- nullable
cached_outputobjectThe last generated output.
created_atstringRequireddata_scopeobject- default "narrative"
display_typestringcards, table, narrative or grade_bar.
- nullable
generated_atstring idstringRequired- default true
is_staleboolean - nullable
prompt_templatestring report_idstringRequiredsection_typestringRequiredprompt_analysis, aggregate_summary or data_table.
- default 0
sort_orderinteger titlestringRequiredupdated_atstringRequired
- for example "Weekly narrative scorecard"
titlestringRequired updated_atstringRequiredworkspace_idstringRequired
stale_countintegerRequired
Other responses
422Unprocessable Entity
Download report as PDF
/api/v1/reports/{report_id}/pdfGenerate and return a PDF of the report.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/pdf' \
-H 'X-API-Key: <api key>'Get report schedule
/api/v1/reports/{report_id}/scheduleGet the current refresh schedule for a report (if any).
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/schedule' \
-H 'X-API-Key: <api key>'Create report refresh schedule
/api/v1/reports/{report_id}/scheduleCreate a recurring refresh schedule for a report.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/schedule' \
-X POST \
-H 'X-API-Key: <api key>'Update report schedule
/api/v1/reports/{report_id}/scheduleUpdate the refresh schedule for a report.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/schedule' \
-X PATCH \
-H 'X-API-Key: <api key>'Delete report schedule
/api/v1/reports/{report_id}/scheduleRemove the refresh schedule for a report.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/schedule' \
-X DELETE \
-H 'X-API-Key: <api key>'Add section to a report
/api/v1/reports/{report_id}/sectionsRequires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/sections' \
-X POST \
-H 'X-API-Key: <api key>'Update a report section
/api/v1/reports/{report_id}/sections/{section_id}Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
section_idstringRequiredReport section id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/sections/{section_id}' \
-X PATCH \
-H 'X-API-Key: <api key>'Delete a report section
/api/v1/reports/{report_id}/sections/{section_id}Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
section_idstringRequiredReport section id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/sections/{section_id}' \
-X DELETE \
-H 'X-API-Key: <api key>'Generate output for a single section
/api/v1/reports/{report_id}/sections/{section_id}/generateForce-generate (or regenerate) the LLM output for a single report section.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
section_idstringRequiredReport section id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/sections/{section_id}/generate' \
-X POST \
-H 'X-API-Key: <api key>'Send report via email
/api/v1/reports/{report_id}/send-emailSend the report as an HTML email with optional PDF attachment.
Requires the Custom reports feature, which Kumkuat enables per workspace. Without it the API returns 403.
Path parameters
report_idstringRequiredCustom report id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/reports/{report_id}/send-email' \
-X POST \
-H 'X-API-Key: <api key>'