import Roark from '@roarkanalytics/sdk';
const client = new Roark({
bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});
const response = await client.metric.listDefinitions();
console.log(response.data);
import os
from roark_analytics import Roark
client = Roark(
bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted
)
response = client.metric.list_definitions()
print(response.data)
{
"type": "internal",
"code": "internal_error",
"message": "Internal server error"
}
Definitions
List metric definitions
Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.
GET
/
v1
/
metric
/
definitions
JavaScript
import Roark from '@roarkanalytics/sdk';
const client = new Roark({
bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});
const response = await client.metric.listDefinitions();
console.log(response.data);
import os
from roark_analytics import Roark
client = Roark(
bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted
)
response = client.metric.list_definitions()
print(response.data)
Metric definition data. The variant is selected by calculationType.
LLM judge metric
Provider metric
Threshold metric
Formula metric
Pattern metric
HTTP request metric
Show child attributes
pagination
object
required
Show child attributes
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Roark Docs","description":"Roark is the quality platform for voice and chat AI. Simulate every scenario before launch, monitor every production call, and score them with audio-native metrics.","colors":{"primary":"#006838","light":"#4faf62","dark":"#005530"},"logo":{"light":"https://mintcdn.com/roark/roh5qorg6REL9dkn/images/logo/light.svg?fit=max\u0026auto=format\u0026n=roh5qorg6REL9dkn\u0026q=85\u0026s=040c5cac74f0bd94ad25a3ccfdb45dbc","dark":"https://mintcdn.com/roark/85D-0i58gn7fPi1w/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=85D-0i58gn7fPi1w\u0026q=85\u0026s=d666f2dc1f3dc1b8320c0bef62dca06b","href":"https://roark.ai"},"favicon":"https://mintcdn.com/roark/roh5qorg6REL9dkn/favicon.svg?fit=max\u0026auto=format\u0026n=roh5qorg6REL9dkn\u0026q=85\u0026s=95d524da66f21b9f4532ec4f6162efc5","appearance":{"default":"system"},"background":{"color":{"light":"#f0eeeb","dark":"#0e0d0c"}},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://roark.ai/signup"}},"footer":{"socials":{"x":"https://x.com/roarkhq","github":"https://github.com/roarkhq","linkedin":"https://www.linkedin.com/company/roark-innovations"}},"fonts":{"heading":{"family":"Bricolage Grotesque","weight":600},"body":{"family":"Hanken Grotesk"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","codeblocks":{"theme":{"light":"everforest-light","dark":"everforest-dark"}},"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","cursor","mcp"],"display":"header"},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"roark","hasAudioNarration":false,"actualSubdomain":"roark","customDomains":["docs.roark.ai"],"gitSource":{"type":"github","owner":"roarkhq","repo":"docs-roark-analytics","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b00ec573883e70246ebe1ad","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":238},{"language":"default","tag":"CLI Reference","count":231},{"language":"default","tag":"Guides","count":93},{"language":"default","tag":"Simulate","count":66},{"language":"default","tag":"simulation","count":51},{"language":"default","tag":"Monitoring","count":51},{"language":"default","tag":"Simulations","count":39},{"language":"default","tag":"Agents","count":39},{"language":"default","tag":"Metrics","count":35},{"language":"default","tag":"agent","count":31}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--roark-accent: #006838;--roark-accent-hover: #005530;--roark-accent-subtle: rgba(0, 104, 56, 0.08);--roark-shell: #f0eeeb;--roark-panel: #ffffff;--roark-border: #e4e0dc;--roark-radius-card: 14px;--roark-ease: cubic-bezier(0.25, 0.1, 0.25, 1)}.dark{--roark-accent: #4faf62;--roark-accent-hover: #5ec070;--roark-accent-subtle: rgba(79, 175, 98, 0.1);--roark-shell: #0e0d0c;--roark-panel: #1a1918;--roark-border: #2e2c2a}code,kbd,samp,pre,pre *{font-family:'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace}h1,h2,h3,h4{font-feature-settings:'ss01' on;letter-spacing:-0.02em}#content-area h1{font-size:clamp(2.1rem, 3.4vw, 2.6rem);line-height:1.12}body{font-feature-settings:'ss01' on, 'cv01' on;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::selection{background:#006838;color:#f0eeeb}.dark ::selection{background:#4faf62;color:#0e0d0c}#content-area a.link{color:var(--roark-accent);text-decoration-color:var(--roark-accent-subtle);text-underline-offset:3px;transition:color 0.15s var(--roark-ease)}#content-area a.link:hover{color:var(--roark-accent-hover);text-decoration-color:currentColor}[class*=\"eyebrow\"]{font-family:'Geist Mono', ui-monospace, monospace;font-size:0.75rem;font-weight:500;text-transform:uppercase;letter-spacing:0.08em}.sidebar-group-header{font-family:'Geist Mono', ui-monospace, monospace;font-size:0.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:0.08em;color:#716f6c}.dark .sidebar-group-header{color:#8a8785}.card{border-radius:var(--roark-radius-card)}.dark .card{background-color:#1a1918;border-color:rgba(255, 255, 255, 0.07)}.card [data-component-part=\"card-icon\"]{width:2.75rem;height:2.75rem;display:flex;align-items:center;justify-content:center;background:var(--roark-accent-subtle);border-radius:12px}[data-component-part=\"step-number\"]>div{font-family:'Geist Mono', ui-monospace, monospace;background:var(--roark-accent-subtle);color:var(--roark-accent)}#content-area hr{margin-top:2.5rem;margin-bottom:2.5rem;border-color:var(--roark-border)}.prose h2{margin-top:2.75rem}#sidebar{border-right:1px solid var(--roark-border)}img.nav-logo{height:1.75rem}#content-area img,#content-area video,#content-area iframe{border-radius:var(--roark-radius-card)}#content-area img{border:1px solid rgba(0, 0, 0, 0.06);box-shadow:0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03)}.dark #content-area img{border-color:rgba(255, 255, 255, 0.06);box-shadow:0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2)}#content-area img.nav-logo{border:none;box-shadow:none;border-radius:0}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#d6d2cc;border-radius:5px;border:2px solid transparent;background-clip:content-box}.dark ::-webkit-scrollbar-thumb{background:#3a3835;border-radius:5px;border:2px solid transparent;background-clip:content-box}::-webkit-scrollbar-track{background:transparent}a,button{transition-timing-function:var(--roark-ease)}button.group>.shrink-0:first-child:has(>svg){width:2rem}"}]}
{"page":{"pagePath":"api-reference/metric/list-metric-definitions","slug":"/api-reference/metric/list-metric-definitions","pageMetadata":{"title":"List metric definitions","description":"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass `nextCursor` to retrieve the following page.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions","href":"/api-reference/metric/list-metric-definitions","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass \", _jsx(_components.code, {\n children: \"nextCursor\"\n }), \" to retrieve the following page.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"everforest-light","dark":"everforest-dark"}},"config":{},"pageMetadata":{"title":"List metric definitions","description":"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass `nextCursor` to retrieve the following page.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions","href":"/api-reference/metric/list-metric-definitions","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"responses":{"200":"d06ecb7d-3eb9-4901-ba5c-185671225855","400":"08740688-c736-478f-aa83-313aa96a0227","401":"f989bc4d-5f26-4976-b046-53e2403f9e59","403":"899b90dd-e19b-46cb-a3cb-82007dddc733","429":"40893c7e-0114-406d-842e-43ac21db0375","500":"edaf30a5-2446-4cf5-96e7-9a80291681c3"},"operationId":"getV1MetricDefinitions","tags":["Metric"],"summary":"List metric definitions","description":"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass `nextCursor` to retrieve the following page.","parameters":["b6241a3e-405a-4056-bb0b-6d07b254bf34","7433aab6-d74d-4024-a6d1-6ad2bb3f6ea5"],"x-codeSamples":[{"lang":"JavaScript","source":"import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.metric.listDefinitions();\n\nconsole.log(response.data);"},{"lang":"Python","source":"import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get(\"ROARK_API_BEARER_TOKEN\"), # This is the default and can be omitted\n)\nresponse = client.metric.list_definitions()\nprint(response.data)"}],"method":"get","type":"path","servers":["2ea5a0c4-470a-4f6b-adc1-60bb5f2758a6"],"security":["c758b2f4-607e-43f1-bdd1-61c23b97d1ce"],"path":"/v1/metric/definitions","baseUrlOptions":["https://api.roark.ai"],"title":"List metric definitions","codeSamples":[{"lang":"JavaScript","source":"import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.metric.listDefinitions();\n\nconsole.log(response.data);"},{"lang":"Python","source":"import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get(\"ROARK_API_BEARER_TOKEN\"), # This is the default and can be omitted\n)\nresponse = client.metric.list_definitions()\nprint(response.data)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"b6241a3e-405a-4056-bb0b-6d07b254bf34":{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":500,"default":500,"uniqueKey":"","typeLabel":"integer"}},"7433aab6-d74d-4024-a6d1-6ad2bb3f6ea5":{"in":"query","name":"after","schema":{"type":"string","uniqueKey":"","typeLabel":"string"}}},"responses":{"d06ecb7d-3eb9-4901-ba5c-185671225855":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"object","title":"LLM judge metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType","llmPrompt","booleanTrueLabel","booleanFalseLabel"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.0.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.0.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"LLM_JUDGE","description":"Metric evaluated by an LLM against a prompt.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.calculationType","typeLabel":"string"},"llmPrompt":{"oneOf":[{"type":"string","description":"The rubric this judge applies, as stored. Read it back to confirm which criteria are live after a create or update.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.llmPrompt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The rubric this judge applies, as stored. Read it back to confirm which criteria are live after a create or update.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.llmPrompt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.llmPrompt","typeLabel":"string | null"},"booleanTrueLabel":{"oneOf":[{"type":"string","description":"For a BOOLEAN metric, what a `true` value means. Also given to the judge as its polarity rule.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanTrueLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"For a BOOLEAN metric, what a `true` value means. Also given to the judge as its polarity rule.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanTrueLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanTrueLabel","typeLabel":"string | null"},"booleanFalseLabel":{"oneOf":[{"type":"string","description":"For a BOOLEAN metric, what a `false` value means. Also given to the judge as its polarity rule.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanFalseLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"For a BOOLEAN metric, what a `false` value means. Also given to the judge as its polarity rule.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanFalseLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.booleanFalseLabel","typeLabel":"string | null"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.0.unit","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.0","typeLabel":"LLM judge metric · object"},{"type":"object","title":"Provider metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.1.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.1.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"PROVIDER","description":"System-managed metric produced by an analysis provider.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.calculationType","typeLabel":"string"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.1.unit","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.1","typeLabel":"Provider metric · object"},{"type":"object","title":"Threshold metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.2.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.2.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"THRESHOLD","description":"Boolean metric derived by comparing a source metric against a threshold.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.calculationType","typeLabel":"string"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.2.unit","typeLabel":"object"},"threshold":{"type":"object","properties":{"sourceMetricDefinitionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceMetricDefinitionId","typeLabel":"string\u003cuuid>"},"operator":{"type":"string","enum":["GREATER_THAN","GREATER_THAN_OR_EQUALS","LESS_THAN","LESS_THAN_OR_EQUALS","EQUALS","NOT_EQUALS"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.operator","typeLabel":"enum\u003cstring>"},"thresholdValue":{"type":"string","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.thresholdValue","typeLabel":"string"},"aggregationMode":{"type":"string","enum":["EACH","COUNT","AVERAGE","MIN","MAX","MEDIAN","P95","P99","SUM"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.aggregationMode","typeLabel":"enum\u003cstring>"},"countThreshold":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.countThreshold.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.countThreshold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.countThreshold","typeLabel":"integer | null"},"sourceParticipantRole":{"oneOf":[{"type":"string","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceParticipantRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceParticipantRole.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceParticipantRole","typeLabel":"enum\u003cstring> | null"},"sourceVariantId":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceVariantId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceVariantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.2.threshold.sourceVariantId","typeLabel":"string\u003cuuid> | null"}},"required":["sourceMetricDefinitionId","operator","thresholdValue","aggregationMode","countThreshold","sourceParticipantRole","sourceVariantId"],"description":"Threshold configuration.","uniqueKey":"data.items.[INDEX].oneOf.2.threshold","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.2","typeLabel":"Threshold metric · object"},{"type":"object","title":"Formula metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType","formula"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.3.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.3.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"FORMULA","description":"Metric computed by evaluating an expression over other metrics.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.calculationType","typeLabel":"string"},"formula":{"type":"object","properties":{"expression":{"type":"string","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.expression","typeLabel":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"sourceMetricDefinitionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources.items.[INDEX].sourceMetricDefinitionId","typeLabel":"string\u003cuuid>"},"sourceVariantId":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources.items.[INDEX].sourceVariantId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources.items.[INDEX].sourceVariantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources.items.[INDEX].sourceVariantId","typeLabel":"string\u003cuuid> | null"}},"required":["sourceMetricDefinitionId","sourceVariantId"],"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula.sources","typeLabel":"object[]"}},"required":["expression","sources"],"description":"Formula configuration.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.formula","typeLabel":"object"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.3.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.3.unit","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.3","typeLabel":"Formula metric · object"},{"type":"object","title":"Pattern metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType","pattern"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.4.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.4.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"PATTERN","description":"Metric detecting a trigger condition followed by an outcome within a window.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.calculationType","typeLabel":"string"},"pattern":{"type":"object","properties":{"operation":{"type":"string","enum":["PATTERN_EXISTS","PATTERN_COUNT","OUTCOME_AGGREGATE"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.operation","typeLabel":"enum\u003cstring>"},"windowMode":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.windowMode.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.windowMode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.windowMode","typeLabel":"string | null"},"triggerCombinator":{"oneOf":[{"type":"string","enum":["AND","OR"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggerCombinator.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AND","OR"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggerCombinator.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggerCombinator","typeLabel":"enum\u003cstring> | null"},"triggers":{"type":"array","items":{"type":"object","properties":{"sourceMetricDefinitionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceMetricDefinitionId","typeLabel":"string\u003cuuid>"},"operator":{"type":"string","enum":["GREATER_THAN","GREATER_THAN_OR_EQUALS","LESS_THAN","LESS_THAN_OR_EQUALS","EQUALS","NOT_EQUALS"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"thresholdValue":{"type":"string","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].thresholdValue","typeLabel":"string"},"sourceParticipantRole":{"oneOf":[{"type":"string","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceParticipantRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceParticipantRole.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceParticipantRole","typeLabel":"enum\u003cstring> | null"},"sourceVariantId":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceVariantId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceVariantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX].sourceVariantId","typeLabel":"string\u003cuuid> | null"}},"required":["sourceMetricDefinitionId","operator","thresholdValue","sourceParticipantRole","sourceVariantId"],"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.triggers","typeLabel":"object[]"},"outcome":{"oneOf":[{"type":"object","properties":{"sourceMetricDefinitionId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceMetricDefinitionId","typeLabel":"string\u003cuuid>"},"operator":{"type":"string","enum":["GREATER_THAN","GREATER_THAN_OR_EQUALS","LESS_THAN","LESS_THAN_OR_EQUALS","EQUALS","NOT_EQUALS"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.operator","typeLabel":"enum\u003cstring>"},"thresholdValue":{"type":"string","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.thresholdValue","typeLabel":"string"},"sourceParticipantRole":{"oneOf":[{"type":"string","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceParticipantRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceParticipantRole.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceParticipantRole","typeLabel":"enum\u003cstring> | null"},"sourceVariantId":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceVariantId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceVariantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.sourceVariantId","typeLabel":"string\u003cuuid> | null"},"windowBefore":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowBefore.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowBefore.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowBefore","typeLabel":"integer | null"},"windowAfter":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowAfter.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowAfter.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0.windowAfter","typeLabel":"integer | null"}},"required":["sourceMetricDefinitionId","operator","thresholdValue","sourceParticipantRole","sourceVariantId","windowBefore","windowAfter"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"sourceMetricDefinitionId":{"type":"string","format":"uuid"},"operator":{"type":"string","enum":["GREATER_THAN","GREATER_THAN_OR_EQUALS","LESS_THAN","LESS_THAN_OR_EQUALS","EQUALS","NOT_EQUALS"]},"thresholdValue":{"type":"string"},"sourceParticipantRole":{"oneOf":[{"type":"string","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"]},{"type":"null","enum":["AGENT","CUSTOMER","SIMULATED_CUSTOMER","BACKGROUND_SPEAKER"]}]},"sourceVariantId":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null","format":"uuid"}]},"windowBefore":{"oneOf":[{"type":"integer"},{"type":"null"}]},"windowAfter":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["sourceMetricDefinitionId","operator","thresholdValue","sourceParticipantRole","sourceVariantId","windowBefore","windowAfter"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern.outcome","typeLabel":"object | null"}},"required":["operation","windowMode","triggerCombinator","triggers","outcome"],"description":"Pattern configuration.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.pattern","typeLabel":"object"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.4.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.4.unit","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.4","typeLabel":"Pattern metric · object"},{"type":"object","title":"HTTP request metric","description":"Metric definition data. The variant is selected by `calculationType`.","required":["id","slug","metricId","variantId","versionId","name","description","type","scope","supportedContexts","supportedConversationSources","gradesShortCalls","requiresLiveConversation","supportsVariants","evidenceSource","calculationType","httpRequest","booleanTrueLabel","booleanFalseLabel"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the metric definition","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.id","typeLabel":"string\u003cuuid>"},"slug":{"type":"string","description":"Stable metric slug (e.g. \"call_reason\", \"customer_satisfaction\")","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.slug","typeLabel":"string"},"metricId":{"type":"string","description":"Alias of `slug` retained for backwards compatibility. Same value as `slug`.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.metricId","typeLabel":"string"},"variantId":{"type":"string","format":"uuid","description":"The resolved variant this response reflects (org-scoped Default if the org has customized it, otherwise the system Default). Pass this as sourceVariantId when building a derived metric off this one to pin the exact config.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.variantId","typeLabel":"string\u003cuuid>"},"versionId":{"type":"string","format":"uuid","description":"The variant's current version. Immutable snapshot of the config — editing the metric produces a new versionId. Use it to detect config changes.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.versionId","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the metric","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the metric measures","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.description","typeLabel":"string"},"type":{"type":"string","enum":["COUNT","NUMERIC","BOOLEAN","SCALE","TEXT","CLASSIFICATION","OFFSET"],"description":"Type of value this metric produces","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["GLOBAL","PER_PARTICIPANT"],"description":"Whether metric is global or per-participant","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.scope","typeLabel":"enum\u003cstring>"},"supportedContexts":{"type":"array","items":{"type":"string","enum":["CALL","SEGMENT","TURN"],"uniqueKey":"data.items.[INDEX].oneOf.5.supportedContexts.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which levels this metric can produce values at","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.supportedContexts","typeLabel":"enum\u003cstring>[]"},"supportedConversationSources":{"oneOf":[{"type":"array","items":{"type":"string","enum":["SIMULATED","LIVE"],"uniqueKey":"data.items.[INDEX].oneOf.5.supportedConversationSources.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.supportedConversationSources.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["SIMULATED","LIVE"]},"description":"Which kinds of conversation this metric can be scored on. `null` means both. `[\"LIVE\"]` marks a metric that can only be scored from your own recording of a real call, and `[\"SIMULATED\"]` one that only applies to simulations.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.supportedConversationSources.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.supportedConversationSources","typeLabel":"enum\u003cstring>[] | null"},"gradesShortCalls":{"type":"boolean","description":"Whether a simulation scores this metric on a call with fewer than 4 transcript lines or where your agent never spoke. Such calls skip every metric without it.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.gradesShortCalls","typeLabel":"boolean"},"requiresLiveConversation":{"type":"boolean","description":"True when this metric can only be scored from a live recording (`supportedConversationSources` is `[\"LIVE\"]`). Selecting one of these on a simulation run forces live enrichment: the run waits for your recording and, if none arrives, the metric produces no value. Check this before a run rather than discovering the wait afterwards.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.requiresLiveConversation","typeLabel":"boolean"},"supportsVariants":{"type":"boolean","description":"Whether you can create a variant of this metric with `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics (their configuration comes from the metric they derive from), for HTTP request metrics (their configuration is the request, edited on the metric), for provider-computed metrics whose calculation lives in the collector rather than an editable prompt, and for metrics in a package that manages its own variants. Most of Roark’s own metrics are false, so read this rather than discovering it from a 403.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.supportsVariants","typeLabel":"boolean"},"evidenceSource":{"oneOf":[{"type":"object","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.evidenceSource.oneOf.0.metricId","typeLabel":"string"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.evidenceSource.oneOf.0.countsWhen","typeLabel":"boolean"}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.evidenceSource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"metricId":{"type":"string","description":"Slug of the metric whose per-turn values are the evidence behind this count or rate"},"countsWhen":{"type":"boolean","description":"The per-turn value this metric tallies. `false` for an \"incorrect\" count over an appropriateness metric, `true` for a count of a boolean event."}},"required":["metricId","countsWhen"],"description":"For a Roark count or rate summed from the per-turn verdicts of a sibling metric (for example `incorrect_barge_in_yield_count` over `barge_in_yield_appropriateness`): where the reasoning and transcript positions live. The count value itself carries neither. `null` for a metric that is its own evidence.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.evidenceSource.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.evidenceSource","typeLabel":"object | null"},"calculationType":{"type":"string","const":"HTTP_REQUEST","description":"BOOLEAN metric answered by your own endpoint: Roark sends a request about each call and records the {\"passed\", \"reason\"} it answers with.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.calculationType","typeLabel":"string"},"httpRequest":{"oneOf":[{"type":"object","description":"The request this metric sends.","required":["url","method","headers","body"],"properties":{"url":{"type":"string","description":"The URL the request is sent to, placeholders included","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.url","typeLabel":"string"},"method":{"type":"string","enum":["GET","POST"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.method","typeLabel":"enum\u003cstring>"},"headers":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.headers.additionalProperties","typeLabel":"string"},"description":"Request headers as key-value pairs","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.headers","typeLabel":"object"},"body":{"oneOf":[{"type":"string","description":"The JSON body template, or null when the default payload is sent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.body.oneOf.0","typeLabel":"string"},{"type":"null","description":"The JSON body template, or null when the default payload is sent","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.body.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0.body","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.0","typeLabel":"object"},{"type":"null","description":"The request this metric sends.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.httpRequest","typeLabel":"object | null"},"booleanTrueLabel":{"oneOf":[{"type":"string","description":"What a passed check is called","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanTrueLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"What a passed check is called","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanTrueLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanTrueLabel","typeLabel":"string | null"},"booleanFalseLabel":{"oneOf":[{"type":"string","description":"What a failed check is called","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanFalseLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"What a failed check is called","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanFalseLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.booleanFalseLabel","typeLabel":"string | null"},"unit":{"type":"object","properties":{"name":{"type":"string","description":"Name of the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.unit.name","typeLabel":"string"},"symbol":{"oneOf":[{"type":"string","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.unit.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Symbol for the unit","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.unit.symbol.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.5.unit.symbol","typeLabel":"string | null"}},"required":["name","symbol"],"description":"Unit information if applicable","uniqueKey":"data.items.[INDEX].oneOf.5.unit","typeLabel":"object"}},"uniqueKey":"data.items.[INDEX].oneOf.5","typeLabel":"HTTP request metric · object"}],"uniqueKey":"data.items.[INDEX]","typeLabel":"LLM judge metric · object | Provider metric · object | Threshold metric · object | Formula metric · object | Pattern metric · object | HTTP request metric · object"},"isRequired":true,"uniqueKey":"data","typeLabel":"(LLM judge metric · object | Provider metric · object | Threshold metric · object | Formula metric · object | Pattern metric · object | HTTP request metric · object)[]"},"pagination":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500,"isRequired":true,"uniqueKey":"pagination.limit","typeLabel":"integer"},"hasMore":{"type":"boolean","isRequired":true,"uniqueKey":"pagination.hasMore","typeLabel":"boolean"},"nextCursor":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"pagination.nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"pagination.nextCursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"pagination.nextCursor","typeLabel":"string | null"}},"required":["limit","hasMore","nextCursor"],"isRequired":true,"uniqueKey":"pagination","typeLabel":"object"}},"required":["data","pagination"],"description":"Cursor-paginated metric definitions available in the project","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","slug":"\u003cstring>","metricId":"\u003cstring>","variantId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","versionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","description":"\u003cstring>","type":"COUNT","scope":"GLOBAL","supportedContexts":["CALL"],"supportedConversationSources":["SIMULATED"],"gradesShortCalls":true,"requiresLiveConversation":true,"supportsVariants":true,"evidenceSource":{"metricId":"\u003cstring>","countsWhen":true},"calculationType":"LLM_JUDGE","llmPrompt":"\u003cstring>","booleanTrueLabel":"\u003cstring>","booleanFalseLabel":"\u003cstring>","unit":{"name":"\u003cstring>","symbol":"\u003cstring>"}}],"pagination":{"limit":250,"hasMore":true,"nextCursor":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Cursor-paginated metric definitions available in the project","exampleType":"generated"},"08740688-c736-478f-aa83-313aa96a0227":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["validation","authentication","forbidden","not_found","conflict","payment_required","rate_limit","internal"],"description":"The error type category","examples":["validation","authentication"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code identifier","examples":["invalid_parameter","missing_required_field","unauthorized"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","examples":["The request was invalid","Authentication required"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error (if applicable)","examples":["email","user_id"],"uniqueKey":"param","typeLabel":"string"},"details":{"description":"Additional error context information","uniqueKey":"details","typeLabel":"any"}},"required":["type","code","message"],"description":"Validation error","uniqueKey":"","typeLabel":"object"},"example":{"type":"validation","code":"invalid_parameter","message":"The request was invalid","param":"email"},"examples":{"Example":{"title":"Example","value":{"type":"validation","code":"invalid_parameter","message":"The request was invalid","param":"email"}}},"exampleType":"examples"}},"description":"Bad Request","exampleType":"examples"},"f989bc4d-5f26-4976-b046-53e2403f9e59":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["validation","authentication","forbidden","not_found","conflict","payment_required","rate_limit","internal"],"description":"The error type category","examples":["validation","authentication"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code identifier","examples":["invalid_parameter","missing_required_field","unauthorized"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","examples":["The request was invalid","Authentication required"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error (if applicable)","examples":["email","user_id"],"uniqueKey":"param","typeLabel":"string"},"details":{"description":"Additional error context information","uniqueKey":"details","typeLabel":"any"}},"required":["type","code","message"],"description":"Authentication error","uniqueKey":"","typeLabel":"object"},"example":{"type":"authentication","code":"unauthorized","message":"Authentication required"},"examples":{"Example":{"title":"Example","value":{"type":"authentication","code":"unauthorized","message":"Authentication required"}}},"exampleType":"examples"}},"description":"Unauthorized","exampleType":"examples"},"899b90dd-e19b-46cb-a3cb-82007dddc733":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["validation","authentication","forbidden","not_found","conflict","payment_required","rate_limit","internal"],"description":"The error type category","examples":["validation","authentication"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code identifier","examples":["invalid_parameter","missing_required_field","unauthorized"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","examples":["The request was invalid","Authentication required"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error (if applicable)","examples":["email","user_id"],"uniqueKey":"param","typeLabel":"string"},"details":{"description":"Additional error context information","uniqueKey":"details","typeLabel":"any"}},"required":["type","code","message"],"description":"Permission error","uniqueKey":"","typeLabel":"object"},"example":{"type":"forbidden","code":"permission_denied","message":"You do not have permission to access this resource"},"examples":{"Example":{"title":"Example","value":{"type":"forbidden","code":"permission_denied","message":"You do not have permission to access this resource"}}},"exampleType":"examples"}},"description":"Forbidden","exampleType":"examples"},"40893c7e-0114-406d-842e-43ac21db0375":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["validation","authentication","forbidden","not_found","conflict","payment_required","rate_limit","internal"],"description":"The error type category","examples":["validation","authentication"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code identifier","examples":["invalid_parameter","missing_required_field","unauthorized"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","examples":["The request was invalid","Authentication required"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error (if applicable)","examples":["email","user_id"],"uniqueKey":"param","typeLabel":"string"},"details":{"description":"Additional error context information","uniqueKey":"details","typeLabel":"any"}},"required":["type","code","message"],"description":"Rate limit error","uniqueKey":"","typeLabel":"object"},"example":{"type":"rate_limit","code":"too_many_requests","message":"Rate limit exceeded"},"examples":{"Example":{"title":"Example","value":{"type":"rate_limit","code":"too_many_requests","message":"Rate limit exceeded"}}},"exampleType":"examples"}},"description":"Too Many Requests","exampleType":"examples"},"edaf30a5-2446-4cf5-96e7-9a80291681c3":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["validation","authentication","forbidden","not_found","conflict","payment_required","rate_limit","internal"],"description":"The error type category","examples":["validation","authentication"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code identifier","examples":["invalid_parameter","missing_required_field","unauthorized"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","examples":["The request was invalid","Authentication required"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error (if applicable)","examples":["email","user_id"],"uniqueKey":"param","typeLabel":"string"},"details":{"description":"Additional error context information","uniqueKey":"details","typeLabel":"any"}},"required":["type","code","message"],"description":"Server error","uniqueKey":"","typeLabel":"object"},"example":{"type":"internal","code":"internal_error","message":"Internal server error"},"examples":{"Example":{"title":"Example","value":{"type":"internal","code":"internal_error","message":"Internal server error"}}},"exampleType":"examples"}},"description":"Internal Server Error","exampleType":"examples"}},"security":{"c758b2f4-607e-43f1-bdd1-61c23b97d1ce":{"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"Bearer"}}},"servers":{"2ea5a0c4-470a-4f6b-adc1-60bb5f2758a6":{"description":"Production","url":"https://api.roark.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"Bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Bearer","name":"Authorization"}],"title":"Bearer"}]},"originalFileLocation":"api-reference/openapi.documented.json"},"subdomain":"roark","siteName":"Roark Docs","title":"List metric definitions - Roark Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-21T00:57:07.871Z","originalFileLocation":"api-reference/metric/list-metric-definitions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Roark Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List metric definitions - Roark Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Roark Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.roark.ai/api-reference/metric/list-metric-definitions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://roark.mintlify.site/_mintlify/api/og/v2?division=Definitions\u0026amp;title=List+metric+definitions\u0026amp;description=Fetch+metric+definitions+available+in+the+project%2C+including+both+system-generated+and+custom+metrics.+Results+are+ordered+by+immutable+definition+ID%3B+pass+%60nex\u0026amp;theme=0f3fa282babd51a23ab3534f\u0026amp;signature=363aa26a863cfff0e5f385f2ed694a35e81cfbc0c40e24a9cb34a0d0b13bb2d0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List metric definitions - Roark Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://roark.mintlify.site/_mintlify/api/og/v2?division=Definitions\u0026amp;title=List+metric+definitions\u0026amp;description=Fetch+metric+definitions+available+in+the+project%2C+including+both+system-generated+and+custom+metrics.+Results+are+ordered+by+immutable+definition+ID%3B+pass+%60nex\u0026amp;theme=0f3fa282babd51a23ab3534f\u0026amp;signature=363aa26a863cfff0e5f385f2ed694a35e81cfbc0c40e24a9cb34a0d0b13bb2d0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/roark/E3SiV_DMp7O0imMO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Roark Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006838\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.roark.ai/api-reference/metric/list-metric-definitions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/metric/list-metric-definitions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.roark.ai/#organization\",\"name\":\"Roark Docs\",\"url\":\"https://docs.roark.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/roark/roh5qorg6REL9dkn/images/logo/light.svg?fit=max\u0026auto=format\u0026n=roh5qorg6REL9dkn\u0026q=85\u0026s=040c5cac74f0bd94ad25a3ccfdb45dbc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.roark.ai#website\",\"name\":\"Roark Docs\",\"url\":\"https://docs.roark.ai\",\"publisher\":{\"@id\":\"https://docs.roark.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions#webpage\",\"url\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions\",\"name\":\"List metric definitions\",\"description\":\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.\",\"dateModified\":\"2026-11-21T00:57:07.871Z\",\"isPartOf\":{\"@id\":\"https://docs.roark.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Roark Docs\",\"item\":\"https://docs.roark.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List metric definitions\",\"item\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions#apireference\",\"headline\":\"List metric definitions\",\"name\":\"List metric definitions\",\"description\":\"Fetch metric definitions available in the project, including both system-generated and custom metrics. Results are ordered by immutable definition ID; pass nextCursor to retrieve the following page.\",\"url\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.roark.ai/api-reference/metric/list-metric-definitions#webpage\"},\"dateModified\":\"2026-11-21T00:57:07.871Z\",\"publisher\":{\"@id\":\"https://docs.roark.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.roark.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Roark Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Roark Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/metric/list-metric-definitions.md","siteName":"Roark Docs","nav":{"global":{},"tabs":[{"tab":"Guides","icon":"book","pages":[{"title":"Guides","href":"/documentation/getting-started/introduction"}]},{"tab":"Config as Code","icon":"file-code","pages":[{"title":"Config as Code","href":"/documentation/config-as-code/overview"}]},{"tab":"SDKs \u0026 CLI","icon":"code","pages":[{"title":"SDKs \u0026 CLI","href":"/documentation/sdks/node-sdk"}]},{"tab":"API Reference","icon":"terminal","groups":[{"group":"API Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authorization","href":"/api-reference/authorization"},{"group":"Health","icon":"folder","pages":[{"title":"Get API health status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /health","href":"/api-reference/health/get-api-health-status"}]}]},{"group":"Authentication","pages":[{"group":"Current credential","icon":"folder","pages":[{"title":"List accessible projects","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/projects","href":"/api-reference/authentication/list-accessible-projects"},{"title":"Get the current credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/me","href":"/api-reference/authentication/get-the-current-credential"}]},{"group":"Project API keys","icon":"folder","pages":[{"title":"List project API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/org/project/{projectId}/api-key","href":"/api-reference/project-api-key/list-project-api-keys"},{"title":"Create a project API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/org/project/{projectId}/api-key","href":"/api-reference/project-api-key/create-a-project-api-key"},{"title":"Revoke a project API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/org/project/{projectId}/api-key/{keyId}","href":"/api-reference/project-api-key/revoke-a-project-api-key"}]},{"group":"Personal API keys","icon":"folder","pages":[{"title":"List personal API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/me/api-keys","href":"/api-reference/personal-api-key/list-personal-api-keys"},{"title":"Create a personal API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/me/api-keys","href":"/api-reference/personal-api-key/create-a-personal-api-key"},{"title":"Revoke a personal API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/me/api-keys/{id}","href":"/api-reference/personal-api-key/revoke-a-personal-api-key"}]}]},{"group":"Agents","pages":[{"group":"Agents","icon":"folder","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent","href":"/api-reference/agent/list-agents"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/agent","href":"/api-reference/agent/create-an-agent"},{"title":"Get an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent/{agentId}","href":"/api-reference/agent/get-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/agent/{agentId}","href":"/api-reference/agent/update-an-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/agent/{agentId}","href":"/api-reference/agent/delete-an-agent"},{"title":"List an agent's prompts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent/{agentId}/prompts","href":"/api-reference/agent/list-an-agents-prompts"},{"title":"Set an agent's prompt","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/agent/{agentId}/prompts","href":"/api-reference/agent/set-an-agents-prompt"},{"title":"List a prompt's versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent/{agentId}/prompts/{promptId}/versions","href":"/api-reference/agent/list-a-prompts-versions"}]},{"group":"Endpoints","icon":"folder","pages":[{"title":"List agent endpoints","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent/endpoint","href":"/api-reference/agent-endpoint/list-agent-endpoints"},{"title":"Create an agent endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/agent/endpoint","href":"/api-reference/agent-endpoint/create-an-agent-endpoint"},{"title":"Get an agent endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent/endpoint/{endpointId}","href":"/api-reference/agent-endpoint/get-an-agent-endpoint"},{"title":"Update an agent endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/agent/endpoint/{endpointId}","href":"/api-reference/agent-endpoint/update-an-agent-endpoint"}]},{"group":"Tools","icon":"folder","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/tool","href":"/api-reference/tool/list-tools"},{"title":"Create a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/tool","href":"/api-reference/tool/create-a-tool"},{"title":"Get a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/tool/{toolId}","href":"/api-reference/tool/get-a-tool"},{"title":"Update a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/tool/{toolId}","href":"/api-reference/tool/update-a-tool"},{"title":"Delete a tool","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/tool/{toolId}","href":"/api-reference/tool/delete-a-tool"}]},{"group":"Autoimprove","icon":"folder","pages":[{"title":"List Autoimprove jobs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/autoimprove/job","href":"/api-reference/autoimprove/list-autoimprove-jobs"},{"title":"Start an Autoimprove job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job","href":"/api-reference/autoimprove/start-an-autoimprove-job"},{"title":"Get an Autoimprove job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/autoimprove/job/{jobId}","href":"/api-reference/autoimprove/get-an-autoimprove-job"},{"title":"Guide a running Autoimprove job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job/{jobId}/guidance","href":"/api-reference/autoimprove/guide-a-running-autoimprove-job"},{"title":"Answer Roark's question","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job/{jobId}/answer","href":"/api-reference/autoimprove/answer-roarks-question"},{"title":"Cancel an Autoimprove job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job/{jobId}/cancel","href":"/api-reference/autoimprove/cancel-an-autoimprove-job"},{"title":"Promote an Autoimprove job to production","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job/{jobId}/promote","href":"/api-reference/autoimprove/promote-an-autoimprove-job-to-production"},{"title":"Dismiss an Autoimprove job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/autoimprove/job/{jobId}/dismiss","href":"/api-reference/autoimprove/dismiss-an-autoimprove-job"},{"title":"List managed configs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent-config","href":"/api-reference/autoimprove/list-managed-configs"},{"title":"Get a managed config","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/agent-config/{key}","href":"/api-reference/autoimprove/get-a-managed-config"},{"title":"Write a config revision","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/agent-config/{key}","href":"/api-reference/autoimprove/write-a-config-revision"},{"title":"Resolve config for a session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/agent-config/{key}/resolve","href":"/api-reference/autoimprove/resolve-config-for-a-session"},{"title":"Promote staging to production","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/agent-config/{key}/promote","href":"/api-reference/autoimprove/promote-staging-to-production"},{"title":"Discard the staging revision","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/agent-config/{key}/staging","href":"/api-reference/autoimprove/discard-the-staging-revision"}]}]},{"group":"Simulate","pages":[{"group":"Generate resources","icon":"folder","pages":[{"title":"Generate simulation resources","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/generations/resources","href":"/api-reference/generate-simulation-resources/generate-simulation-resources"},{"title":"List simulation resource generations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/generations/resources","href":"/api-reference/generate-simulation-resources/list-simulation-resource-generations"},{"title":"Get a simulation resource generation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/generations/resources/{generationId}","href":"/api-reference/generate-simulation-resources/get-a-simulation-resource-generation"},{"title":"Guide a running simulation resource generation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/generations/resources/{generationId}/guidance","href":"/api-reference/generate-simulation-resources/guide-a-running-simulation-resource-generation"},{"title":"Answer a simulation resource generation's question","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/generations/resources/{generationId}/answer","href":"/api-reference/generate-simulation-resources/answer-a-simulation-resource-generations-question"},{"title":"Cancel a running simulation resource generation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/generations/resources/{generationId}/cancel","href":"/api-reference/generate-simulation-resources/cancel-a-running-simulation-resource-generation"}]},{"group":"Customer flows","icon":"folder","pages":[{"title":"List customer flows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer-flow","href":"/api-reference/customer-flow/list-customer-flows"},{"title":"Create a customer flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer-flow","href":"/api-reference/customer-flow/create-a-customer-flow"},{"title":"Get a customer flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer-flow/{flowId}","href":"/api-reference/customer-flow/get-a-customer-flow"},{"title":"Update a customer flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer-flow/{flowId}","href":"/api-reference/customer-flow/update-a-customer-flow"},{"title":"Delete a customer flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer-flow/{flowId}","href":"/api-reference/customer-flow/delete-a-customer-flow"},{"title":"Replace a scripted flow's steps","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer-flow/{flowId}/graph","href":"/api-reference/customer-flow/replace-a-scripted-flows-steps"},{"title":"Update a flow's happy path","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer-flow/{flowId}/happy-path","href":"/api-reference/customer-flow/update-a-flows-happy-path"},{"title":"Duplicate a customer flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer-flow/{flowId}/duplicate","href":"/api-reference/customer-flow/duplicate-a-customer-flow"},{"title":"Add an edge case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer-flow/{flowId}/edge-case","href":"/api-reference/customer-flow/add-an-edge-case"},{"title":"Update an edge case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer-flow/{flowId}/edge-case/{edgeCaseId}","href":"/api-reference/customer-flow/update-an-edge-case"},{"title":"Remove an edge case","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer-flow/{flowId}/edge-case/{edgeCaseId}","href":"/api-reference/customer-flow/remove-an-edge-case"},{"title":"Promote an edge case to the happy path","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer-flow/{flowId}/edge-case/{edgeCaseId}/promote","href":"/api-reference/customer-flow/promote-an-edge-case-to-the-happy-path"},{"title":"List audio clips","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/audio-clip","href":"/api-reference/customer-flow/list-audio-clips"}]},{"group":"Customer flow folders","icon":"folder","pages":[{"title":"List customer flow folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer-flow/folder","href":"/api-reference/customer-flow-folder/list-customer-flow-folders"},{"title":"Create a customer flow folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer-flow/folder","href":"/api-reference/customer-flow-folder/create-a-customer-flow-folder"},{"title":"Delete a customer flow folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer-flow/folder/{folderId}","href":"/api-reference/customer-flow-folder/delete-a-customer-flow-folder"}]},{"group":"Personas","icon":"folder","pages":[{"title":"List personas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/persona","href":"/api-reference/simulation-persona/list-personas"},{"title":"Create a persona","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/persona","href":"/api-reference/simulation-persona/create-a-persona"},{"title":"Get a persona","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/persona/{personaId}","href":"/api-reference/simulation-persona/get-a-persona"},{"title":"Update a persona","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/persona/{personaId}","href":"/api-reference/simulation-persona/update-a-persona"},{"title":"Delete a persona","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/persona/{personaId}","href":"/api-reference/simulation-persona/delete-a-persona"}]},{"group":"Environments","icon":"folder","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/environment","href":"/api-reference/simulation-environment/list-environments"},{"title":"Create an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/environment","href":"/api-reference/simulation-environment/create-an-environment"},{"title":"Get an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/environment/{environmentId}","href":"/api-reference/simulation-environment/get-an-environment"},{"title":"Update an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/simulation/environment/{environmentId}","href":"/api-reference/simulation-environment/update-an-environment"},{"title":"Delete an environment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/environment/{environmentId}","href":"/api-reference/simulation-environment/delete-an-environment"}]},{"group":"Templates","icon":"folder","pages":[{"title":"List simulation templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/template","href":"/api-reference/simulation-template/list-simulation-templates"}]},{"group":"Plans","icon":"folder","pages":[{"title":"List run plans","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan","href":"/api-reference/simulation-run-plan/list-run-plans"},{"title":"Create a run plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/plan","href":"/api-reference/simulation-run-plan/create-a-run-plan"},{"title":"Get a run plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan/{planId}","href":"/api-reference/simulation-run-plan/get-a-run-plan"},{"title":"Update a run plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/simulation/plan/{planId}","href":"/api-reference/simulation-run-plan/update-a-run-plan"},{"title":"Delete a run plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/plan/{planId}","href":"/api-reference/simulation-run-plan/delete-a-run-plan"},{"title":"List plan groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/group","href":"/api-reference/simulation-run-plan/list-plan-groups"},{"title":"Create a plan group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/group","href":"/api-reference/simulation-run-plan/create-a-plan-group"},{"title":"Get a plan group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/group/{groupId}","href":"/api-reference/simulation-run-plan/get-a-plan-group"},{"title":"Update a plan group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/simulation/group/{groupId}","href":"/api-reference/simulation-run-plan/update-a-plan-group"},{"title":"Delete a plan group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/group/{groupId}","href":"/api-reference/simulation-run-plan/delete-a-plan-group"},{"title":"Run a plan group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/group/{groupId}/run","href":"/api-reference/simulation-run-plan/run-a-plan-group"}]},{"group":"Runs","icon":"folder","pages":[{"title":"List simulation runs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan/jobs","href":"/api-reference/simulation-run/list-simulation-runs"},{"title":"Run a simulation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/run","href":"/api-reference/simulation-run/run-a-simulation"},{"title":"Get a simulation run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan/job/{jobId}","href":"/api-reference/simulation-run/get-a-simulation-run"},{"title":"Delete a simulation run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/plan/job/{jobId}","href":"/api-reference/simulation-run/delete-a-simulation-run"},{"title":"Cancel a simulation run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/plan/job/{jobId}/cancel","href":"/api-reference/simulation-run/cancel-a-simulation-run"},{"title":"Get a simulation run's results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan/job/{jobId}/results","href":"/api-reference/simulation-run/get-a-simulation-runs-results"},{"title":"Generate a simulation run debrief","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/plan/job/{jobId}/debrief","href":"/api-reference/simulation-run/generate-a-simulation-run-debrief"},{"title":"Get a simulation run's cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/plan/job/{jobId}/cost","href":"/api-reference/simulation-run/get-a-simulation-runs-cost"},{"title":"Find a simulated call by phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/job/lookup","href":"/api-reference/simulation-run/find-a-simulated-call-by-phone-number"},{"title":"Get a simulated call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/job/{jobId}","href":"/api-reference/simulation-run/get-a-simulated-call"},{"title":"List run groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/run-group","href":"/api-reference/simulation-run/list-run-groups"},{"title":"Create a run group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/run-group","href":"/api-reference/simulation-run/create-a-run-group"},{"title":"Get a run group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/run-group/{groupId}","href":"/api-reference/simulation-run/get-a-run-group"},{"title":"Delete a run group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/run-group/{groupId}","href":"/api-reference/simulation-run/delete-a-run-group"},{"title":"Regenerate a run group report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/run-group/{groupId}/report","href":"/api-reference/simulation-run/regenerate-a-run-group-report"}]},{"group":"Tool mocks and fixtures","icon":"folder","pages":[{"title":"List tool fixtures","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/tool-fixture","href":"/api-reference/simulation-tool-mock/list-tool-fixtures"},{"title":"Mock a tool call during a test call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/tool-mock","href":"/api-reference/simulation-tool-mock/mock-a-tool-call-during-a-test-call"},{"title":"Set a tool fixture","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/simulation/tool-fixture","href":"/api-reference/simulation-tool-mock/set-a-tool-fixture"},{"title":"Update a tool fixture","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/simulation/tool-fixture/{fixtureId}","href":"/api-reference/simulation-tool-mock/update-a-tool-fixture"},{"title":"Delete a tool fixture","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/simulation/tool-fixture/{fixtureId}","href":"/api-reference/simulation-tool-mock/delete-a-tool-fixture"},{"title":"List mocked tool invocations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/job/{jobId}/tool-mock","href":"/api-reference/simulation-tool-mock/list-mocked-tool-invocations"}]},{"group":"Simulation phone numbers","icon":"folder","pages":[{"title":"List simulation phone numbers","description":"Returns every number Roark may place simulation calls to your agent from, ordered by number.\nUse it to allowlist simulation traffic or to tell it apart from real callers.\nThe shared pool changes as Roark adds and retires numbers, so fetch the list again before you update an allowlist.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/simulation/phone-number","href":"/api-reference/simulation-phone-number/list-simulation-phone-numbers"}]}]},{"group":"Metrics","pages":[{"group":"Definitions","icon":"folder","pages":[{"title":"List metric definitions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions","href":"/api-reference/metric/list-metric-definitions"},{"title":"Create a metric definition","description":"Create a new metric definition. The `calculationType` field selects the variant: LLM_JUDGE (LLM-evaluated), FORMULA (computed from a math expression over other metrics), or PATTERN (detects a trigger→outcome pattern within a window). To create a threshold on top of an existing metric, use `POST /metric/definitions/{idOrSlug}/thresholds` instead.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/definitions","href":"/api-reference/metric/create-a-metric-definition"},{"title":"Get a metric definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions/{idOrSlug}","href":"/api-reference/metric/get-a-metric-definition"},{"title":"Update a metric definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/metric/definitions/{idOrSlug}","href":"/api-reference/metric/update-a-metric-definition"},{"title":"Delete a metric definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/metric/definitions/{idOrSlug}","href":"/api-reference/metric/delete-a-metric-definition"},{"title":"Create a threshold on a metric","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/definitions/{idOrSlug}/thresholds","href":"/api-reference/metric/create-a-threshold-on-a-metric"}]},{"group":"Variants","icon":"folder","pages":[{"title":"List a metric's variants","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions/{idOrSlug}/variants","href":"/api-reference/metric-variant/list-a-metrics-variants"},{"title":"Create a metric variant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/definitions/{idOrSlug}/variants","href":"/api-reference/metric-variant/create-a-metric-variant"},{"title":"Get a metric variant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/definitions/{idOrSlug}/variants/{variantId}","href":"/api-reference/metric-variant/get-a-metric-variant"},{"title":"Update a metric variant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/metric/definitions/{idOrSlug}/variants/{variantId}","href":"/api-reference/metric-variant/update-a-metric-variant"},{"title":"Delete a metric variant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/metric/definitions/{idOrSlug}/variants/{variantId}","href":"/api-reference/metric-variant/delete-a-metric-variant"}]},{"group":"Policies","icon":"folder","pages":[{"title":"List metric policies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/policies","href":"/api-reference/metric-policy/list-metric-policies"},{"title":"Create a metric policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/policies","href":"/api-reference/metric-policy/create-a-metric-policy"},{"title":"Get a metric policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/policies/{policyId}","href":"/api-reference/metric-policy/get-a-metric-policy"},{"title":"Update a metric policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/metric/policies/{policyId}","href":"/api-reference/metric-policy/update-a-metric-policy"},{"title":"Delete a metric policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/metric/policies/{policyId}","href":"/api-reference/metric-policy/delete-a-metric-policy"}]},{"group":"Collection jobs","icon":"folder","pages":[{"title":"List metric collection jobs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/collection-jobs","href":"/api-reference/metric-collection-job/list-metric-collection-jobs"},{"title":"Create and run a metric collection job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/collection-jobs","href":"/api-reference/metric-collection-job/create-and-run-a-metric-collection-job"},{"title":"Get a metric collection job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/collection-jobs/{jobId}","href":"/api-reference/metric-collection-job/get-a-metric-collection-job"},{"title":"Retry a metric collection job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/collection-jobs/{jobId}/retry","href":"/api-reference/metric-collection-job/retry-a-metric-collection-job"},{"title":"Cancel a metric collection job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/metric/collection-jobs/{jobId}/cancel","href":"/api-reference/metric-collection-job/cancel-a-metric-collection-job"},{"title":"Get metric values produced by a metric collection job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/metric/collection-jobs/{jobId}/metric-values","href":"/api-reference/metric-collection-job/get-metric-values-produced-by-a-metric-collection-job"}]}]},{"group":"Monitoring","pages":[{"group":"Calls","icon":"folder","pages":[{"title":"List calls","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call","href":"/api-reference/call/list-calls"},{"title":"Create a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/call","href":"/api-reference/call/create-a-call"},{"title":"Delete calls in batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/call/batch-delete","href":"/api-reference/call/delete-calls-in-batch"},{"title":"Get a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call/{callId}","href":"/api-reference/call/get-a-call"},{"title":"Delete a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/call/{callId}","href":"/api-reference/call/delete-a-call"},{"title":"Get call transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call/{callId}/transcript","href":"/api-reference/call/get-call-transcript"},{"title":"Append tool invocations to a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/call/{callId}/tool-invocations","href":"/api-reference/call/append-tool-invocations-to-a-call"},{"title":"Update the properties of a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/call/{callId}/properties","href":"/api-reference/call/update-the-properties-of-a-call"},{"title":"Get call cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call/{callId}/cost","href":"/api-reference/call/get-call-cost"},{"title":"List call sentiment runs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call/{callId}/sentiment-run","href":"/api-reference/call/list-call-sentiment-runs"},{"title":"List call metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/call/{callId}/metrics","href":"/api-reference/call/list-call-metrics"}]},{"group":"Chats","icon":"folder","pages":[{"title":"List chats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/chat","href":"/api-reference/chat/list-chats"},{"title":"Create a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/chat","href":"/api-reference/chat/create-a-chat"},{"title":"Get a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/chat/{id}","href":"/api-reference/chat/get-a-chat"},{"title":"Get chat transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/chat/{id}/transcript","href":"/api-reference/chat/get-chat-transcript"},{"title":"List chat metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/chat/{id}/metrics","href":"/api-reference/chat/list-chat-metrics"}]},{"group":"Customers","icon":"folder","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer","href":"/api-reference/customer/list-customers"},{"title":"Get a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer/{customerProfileId}","href":"/api-reference/customer/get-a-customer"},{"title":"Erase a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer/{customerProfileId}","href":"/api-reference/customer/erase-a-customer"},{"title":"Set a field on a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer/{customerProfileId}/attributes/{key}","href":"/api-reference/customer/set-a-field-on-a-customer"},{"title":"Clear a field on a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer/{customerProfileId}/attributes/{key}","href":"/api-reference/customer/clear-a-field-on-a-customer"},{"title":"Unlock a field on a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer/{customerProfileId}/attributes/{key}/unlock","href":"/api-reference/customer/unlock-a-field-on-a-customer"},{"title":"Update the notes on a customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/customer/{customerProfileId}/notes","href":"/api-reference/customer/update-the-notes-on-a-customer"},{"title":"List customer fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer/fields","href":"/api-reference/customer/list-customer-fields"},{"title":"Create a customer field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/customer/fields","href":"/api-reference/customer/create-a-customer-field"},{"title":"Update a customer field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/customer/fields/{key}","href":"/api-reference/customer/update-a-customer-field"},{"title":"Delete a customer field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/customer/fields/{key}","href":"/api-reference/customer/delete-a-customer-field"},{"title":"List a customer's conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/customer/{customerProfileId}/conversations","href":"/api-reference/customer/list-a-customers-conversations"}]},{"group":"Issues","icon":"folder","pages":[{"title":"List issues","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/issue","href":"/api-reference/issue/list-issues"},{"title":"Create an issue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/issue","href":"/api-reference/issue/create-an-issue"},{"title":"Get an issue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/issue/{issueId}","href":"/api-reference/issue/get-an-issue"}]},{"group":"Analytics","icon":"folder","pages":[{"title":"Run an analytics query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/analytics/query","href":"/api-reference/analytics/run-an-analytics-query"},{"title":"Get the analytics schema","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/analytics/schema","href":"/api-reference/analytics/get-the-analytics-schema"}]},{"group":"Dashboards \u0026 widgets","icon":"folder","pages":[{"title":"List dashboards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/dashboard","href":"/api-reference/dashboard/list-dashboards"},{"title":"Create a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/dashboard","href":"/api-reference/dashboard/create-a-dashboard"},{"title":"Get a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/dashboard/{dashboardId}","href":"/api-reference/dashboard/get-a-dashboard"},{"title":"Update a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/dashboard/{dashboardId}","href":"/api-reference/dashboard/update-a-dashboard"},{"title":"Delete a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/dashboard/{dashboardId}","href":"/api-reference/dashboard/delete-a-dashboard"},{"title":"Get dashboard data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/dashboard/{dashboardId}/data","href":"/api-reference/dashboard/get-dashboard-data"},{"title":"Add a widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/dashboard/{dashboardId}/widget","href":"/api-reference/dashboard/add-a-widget"},{"title":"Replace a widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/dashboard/{dashboardId}/widget/{widgetId}","href":"/api-reference/dashboard/replace-a-widget"},{"title":"Remove a widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/dashboard/{dashboardId}/widget/{widgetId}","href":"/api-reference/dashboard/remove-a-widget"},{"title":"Get widget data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/dashboard/{dashboardId}/widget/{widgetId}/data","href":"/api-reference/dashboard/get-widget-data"}]},{"group":"Live reports","icon":"folder","pages":[{"title":"List live reports","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/live-report","href":"/api-reference/live-report/list-live-reports"},{"title":"Create a live report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/live-report","href":"/api-reference/live-report/create-a-live-report"},{"title":"Get a live report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/live-report/{reportId}","href":"/api-reference/live-report/get-a-live-report"},{"title":"Update a live report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/live-report/{reportId}","href":"/api-reference/live-report/update-a-live-report"},{"title":"Delete a live report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/live-report/{reportId}","href":"/api-reference/live-report/delete-a-live-report"},{"title":"Generate a live report document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/live-report/{reportId}/generate","href":"/api-reference/live-report/generate-a-live-report-document"},{"title":"List report documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/live-report/{reportId}/document","href":"/api-reference/live-report/list-report-documents"},{"title":"Get a report document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/live-report/{reportId}/document/{documentId}","href":"/api-reference/live-report/get-a-report-document"}]}]},{"group":"Connections","pages":[{"group":"Agent platforms","icon":"folder","pages":[{"title":"List agent connections","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/agent","href":"/api-reference/agent-connection/list-agent-connections"},{"title":"Connect an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/agent","href":"/api-reference/agent-connection/connect-an-agent"},{"title":"Discover agents with a platform API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/agent/discover","href":"/api-reference/agent-connection/discover-agents-with-a-platform-api-key"},{"title":"Get an agent connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/agent/{connectionId}","href":"/api-reference/agent-connection/get-an-agent-connection"},{"title":"Update an agent connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/connections/agent/{connectionId}","href":"/api-reference/agent-connection/update-an-agent-connection"},{"title":"Disconnect an agent connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/connections/agent/{connectionId}","href":"/api-reference/agent-connection/disconnect-an-agent-connection"},{"title":"List agent connection providers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/agent/providers","href":"/api-reference/agent-connection/list-agent-connection-providers"},{"title":"List backfills","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/agent/{connectionId}/backfills","href":"/api-reference/agent-connection/list-backfills"},{"title":"Import past calls","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/agent/{connectionId}/backfills","href":"/api-reference/agent-connection/import-past-calls"},{"title":"Cancel a backfill","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/agent/{connectionId}/backfills/{backfillId}/cancel","href":"/api-reference/agent-connection/cancel-a-backfill"}]},{"group":"Calendars","icon":"folder","pages":[{"title":"List calendar connections","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/calendar","href":"/api-reference/calendar-connection/list-calendar-connections"},{"title":"Connect a calendar account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/calendar","href":"/api-reference/calendar-connection/connect-a-calendar-account"},{"title":"Start connecting a Google Calendar","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/calendar/google/authorize-url","href":"/api-reference/calendar-connection/start-connecting-a-google-calendar"},{"title":"Start connecting a Calendly account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/calendar/calendly/authorize-url","href":"/api-reference/calendar-connection/start-connecting-a-calendly-account"},{"title":"Get a calendar connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/calendar/{connectionId}","href":"/api-reference/calendar-connection/get-a-calendar-connection"},{"title":"Update a calendar connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/connections/calendar/{connectionId}","href":"/api-reference/calendar-connection/update-a-calendar-connection"},{"title":"Delete a calendar connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/connections/calendar/{connectionId}","href":"/api-reference/calendar-connection/delete-a-calendar-connection"},{"title":"Check a calendar connection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/calendar/{connectionId}/check","href":"/api-reference/calendar-connection/check-a-calendar-connection"}]},{"group":"MCP servers","icon":"folder","pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/mcp-server","href":"/api-reference/mcp-server-connection/list-mcp-servers"},{"title":"Connect an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/mcp-server","href":"/api-reference/mcp-server-connection/connect-an-mcp-server"},{"title":"Discover an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/mcp-server/discover","href":"/api-reference/mcp-server-connection/discover-an-mcp-server"},{"title":"Get an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/connections/mcp-server/{serverId}","href":"/api-reference/mcp-server-connection/get-an-mcp-server"},{"title":"Update an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json patch /v1/connections/mcp-server/{serverId}","href":"/api-reference/mcp-server-connection/update-an-mcp-server"},{"title":"Disconnect an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/connections/mcp-server/{serverId}","href":"/api-reference/mcp-server-connection/disconnect-an-mcp-server"},{"title":"Refresh an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/connections/mcp-server/{serverId}/refresh","href":"/api-reference/mcp-server-connection/refresh-an-mcp-server"}]}]},{"group":"Configure","pages":[{"group":"Knowledge bases","icon":"folder","pages":[{"title":"List knowledge bases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/knowledge-base","href":"/api-reference/knowledge-base/list-knowledge-bases"},{"title":"Create a knowledge base","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/knowledge-base","href":"/api-reference/knowledge-base/create-a-knowledge-base"},{"title":"Get a knowledge base","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/knowledge-base/{id}","href":"/api-reference/knowledge-base/get-a-knowledge-base"}]},{"group":"HTTP request definitions","icon":"folder","pages":[{"title":"List HTTP request definitions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/http-request-definition","href":"/api-reference/http-request-definition/list-http-request-definitions"},{"title":"Create an HTTP request definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/http-request-definition","href":"/api-reference/http-request-definition/create-an-http-request-definition"},{"title":"Get an HTTP request definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/http-request-definition/{definitionId}","href":"/api-reference/http-request-definition/get-an-http-request-definition"},{"title":"Update an HTTP request definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/http-request-definition/{definitionId}","href":"/api-reference/http-request-definition/update-an-http-request-definition"}]},{"group":"Webhooks","icon":"folder","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/webhook","href":"/api-reference/webhook/list-webhooks"},{"title":"Create a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/webhook","href":"/api-reference/webhook/create-a-webhook"},{"title":"Get a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/webhook/{webhookId}","href":"/api-reference/webhook/get-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/webhook/{webhookId}","href":"/api-reference/webhook/delete-a-webhook"}]},{"group":"Config as code","icon":"folder","pages":[{"title":"Diff a config bundle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/config/diff","href":"/api-reference/config/diff-a-config-bundle"},{"title":"Apply a config bundle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/config/apply","href":"/api-reference/config/apply-a-config-bundle"}]}]},{"group":"Organization","pages":[{"group":"Projects","icon":"folder","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/org/project","href":"/api-reference/organization-project/list-projects"},{"title":"Create a project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/org/project","href":"/api-reference/organization-project/create-a-project"},{"title":"Get a project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/org/project/{projectId}","href":"/api-reference/organization-project/get-a-project"},{"title":"Update a project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/org/project/{projectId}","href":"/api-reference/organization-project/update-a-project"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/org/project/{projectId}","href":"/api-reference/organization-project/delete-a-project"}]},{"group":"Project members","icon":"folder","pages":[{"title":"List project members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/org/project/{projectId}/member","href":"/api-reference/organization-project-member/list-project-members"},{"title":"Invite a project member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json post /v1/org/project/{projectId}/member","href":"/api-reference/organization-project-member/invite-a-project-member"},{"title":"Update a project member's role","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json put /v1/org/project/{projectId}/member/{memberId}","href":"/api-reference/organization-project-member/update-a-project-members-role"},{"title":"Remove a project member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json delete /v1/org/project/{projectId}/member/{memberId}","href":"/api-reference/organization-project-member/remove-a-project-member"}]},{"group":"Usage","icon":"folder","pages":[{"title":"Get usage and cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/usage","href":"/api-reference/usage/get-usage-and-cost"}]}]},{"group":"Model benchmarks","pages":[{"group":"Model benchmarks","icon":"folder","pages":[{"title":"List benchmark suites","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/suite","href":"/api-reference/benchmark/list-benchmark-suites"},{"title":"Get the benchmark leaderboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/leaderboard","href":"/api-reference/benchmark/get-the-benchmark-leaderboard"},{"title":"Get a benchmark target","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/target/{targetKey}","href":"/api-reference/benchmark/get-a-benchmark-target"},{"title":"List benchmark metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/metric","href":"/api-reference/benchmark/list-benchmark-metrics"},{"title":"List score samples for a target","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/target/{targetKey}/score-sample","href":"/api-reference/benchmark/list-score-samples-for-a-target"},{"title":"List a benchmark target's published generations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.documented.json get /v1/benchmark/target/{targetKey}/history","href":"/api-reference/benchmark/list-a-benchmark-targets-published-generations"}]}]}]},{"tab":"CLI Reference","icon":"square-terminal","pages":[{"title":"CLI Reference","href":"/cli-reference/overview"}]},{"tab":"Changelog","icon":"history","href":"https://changelog.roark.ai"}]},"basePath":"","title":"List metric definitions - Roark Docs","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}