API Reference
cURL
curl --request GET \ --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/metrics/{MetricId} \ --header 'Authorization: Bearer <token>'
{ "data": { "id": "7b9e5d2c-f314-48a9-be56-9843a2f6c019", "title": "Daily Active Users", "ownerId": "user_123456789", "createdAt": "2023-01-01T00:00:00.000Z", "updatedAt": "2023-01-01T00:00:00.000Z", "description": "Number of unique users who performed any action in the last 24 hours", "unit": "users", "type": "custom", "targetOperator": "greater_than", "targetValue": 100, "targetDirection": "up", "currentValue": 150, "previousValue": 140, "periodType": "calendar", "periodValue": "month", "timeseries": [ { "date": "2023-11-07T05:31:56Z", "value": 85 } ], "relatedOutcomes": [ "<unknown>" ] } }
Retrieves a specific metric by ID.
JWT authentication for organization-scoped endpoints.
Organization ID
Workspace ID
Metric ID
Success
Response containing a single metric
Metric data representing a measurable KPI result
Show child attributes
Was this page helpful?