Skip to main content
GET
/
v1
/
metric
/
definitions
Get metric definitions
curl --request GET \
  --url https://api.roark.ai/v1/metric/definitions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metricId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "outputType": "COUNT",
      "scope": "GLOBAL",
      "supportedContexts": [
        "CALL"
      ],
      "unit": {
        "name": "<string>",
        "symbol": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Response

All metric definitions available in the project

data
object[]
required

Metrics response payload