Get Embeddable URL
Get an embeddable customer dashboard
post/v1/dashboards/getEmbeddableUrl
Retrieve an embeddable dashboard url for a customer. The dashboard can be embedded using an iframe in a website. This will show information such as usage data and customer invoices.
Body Parameters
customer_idstring
formatuuid
dashboardenum
"invoices" OR "usage" OR "credits" OR "commits_and_credits"
The type of dashboard to retrieve.
bm_group_key_overridesarray of object
optional
Optional list of billable metric group key overrides
color_overridesarray of object
optional
Optional list of colors to override
dashboard_optionsarray of object
optional
Optional dashboard specific options
Returns
dataobject
curl https://api.metronome.com/v1/dashboards/getEmbeddableUrl \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $METRONOME_BEARER_TOKEN" \
-d '{
"customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
"dashboard": "invoices"
}'
200 Example
{
"data": {
"url": "url"
}
}