Skip to main content
GET
Get Custom Metrics By Agent
Integration Prompt for AI Agents
This endpoint allows you to retrieve all custom metrics associated with a specific agent. Provide the agent ID in the path to get a list of all custom metrics configured for that agent. DEPRECATED: This endpoint is deprecated. Please use GET /custom-metrics?agent_id={agent_id} instead, which supports pagination and additional features.

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Path Parameters

agent_id
integer
required

Response

Successful Response

Response model for listing custom metrics

metrics
MetricResponse · object[]
required

List of custom metrics

total_count
integer
required

Total number of metrics across all pages

page
integer
required

Current page number

page_size
integer
required

Requested number of items per page

items_in_page
integer
required

Actual number of items in current page

total_pages
integer
required

Total number of pages

data
MetricResponse · object[]
required
read-only