GoSmarter Logo
GoSmarter API Gateway

DashboardCharts


Delete a saved chart

DELETE
https://api.gosmarter.ai
/api/company/{companyId}/dashboard-charts/{pageContext}/{chartId}

Any user at the company with access to this page's chart feature may delete any saved chart under this pageContext — saved charts are shared, not per-user.

Delete a saved chart › path Parameters

companyId
​string · uuid · required
pageContext
​string · required
chartId
​integer · int32 · required

Delete a saved chart › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Delete a saved chart › Responses

Deleted


List saved charts for a page

GET
https://api.gosmarter.ai
/api/company/{companyId}/dashboard-charts/{pageContext}

Returns every chart the company has saved for this pageContext. Cheap: metadata + spec JSON only, no chart data.

List saved charts for a page › path Parameters

companyId
​string · uuid · required
pageContext
​string · required

List saved charts for a page › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

List saved charts for a page › Responses

Saved charts, newest first

savedDashboardChartId
​integer · int32
companyId
​string · uuid
pageContext
​string
createdBy
​string · uuid
name
​string
chartSpecJson
​string
promptText
​string
modelDeployment
​string
promptVersion
​string
createdAt
​string · date-time
updatedAt
​string · date-time

Save a chart spec to the company's shared dashboard

POST
https://api.gosmarter.ai
/api/company/{companyId}/dashboard-charts/{pageContext}

Persists a validated chart spec, name, and audit metadata. Visible and deletable by any user at the company with access to this page's chart feature.

Save a chart spec to the company's shared dashboard › path Parameters

companyId
​string · uuid · required
pageContext
​string · required

Save a chart spec to the company's shared dashboard › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Save a chart spec to the company's shared dashboard › Request Body

name
​string
​chartSpecDto
promptText
​string
modelDeployment
​string
promptVersion
​string

Save a chart spec to the company's shared dashboard › Responses

The saved chart

savedDashboardChartId
​integer · int32
companyId
​string · uuid
pageContext
​string
createdBy
​string · uuid
name
​string
chartSpecJson
​string
promptText
​string
modelDeployment
​string
promptVersion
​string
createdAt
​string · date-time
updatedAt
​string · date-time

Propose a chart spec from a natural-language prompt

POST
https://api.gosmarter.ai
/api/company/{companyId}/dashboard-charts/{pageContext}/chart-spec/propose

Returns a validated ChartSpec for client-side preview. Never persisted — call SaveChart to keep it. Rate limited to 20 calls per company per 24 hours.

Propose a chart spec from a natural-language prompt › path Parameters

companyId
​string · uuid · required
pageContext
​string · required

The registered dataset catalogue to propose against, e.g. 'sales-orders-insights'.

Propose a chart spec from a natural-language prompt › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Propose a chart spec from a natural-language prompt › Request Body

Propose a chart spec from a natural-language prompt › Responses

Validated chart spec

​chartSpecDto
promptVersion
​string
modelDeployment
​string