WebsiteStatusSupportDashboard
DocumentationAPI ReferenceMCPSDKsCLI (new)Changelog
DocumentationAPI ReferenceMCPSDKsCLI (new)Changelog
  • Assistants
    • GETList Assistants
    • POSTCreate Assistant
    • GETGet Assistant
    • DELDelete Assistant
    • PATCHUpdate Assistant
  • Squads
    • GETList Squads
    • POSTCreate Squad
    • GETGet Squad
    • DELDelete Squad
    • PATCHUpdate Squad
  • Calls
    • GETList Calls
    • POSTCreate Call
    • GETList Calls
    • GETGet Call
    • DELDelete Call Data
    • PATCHUpdate Call
  • Chats
    • GETList Chats
    • POSTCreate Chat
    • GETGet Chat
    • DELDelete Chat
    • POSTCreate Chat (OpenAI Compatible)
  • Campaigns
    • GETList Campaigns
    • POSTCreate Campaign
    • GETGet Campaign
    • DELDelete Campaign
    • PATCHUpdate Campaign
  • Sessions
    • GETList Sessions
    • POSTCreate Session
    • GETGet Session
    • DELDelete Session
    • PATCHUpdate Session
  • Phone Numbers
    • GETList Phone Numbers
    • POSTCreate Phone Number
    • GETList Phone Numbers
    • GETGet Phone Number
    • DELDelete Phone Number
    • PATCHUpdate Phone Number
  • Tools
    • GETList Tools
    • POSTCreate Tool
    • GETGet Tool
    • DELDelete Tool
    • PATCHUpdate Tool
  • Files
    • GETList Files
    • POSTUpload File
    • GETGet File
    • DELDelete File
    • PATCHUpdate File
  • Structured Outputs
    • GETList Structured Outputs
    • POSTCreate Structured Output
    • GETGet Structured Output
    • DELDelete Structured Output
    • PATCHUpdate Structured Output
    • POSTRun Structured Output
  • Insight
    • GETGet Insights
    • POSTCreate Insight
    • GETGet Insight
    • DELDelete Insight
    • PATCHUpdate Insight
    • POSTRun Insight
    • POSTPreview Insight
  • Eval
    • GETList Evals
    • POSTCreate Eval
    • GETGet Eval
    • DELDelete Eval
    • PATCHUpdate Eval
    • GETGet Eval Run
    • DELDelete Eval Run
    • GETList Eval Runs
    • POSTCreate Eval Run
  • Observability Scorecard
    • GETGet Scorecard
    • DELDelete Scorecard
    • PATCHUpdate Scorecard
    • GETList Scorecards
    • POSTCreate Scorecard
  • Provider Resources
    • GETList Provider Resources
    • POSTCreate Provider Resource
    • GETGet Provider Resource
    • DELDelete Provider Resource
    • PATCHUpdate Provider Resource
  • Analytics
    • POSTCreate Analytics Queries
  • Webhooks
    • POSTServer Message
    • POSTClient Message
    • Swagger
    • OpenAPI
LogoLogo
WebsiteStatusSupportDashboard
Insight

Create Insight

POST
https://api.vapi.ai/reporting/insight
POST
/reporting/insight
1curl -X POST https://api.vapi.ai/reporting/insight \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "bar",
6 "queries": [
7 {
8 "type": "vapiql-json",
9 "table": "call",
10 "column": "id",
11 "operation": "count"
12 }
13 ]
14}'
Try it
201Created
1{
2 "name": "string",
3 "type": "bar",
4 "formulas": [
5 {
6 "name": "Booking Rate",
7 "formula": "string"
8 }
9 ],
10 "metadata": {
11 "xAxisLabel": "string",
12 "yAxisLabel": "string",
13 "yAxisMin": 1.1,
14 "yAxisMax": 1.1,
15 "name": "string"
16 },
17 "timeRange": {
18 "step": "minute",
19 "start": {},
20 "end": {},
21 "timezone": "string"
22 },
23 "groupBy": "assistantId",
24 "queries": [
25 {
26 "type": "vapiql-json",
27 "table": "call",
28 "filters": [
29 {
30 "column": "assistantId",
31 "operator": "=",
32 "value": "string"
33 }
34 ],
35 "column": "id",
36 "operation": "count",
37 "name": "Total Calls"
38 }
39 ],
40 "id": "string",
41 "orgId": "string",
42 "createdAt": "2024-01-15T09:30:00Z",
43 "updatedAt": "2024-01-15T09:30:00Z"
44}
Was this page helpful?
Previous

Get Insight

Next
Built with
Get Insight

Authentication

AuthorizationBearer
Retrieve your API Key from [Dashboard](dashboard.vapi.ai).

Request

This endpoint expects an object.
CreateBarInsightFromCallTableDTOobjectRequired
OR
CreatePieInsightFromCallTableDTOobjectRequired
OR
CreateLineInsightFromCallTableDTOobjectRequired
OR
CreateTextInsightFromCallTableDTOobjectRequired

Response

barobject
OR
pieobject
OR
lineobject
OR
textobject

Retrieve your API Key from Dashboard.