dashboards
Create a custom analytics dashboard
Creates a new custom analytics dashboard with the provided name, labels, and widget definitions.
The dashboard will be assigned a unique ID and associated with the authenticated user as the creator.
post/environments/{envId}/analytics/dashboards
Request body
Example request
{
"name": "llm-proxy",
"labels": {
"graviteeio/team": "apim"
},
"widgets": [
{
"id": "1",
"title": "Requests",
"type": "stats",
"layout": {
"cols": 1,
"rows": 1,
"x": 0,
"y": 0
},
"request": {
"type": "measures",
"timeRange": {
"from": "2025-10-07T06:50:30Z",
"to": "2025-12-07T11:35:30Z"
},
"metrics": [
{
"name": "HTTP_REQUESTS",
"measures": [
"COUNT"
]
}
]
}
}
]
}Response
The dashboard has been successfully created. The response contains the full dashboard definition including the generated ID, creator, and timestamps.
Example response
{
"id": "d0152e36-ad24-4f74-a4df-443074d5a796",
"name": "llm-proxy",
"createdBy": "e2b573b4-30c8-4c7b-a67b-ad4ab15502d1",
"createdAt": "2025-10-07T06:50:30Z",
"lastModified": "2025-10-07T06:50:30Z",
"labels": {
"graviteeio/team": "apim"
},
"widgets": [
{
"id": "1",
"title": "Requests",
"type": "stats",
"layout": {
"cols": 1,
"rows": 1,
"x": 0,
"y": 0
},
"request": {
"type": "measures",
"timeRange": {
"from": "2025-10-07T06:50:30Z",
"to": "2025-12-07T11:35:30Z"
},
"metrics": [
{
"name": "HTTP_REQUESTS",
"measures": [
"COUNT"
]
}
]
}
}
]
}