cURL
curl --request POST \ --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/custom-metrics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "metric": { "key": "<string>", "description": "<string>", "type": "number", "options": [ "<string>" ], "isSystem": true } } '
{ "success": true, "message": "<string>", "metricId": "<string>", "metric": { "id": "<string>", "key": "<string>", "description": "<string>", "type": "number", "isSystem": true, "options": [ "<string>" ], "createdAtUNIX": 123, "updatedAtUNIX": 123 } }
Create a new custom metric for tracking agent-specific data
{ "metric": { "key": "customer_satisfaction", "description": "Customer satisfaction rating (1-10)", "type": "number" } }
{ "metric": { "key": "issue_resolved", "description": "Whether the customer's issue was resolved", "type": "boolean" } }
{ "metric": { "key": "sentiment", "description": "Customer sentiment analysis", "type": "enum", "options": ["positive", "negative", "neutral"] } }
options
{ "metric": { "key": "feedback", "description": "Customer feedback comments", "type": "string" } }
customer_satisfaction
cs
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the agent
Show child attributes
Successful response