POST
/
v1
/
dashboards
/
getEmbeddableUrl
Get an embeddable customer dashboard
curl --request POST \
  --url https://api.metronome.com/v1/dashboards/getEmbeddableUrl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
  "dashboard": "invoices",
  "dashboard_options": [
    {
      "key": "show_zero_usage_line_items",
      "value": "false"
    },
    {
      "key": "hide_voided_invoices",
      "value": "true"
    }
  ],
  "color_overrides": [
    {
      "name": "Gray_dark",
      "value": "#ff0000"
    }
  ],
  "bm_group_key_overrides": [
    {
      "group_key_name": "tenant_id",
      "display_name": "Org ID",
      "value_display_names": {
        "48ecb18f358f": "Cluster EU",
        "e358f3ce242d": "Cluster APAC"
      }
    }
  ]
}'
{
  "data": {
    "url": "https://embeddable-dashboards.metronome.com/customers/invoices/v1?..."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The details of the dashboard to retrieve

The body is of type object.

Response

Success

The response is of type object.