GHL & GenerationGenerate dashboard

Generate dashboard

Use AI to automatically generate a dashboard with insights based on a natural language prompt. The generated dashboard includes relevant metrics, visualizations, and layout.

curl -X POST "https://api.mythic-analytics.com/api/v1/generate-dashboard" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "prompt": "Create a marketing overview dashboard showing traffic sources, conversion rates, and top landing pages.",
  "client_id": "acme-retail"
}'
{
  "success": true,
  "data": {
    "dashboard_id": "dsh_4mK9pLrT",
    "insights_created": 6
  }
}
POST
/generate-dashboard
POST
Bearer Token
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
API Key (query: admin_key)
admin_keystring
Required

Alternative to the Authorization header for server-to-server scenarios.

Alternative to the Authorization header for server-to-server scenarios.
Content-Typestring
Required

The media type of the request body

Options: application/json
promptstring
Required

Natural language description of the desired dashboard.

client_idstring
Required

Client identifier to generate the dashboard for.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

query
admin_keystring
Required

API Key for authentication. Alternative to the Authorization header for server-to-server scenarios.

Body

application/json
promptstring
Required

Natural language description of the desired dashboard.

client_idstring
Required

Client identifier to generate the dashboard for.

Responses