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

Preview Insight

POST
https://api.vapi.ai/reporting/insight/preview
POST
/reporting/insight/preview
1curl -X POST https://api.vapi.ai/reporting/insight/preview \
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
1{
2 "id": "string",
3 "insightId": "string",
4 "orgId": "string",
5 "createdAt": "2024-01-15T09:30:00Z",
6 "updatedAt": "2024-01-15T09:30:00Z"
7}
Was this page helpful?
Previous

List Evals

Next
Built with
List Evals

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

idstring
insightIdstring
orgIdstring
createdAtstringformat: "date-time"
updatedAtstringformat: "date-time"

Retrieve your API Key from Dashboard.