Contact Metrics

Get category configuration

GET
/api/contact-metrics/config

Return the per-organization metrics category configuration: the list of categories with their statuses and colors, optionally scoped to a pipeline.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

pipelineId?string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/contact-metrics/config"
{  "success": true,  "data": {    "categories": [      {        "name": "New",        "key": "new",        "statuses": [          "new"        ],        "color": "#3B82F6"      },      {        "name": "Working",        "key": "working",        "statuses": [          "qualified",          "in-progress"        ],        "color": "#10B981"      }    ],    "allowMultipleCategories": false,    "defaultMetricsPipelineId": "66f0a0b0c0d0e0f0a0b0c0d0",    "pipelineId": "66f0a0b0c0d0e0f0a0b0c0d0",    "pipelineName": "Sales pipeline"  }}