# List runs for a test casecurl "https://api.magpipe.ai/functions/v1/test-runs?test_case_id=b2c3d4e5-2345-6789-abcd-ef0123456789" \ -H "Authorization: Bearer YOUR_API_KEY"# Get a single run by IDcurl "https://api.magpipe.ai/functions/v1/test-runs?id=c3d4e5f6-3456-789a-bcde-f01234567890" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "runs": [ { "id": "c3d4e5f6-3456-789a-bcde-f01234567890", "test_case_id": "b2c3d4e5-2345-6789-abcd-ef0123456789", "status": "failed", "started_at": "2024-01-15T10:10:00.000Z", "completed_at": "2024-01-15T10:10:45.000Z", "assertions": [ { "name": "call_connected", "passed": true, "detail": "Call connected successfully" }, { "name": "agent_joined", "passed": true, "detail": "Agent joined within 3 seconds" }, { "name": "expected_phrases", "passed": false, "detail": "Phrase '9 AM' not found in transcript" }, { "name": "prohibited_phrases", "passed": true, "detail": "No prohibited phrases detected" }, { "name": "min_duration", "passed": true, "detail": "Call lasted 45 seconds (min: 10)" } ], "error_message": null, "ai_analysis": "The agent said '9:00 AM' instead of '9 AM'. Update the expected phrase or adjust the system prompt." } ]}
Testing
List Test Runs
List recent runs for a test case, or fetch full details of a single run
GET
/
test-runs
# List runs for a test casecurl "https://api.magpipe.ai/functions/v1/test-runs?test_case_id=b2c3d4e5-2345-6789-abcd-ef0123456789" \ -H "Authorization: Bearer YOUR_API_KEY"# Get a single run by IDcurl "https://api.magpipe.ai/functions/v1/test-runs?id=c3d4e5f6-3456-789a-bcde-f01234567890" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "runs": [ { "id": "c3d4e5f6-3456-789a-bcde-f01234567890", "test_case_id": "b2c3d4e5-2345-6789-abcd-ef0123456789", "status": "failed", "started_at": "2024-01-15T10:10:00.000Z", "completed_at": "2024-01-15T10:10:45.000Z", "assertions": [ { "name": "call_connected", "passed": true, "detail": "Call connected successfully" }, { "name": "agent_joined", "passed": true, "detail": "Agent joined within 3 seconds" }, { "name": "expected_phrases", "passed": false, "detail": "Phrase '9 AM' not found in transcript" }, { "name": "prohibited_phrases", "passed": true, "detail": "No prohibited phrases detected" }, { "name": "min_duration", "passed": true, "detail": "Call lasted 45 seconds (min: 10)" } ], "error_message": null, "ai_analysis": "The agent said '9:00 AM' instead of '9 AM'. Update the expected phrase or adjust the system prompt." } ]}
Returns test run results. Use test_case_id to list all runs for a given test case, or id to fetch a single run with full detail.
Query Parameters
string
UUID of the test case. Returns all runs newest first. Use this to poll for results after Run Test Case.
string
UUID of a specific test run. Returns the full run object with nested test case data.
Provide exactly one of test_case_id or id.
Response
array
Returned when querying by test_case_id.
Show Run object
string
Run UUID
string
Test case UUID
string
pending, running, passed, failed, or error
string
ISO 8601 start timestamp
string
ISO 8601 completion timestamp (null if running)
array
Array of assertion results — each has name, passed, and detail
string
Error details if status is error
string
AI diagnosis and suggested fixes (only on failed runs)
object
Returned when querying by id. Same fields as above, plus a nested test_cases object with the full test case configuration.
Assertion Names
Assertion
Description
call_connected
The test call connected successfully
agent_joined
The AI agent joined the call
expected_phrases
All expected_phrases found in transcript
prohibited_phrases
No prohibited_phrases found in transcript
expected_functions
All expected_functions were called
min_duration
Call lasted at least min_duration_seconds
max_duration
Call ended within max_duration_seconds
# List runs for a test casecurl "https://api.magpipe.ai/functions/v1/test-runs?test_case_id=b2c3d4e5-2345-6789-abcd-ef0123456789" \ -H "Authorization: Bearer YOUR_API_KEY"# Get a single run by IDcurl "https://api.magpipe.ai/functions/v1/test-runs?id=c3d4e5f6-3456-789a-bcde-f01234567890" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "runs": [ { "id": "c3d4e5f6-3456-789a-bcde-f01234567890", "test_case_id": "b2c3d4e5-2345-6789-abcd-ef0123456789", "status": "failed", "started_at": "2024-01-15T10:10:00.000Z", "completed_at": "2024-01-15T10:10:45.000Z", "assertions": [ { "name": "call_connected", "passed": true, "detail": "Call connected successfully" }, { "name": "agent_joined", "passed": true, "detail": "Agent joined within 3 seconds" }, { "name": "expected_phrases", "passed": false, "detail": "Phrase '9 AM' not found in transcript" }, { "name": "prohibited_phrases", "passed": true, "detail": "No prohibited phrases detected" }, { "name": "min_duration", "passed": true, "detail": "Call lasted 45 seconds (min: 10)" } ], "error_message": null, "ai_analysis": "The agent said '9:00 AM' instead of '9 AM'. Update the expected phrase or adjust the system prompt." } ]}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MAGPIPE","description":"Magpipe docs — AI agents for voice, SMS, WhatsApp, email and chat.","colors":{"primary":"#6366f1","light":"#a5b4fc","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/snapsonic/SKw4VJxnEGW2Rnt8/logo/light.svg?fit=max\u0026auto=format\u0026n=SKw4VJxnEGW2Rnt8\u0026q=85\u0026s=b85b853edd6df8f42faded36abf5dd91","dark":"https://mintcdn.com/snapsonic/SKw4VJxnEGW2Rnt8/logo/dark.svg?fit=max\u0026auto=format\u0026n=SKw4VJxnEGW2Rnt8\u0026q=85\u0026s=ba7a94e91d596215adf79c21a5b8b97d","href":"https://magpipe.ai"},"favicon":"https://mintcdn.com/snapsonic/SKw4VJxnEGW2Rnt8/logo/favicon.svg?fit=max\u0026auto=format\u0026n=SKw4VJxnEGW2Rnt8\u0026q=85\u0026s=d110aa19772b0077eee89b696fa420f9","api":{"openapi":"openapi.json","playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.magpipe.ai/functions/v1"}},"appearance":{"default":"light"},"background":{"color":{"light":"#f9fafb","dark":"#0f172a"}},"navbar":{"links":[{"href":"https://magpipe.ai/inbox?support=1","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://magpipe.ai/inbox"}},"footer":{"socials":{"website":"https://magpipe.ai","github":"https://github.com/elagerway/magpipe"}},"fonts":{"heading":{"family":"Barlow","weight":800},"body":{"family":"Inter"}},"styling":{"eyebrows":"section","codeblocks":"dark","latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"snapsonic","hasAudioNarration":false,"actualSubdomain":"snapsonic","customDomains":["docs.magpipe.ai"],"gitSource":{"type":"github","owner":"snapsonic","repo":"magpipe","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10aa199ffae5051c3fbfb6"},"entitlements":{},"buildId":"6b05caf43341fbe734ae1d78","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":88},{"language":"default","tag":"Documentation","count":31},{"language":"default","tag":"Features","count":25},{"language":"default","tag":"Skills","count":7},{"language":"default","tag":"Calls","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"Contacts","count":5},{"language":"default","tag":"Custom Functions","count":5},{"language":"default","tag":"Dynamic Variables","count":5},{"language":"default","tag":"Testing","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--mp-ink: #0f172a;--mp-cream: #f9fafb;--mp-paper: #ffffff;--mp-accent: #6366f1;--mp-accent-soft: #a5b4fc;--mp-accent-tint: #e0e7ff;--mp-line: #0f172a;--mp-shadow: 4px 4px 0 var(--mp-ink);--mp-mono: ui-monospace, \"SF Mono\", Menlo, Consolas, monospace;--mp-display: \"Barlow\", \"Inter\", system-ui, sans-serif}.dark{--mp-ink: #f9fafb;--mp-cream: #0f172a;--mp-paper: #111a2e;--mp-accent-tint: #1e2347;--mp-line: #f9fafb;--mp-shadow: 4px 4px 0 var(--mp-accent)}#content-area h1,#page-title,#content-area h2{font-family:var(--mp-display)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:-0.015em;line-height:1!important}#page-title{font-size:2.5rem!important}#content-area h2{font-size:1.6rem!important;margin-top:2.5rem}#content-area h3{font-family:var(--mp-display)!important;font-weight:700!important;font-size:1.15rem!important;text-transform:uppercase;letter-spacing:0}#header .eyebrow,#content-area .eyebrow,[class*=\"eyebrow\"]{font-family:var(--mp-mono)!important;font-size:0.68rem!important;letter-spacing:0.14em;text-transform:uppercase;font-weight:500!important}#header .eyebrow::before,[class*=\"eyebrow\"]::before{content:\"/ \"}#navbar{border-bottom:2px solid var(--mp-line)!important;box-shadow:none!important}#navbar img{height:30px!important}#navbar .nav-tabs-item,#navbar-transition .nav-tabs-item,#navbar nav a{font-family:var(--mp-mono)!important;font-size:0.72rem!important;letter-spacing:0.12em;text-transform:uppercase}#search-bar-entry{border-radius:0!important;border:2px solid var(--mp-line)!important;box-shadow:none!important}#navbar button,#topbar-cta-button,#topbar-cta-button a,#navbar a[href*=\"magpipe.ai/inbox\"]{border-radius:0!important}#topbar-cta-button a,#navbar a[href=\"https://magpipe.ai/inbox\"]{background:var(--mp-ink)!important;color:var(--mp-cream)!important;border:2px solid var(--mp-ink)!important;font-family:var(--mp-mono)!important;font-size:0.72rem!important;letter-spacing:0.12em;text-transform:uppercase;box-shadow:none!important}#topbar-cta-button a:hover,#navbar a[href=\"https://magpipe.ai/inbox\"]:hover{background:var(--mp-accent)!important;border-color:var(--mp-accent)!important}.dark #topbar-cta-button a{background:var(--mp-accent)!important;border-color:var(--mp-accent)!important;color:#fff!important}#topbar-cta-button a>span.absolute{display:none!important}#topbar-cta-button a{padding:0.55rem 1rem!important;line-height:1!important}#topbar-cta-button a svg{display:none!important}#topbar-cta-button a span,#topbar-cta-button a div{color:inherit!important}#sidebar h3.sidebar-title,#sidebar-content h3.sidebar-title,#navigation-items h3,#sidebar h5,#navigation-items h5{font-family:var(--mp-mono)!important;font-size:0.66rem!important;letter-spacing:0.14em;text-transform:uppercase;font-weight:500!important}#sidebar a,#navigation-items a,#sidebar li>div{border-radius:0!important}#navigation-items a[aria-current=\"page\"],#navigation-items li.active>a,#sidebar a.active{background:var(--mp-accent-tint)!important;box-shadow:inset 4px 0 0 var(--mp-accent)}#table-of-contents h5,#table-of-contents-content>p:first-child,#table-of-contents .flex>span{font-family:var(--mp-mono)!important;font-size:0.66rem!important;letter-spacing:0.14em;text-transform:uppercase}#content-area .card,#content-area a[class*=\"card\"],#content-area [class*=\"callout\"],#content-area .callout,#content-area pre,#content-area [class*=\"codeblock\"],#content-area [class*=\"code-group\"],#content-area img,#content-area video,#content-area .frame,#content-area [class*=\"accordion\"],#content-area [class*=\"tabs\"]>div,#content-area button,#content-area input,#content-area select,#content-area [class*=\"badge\"],#content-area [class*=\"rounded\"]{border-radius:0!important}#content-area .card,#content-area a[class*=\"card\"]{border:2px solid var(--mp-line)!important;box-shadow:var(--mp-shadow)!important;transition:transform 0.08s ease, box-shadow 0.08s ease}#content-area .card:hover,#content-area a[class*=\"card\"]:hover{transform:translate(2px, 2px);box-shadow:2px 2px 0 var(--mp-ink)!important}#content-area .card h2,#content-area .card h3,#content-area a[class*=\"card\"] h2,#content-area a[class*=\"card\"] h3{font-family:var(--mp-display)!important;font-weight:800!important;text-transform:uppercase;font-size:1.1rem!important}#content-area img:not([class*=\"icon\"]):not(.h-6):not(.w-6),#content-area .frame{border:2px solid var(--mp-line)}#content-area [class*=\"callout\"],#content-area .callout{border:2px solid var(--mp-line)!important;border-left-width:6px!important}#content-area table{border-collapse:collapse;border:2px solid var(--mp-line)}#content-area th,#content-area td{border:1px solid var(--mp-line)!important}#content-area th{font-family:var(--mp-mono);font-size:0.68rem;letter-spacing:0.12em;text-transform:uppercase;background:var(--mp-paper)}#content-area :not(pre)>code{border-radius:0!important;border:1px solid var(--mp-line)}#content-area pre{border:2px solid var(--mp-line)!important}#content-area [class*=\"step\"] [class*=\"rounded-full\"],#content-area [class*=\"steps\"] [class*=\"number\"]{border-radius:0!important;font-family:var(--mp-mono);font-weight:600;border:2px solid var(--mp-line);background:var(--mp-paper)}#content-area [class*=\"method\"],[class*=\"api-playground\"] button,[class*=\"playground\"] input,[class*=\"playground\"] select{border-radius:0!important}.code-group,.code-group>*,#content-side-layout pre,#content-side-layout [class*=\"rounded\"]{border-radius:0!important}.code-group{border:2px solid var(--mp-line)!important}#footer{border-top:2px solid var(--mp-line)}#content-area a.pagination-prev,#content-area a.pagination-next{border-radius:0!important;border:2px solid var(--mp-line)!important;padding:0.55rem 0.9rem!important;gap:0.6rem!important;font-family:var(--mp-mono)!important;font-size:0.72rem!important;font-weight:500!important;letter-spacing:0.1em;text-transform:uppercase;color:var(--mp-ink)!important;max-width:48%;transition:background 0.1s ease}#content-area a.pagination-prev:hover,#content-area a.pagination-next:hover{background:var(--mp-accent-tint)!important}#content-area a.pagination-prev svg,#content-area a.pagination-next svg{stroke:var(--mp-ink)!important;height:0.55rem!important}#content-area a.pagination-prev [data-component-part=\"pagination-title\"],#content-area a.pagination-next [data-component-part=\"pagination-title\"]{color:inherit!important}@media (max-width: 768px){:root,.dark{--mp-shadow: 3px 3px 0 var(--mp-ink)}#page-title{font-size:2rem!important}}"}]}
{"page":{"pagePath":"api-reference/endpoints/list-test-runs","slug":"/api-reference/endpoints/list-test-runs","pageMetadata":{"title":"List Test Runs","api":"GET /test-runs","description":"List recent runs for a test case, or fetch full details of a single run","href":"/api-reference/endpoints/list-test-runs"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"List recent runs for a test case, or fetch full details of a single run\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns test run results. Use `,_jsx(_components.code,{children:`test_case_id`}),` to list all runs for a given test case, or `,_jsx(_components.code,{children:`id`}),` to fetch a single run with full detail.`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`test_case_id`,type:`string`,id:`param-test-case-id`,children:_jsxs(_components.p,{children:[`UUID of the test case. Returns all runs newest first. Use this to poll for results after `,_jsx(_components.a,{href:`/api-reference/endpoints/run-test-case`,children:`Run Test Case`}),`.`]})}),`\n`,_jsx(ParamField,{query:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`UUID of a specific test run. Returns the full run object with nested test case data.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Provide exactly one of `,_jsx(_components.code,{children:`test_case_id`}),` or `,_jsx(_components.code,{children:`id`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`runs`,type:`array`,id:`param-runs`,children:[_jsxs(_components.p,{children:[`Returned when querying by `,_jsx(_components.code,{children:`test_case_id`}),`.`]}),_jsxs(Expandable,{title:`Run object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:`Run UUID`}),_jsx(ResponseField,{name:`test_case_id`,type:`string`,id:`param-test-case-id-1`,children:`Test case UUID`}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`running`}),`, `,_jsx(_components.code,{children:`passed`}),`, `,_jsx(_components.code,{children:`failed`}),`, or `,_jsx(_components.code,{children:`error`})]}),_jsx(ResponseField,{name:`started_at`,type:`string`,id:`param-started-at`,children:`ISO 8601 start timestamp`}),_jsx(ResponseField,{name:`completed_at`,type:`string`,id:`param-completed-at`,children:`ISO 8601 completion timestamp (null if running)`}),_jsxs(ResponseField,{name:`assertions`,type:`array`,id:`param-assertions`,children:[`Array of assertion results — each has `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`passed`}),`, and `,_jsx(_components.code,{children:`detail`})]}),_jsxs(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message`,children:[`Error details if status is `,_jsx(_components.code,{children:`error`})]}),_jsx(ResponseField,{name:`ai_analysis`,type:`string`,id:`param-ai-analysis`,children:`AI diagnosis and suggested fixes (only on failed runs)`})]})]}),`\n`,_jsx(ResponseField,{name:`run`,type:`object`,id:`param-run`,children:_jsxs(_components.p,{children:[`Returned when querying by `,_jsx(_components.code,{children:`id`}),`. Same fields as above, plus a nested `,_jsx(_components.code,{children:`test_cases`}),` object with the full test case configuration.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`assertion-names`,children:`Assertion Names`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Assertion`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`call_connected`})}),_jsx(_components.td,{children:`The test call connected successfully`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_joined`})}),_jsx(_components.td,{children:`The AI agent joined the call`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expected_phrases`})}),_jsxs(_components.td,{children:[`All `,_jsx(_components.code,{children:`expected_phrases`}),` found in transcript`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prohibited_phrases`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`prohibited_phrases`}),` found in transcript`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expected_functions`})}),_jsxs(_components.td,{children:[`All `,_jsx(_components.code,{children:`expected_functions`}),` were called`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_duration`})}),_jsxs(_components.td,{children:[`Call lasted at least `,_jsx(_components.code,{children:`min_duration_seconds`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_duration`})}),_jsxs(_components.td,{children:[`Call ended within `,_jsx(_components.code,{children:`max_duration_seconds`})]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"List Test Runs","api":"GET /test-runs","description":"List recent runs for a test case, or fetch full details of a single run","href":"/api-reference/endpoints/list-test-runs"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns test run results. Use `,_jsx(_components.code,{children:`test_case_id`}),` to list all runs for a given test case, or `,_jsx(_components.code,{children:`id`}),` to fetch a single run with full detail.`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`test_case_id`,type:`string`,id:`param-test-case-id`,children:_jsxs(_components.p,{children:[`UUID of the test case. Returns all runs newest first. Use this to poll for results after `,_jsx(_components.a,{href:`/api-reference/endpoints/run-test-case`,children:`Run Test Case`}),`.`]})}),`\n`,_jsx(ParamField,{query:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`UUID of a specific test run. Returns the full run object with nested test case data.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Provide exactly one of `,_jsx(_components.code,{children:`test_case_id`}),` or `,_jsx(_components.code,{children:`id`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`runs`,type:`array`,id:`param-runs`,children:[_jsxs(_components.p,{children:[`Returned when querying by `,_jsx(_components.code,{children:`test_case_id`}),`.`]}),_jsxs(Expandable,{title:`Run object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:`Run UUID`}),_jsx(ResponseField,{name:`test_case_id`,type:`string`,id:`param-test-case-id-1`,children:`Test case UUID`}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`running`}),`, `,_jsx(_components.code,{children:`passed`}),`, `,_jsx(_components.code,{children:`failed`}),`, or `,_jsx(_components.code,{children:`error`})]}),_jsx(ResponseField,{name:`started_at`,type:`string`,id:`param-started-at`,children:`ISO 8601 start timestamp`}),_jsx(ResponseField,{name:`completed_at`,type:`string`,id:`param-completed-at`,children:`ISO 8601 completion timestamp (null if running)`}),_jsxs(ResponseField,{name:`assertions`,type:`array`,id:`param-assertions`,children:[`Array of assertion results — each has `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`passed`}),`, and `,_jsx(_components.code,{children:`detail`})]}),_jsxs(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message`,children:[`Error details if status is `,_jsx(_components.code,{children:`error`})]}),_jsx(ResponseField,{name:`ai_analysis`,type:`string`,id:`param-ai-analysis`,children:`AI diagnosis and suggested fixes (only on failed runs)`})]})]}),`\n`,_jsx(ResponseField,{name:`run`,type:`object`,id:`param-run`,children:_jsxs(_components.p,{children:[`Returned when querying by `,_jsx(_components.code,{children:`id`}),`. Same fields as above, plus a nested `,_jsx(_components.code,{children:`test_cases`}),` object with the full test case configuration.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`assertion-names`,children:`Assertion Names`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Assertion`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`call_connected`})}),_jsx(_components.td,{children:`The test call connected successfully`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_joined`})}),_jsx(_components.td,{children:`The AI agent joined the call`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expected_phrases`})}),_jsxs(_components.td,{children:[`All `,_jsx(_components.code,{children:`expected_phrases`}),` found in transcript`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prohibited_phrases`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`prohibited_phrases`}),` found in transcript`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expected_functions`})}),_jsxs(_components.td,{children:[`All `,_jsx(_components.code,{children:`expected_functions`}),` were called`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_duration`})}),_jsxs(_components.td,{children:[`Call lasted at least `,_jsx(_components.code,{children:`min_duration_seconds`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_duration`})}),_jsxs(_components.td,{children:[`Call ended within `,_jsx(_components.code,{children:`max_duration_seconds`})]})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`# List runs for a test case`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.magpipe.ai/functions/v1/test-runs?test_case_id=b2c3d4e5-2345-6789-abcd-ef0123456789\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`# Get a single run by ID`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.magpipe.ai/functions/v1/test-runs?id=c3d4e5f6-3456-789a-bcde-f01234567890\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"runs\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-3456-789a-bcde-f01234567890\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"test_case_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"b2c3d4e5-2345-6789-abcd-ef0123456789\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"started_at\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:10:00.000Z\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:10:45.000Z\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"assertions\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"call_connected\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"passed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Call connected successfully\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"agent_joined\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"passed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Agent joined within 3 seconds\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"expected_phrases\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"passed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Phrase '9 AM' not found in transcript\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"prohibited_phrases\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"passed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"No prohibited phrases detected\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"min_duration\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"passed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"detail\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Call lasted 45 seconds (min: 10)\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_message\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"ai_analysis\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"The agent said '9:00 AM' instead of '9 AM'. Update the expected phrase or adjust the system prompt.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"List Test Runs","api":"GET /test-runs","description":"List recent runs for a test case, or fetch full details of a single run","href":"/api-reference/endpoints/list-test-runs"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Assertion Names","slug":"assertion-names","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#6A9955;--shiki-dark:#6A9955\"># List runs for a test case\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"https://api.magpipe.ai/functions/v1/test-runs?test_case_id=b2c3d4e5-2345-6789-abcd-ef0123456789\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_API_KEY\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6A9955;--shiki-dark:#6A9955\"># Get a single run by ID\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"https://api.magpipe.ai/functions/v1/test-runs?id=c3d4e5f6-3456-789a-bcde-f01234567890\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_API_KEY\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"runs\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"c3d4e5f6-3456-789a-bcde-f01234567890\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"test_case_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"b2c3d4e5-2345-6789-abcd-ef0123456789\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"failed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"started_at\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2024-01-15T10:10:00.000Z\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"completed_at\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"2024-01-15T10:10:45.000Z\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"assertions\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"call_connected\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"passed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"detail\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Call connected successfully\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"agent_joined\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"passed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"detail\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Agent joined within 3 seconds\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"expected_phrases\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"passed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"detail\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Phrase '9 AM' not found in transcript\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"prohibited_phrases\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"passed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"detail\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"No prohibited phrases detected\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"min_duration\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"passed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">\"detail\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Call lasted 45 seconds (min: 10)\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"error_message\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"ai_analysis\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"The agent said '9:00 AM' instead of '9 AM'. Update the expected phrase or adjust the system prompt.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"List Test Runs","path":"/test-runs","servers":[{"url":"https://api.magpipe.ai/functions/v1"}],"method":"get","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{"test_case_id":{"schema":[{"type":"string","description":"UUID of the test case. Returns all runs newest first. Use this to poll for results after Run Test Case ."}]},"id":{"schema":[{"type":"string","description":"UUID of a specific test run. Returns the full run object with nested test case data."}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"runs":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Run UUID"}],"test_case_id":[{"type":"string","description":"Test case UUID"}],"status":[{"type":"string","description":"`pending` , `running` , `passed` , `failed` , or `error`"}],"started_at":[{"type":"string","description":"ISO 8601 start timestamp"}],"completed_at":[{"type":"string","description":"ISO 8601 completion timestamp (null if running)"}],"assertions":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of assertion results — each has `name` , `passed` , and `detail`"}],"error_message":[{"type":"string","description":"Error details if status is `error`"}],"ai_analysis":[{"type":"string","description":"AI diagnosis and suggested fixes (only on failed runs)"}]}}],"description":"Returned when querying by `test_case_id` ."}],"run":[{"type":"object","properties":{},"description":"Returned when querying by `id` . Same fields as above, plus a nested `test_cases` object with the full test case configuration."}]}}],"examples":{"example":{"value":{"runs":[{"id":"\u003cstring>","test_case_id":"\u003cstring>","status":"\u003cstring>","started_at":"\u003cstring>","completed_at":"\u003cstring>","assertions":[{}],"error_message":"\u003cstring>","ai_analysis":"\u003cstring>"}],"run":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"snapsonic","siteName":"MAGPIPE","title":"List Test Runs - MAGPIPE","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T17:35:56.548Z","originalFileLocation":"api-reference/endpoints/list-test-runs.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=\"light\"}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=\"List recent runs for a test case, or fetch full details of a single run\">\u003cmeta data-mint-head name=\"application-name\" content=\"MAGPIPE\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_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/snapsonic/_iBvdCPBUP4oMVg3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Test Runs - MAGPIPE\">\u003cmeta data-mint-head property=\"og:description\" content=\"List recent runs for a test case, or fetch full details of a single run\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MAGPIPE\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://snapsonic.mintlify.site/_mintlify/api/og/v2?division=Testing\u0026amp;title=List+Test+Runs\u0026amp;description=List+recent+runs+for+a+test+case%2C+or+fetch+full+details+of+a+single+run\u0026amp;theme=fd0d942f37c3ec7786fec782\u0026amp;signature=5b81247c6eb675458d1e95d02ec3203845efc6e215c2da59ef0be117592e9b6f\">\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 Test Runs - MAGPIPE\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List recent runs for a test case, or fetch full details of a single run\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://snapsonic.mintlify.site/_mintlify/api/og/v2?division=Testing\u0026amp;title=List+Test+Runs\u0026amp;description=List+recent+runs+for+a+test+case%2C+or+fetch+full+details+of+a+single+run\u0026amp;theme=fd0d942f37c3ec7786fec782\u0026amp;signature=5b81247c6eb675458d1e95d02ec3203845efc6e215c2da59ef0be117592e9b6f\">\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/snapsonic/_iBvdCPBUP4oMVg3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MAGPIPE\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/list-test-runs.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.magpipe.ai/#organization\",\"name\":\"MAGPIPE\",\"url\":\"https://docs.magpipe.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/snapsonic/SKw4VJxnEGW2Rnt8/logo/light.svg?fit=max\u0026auto=format\u0026n=SKw4VJxnEGW2Rnt8\u0026q=85\u0026s=b85b853edd6df8f42faded36abf5dd91\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.magpipe.ai#website\",\"name\":\"MAGPIPE\",\"url\":\"https://docs.magpipe.ai\",\"publisher\":{\"@id\":\"https://docs.magpipe.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs#webpage\",\"url\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs\",\"name\":\"List Test Runs\",\"description\":\"List recent runs for a test case, or fetch full details of a single run\",\"dateModified\":\"2026-11-24T17:35:56.548Z\",\"isPartOf\":{\"@id\":\"https://docs.magpipe.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Testing\",\"item\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-suites\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List Test Runs\",\"item\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs#apireference\",\"headline\":\"List Test Runs\",\"name\":\"List Test Runs\",\"description\":\"List recent runs for a test case, or fetch full details of a single run\",\"url\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs\",\"mainEntityOfPage\":{\"@id\":\"https://docs.magpipe.ai/api-reference/endpoints/list-test-runs#webpage\"},\"dateModified\":\"2026-11-24T17:35:56.548Z\",\"publisher\":{\"@id\":\"https://docs.magpipe.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.magpipe.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MAGPIPE\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MAGPIPE\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/list-test-runs.md","siteName":"MAGPIPE","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"MCP Server","href":"/api-reference/mcp-server"}]},{"group":"Agents","pages":[{"title":"Create Agent","api":"POST https://api.magpipe.ai/functions/v1/create-agent","href":"/api-reference/endpoints/create-agent"},{"title":"Get Agent","api":"POST /get-agent","href":"/api-reference/endpoints/get-agent"},{"title":"Update Agent","api":"POST /update-agent","href":"/api-reference/endpoints/update-agent"},{"title":"List Agents","api":"POST /list-agents","href":"/api-reference/endpoints/list-agents"},{"title":"Delete Agent","api":"POST /delete-agent","href":"/api-reference/endpoints/delete-agent"}]},{"group":"Custom Functions","pages":[{"title":"Create Custom Function","api":"POST /custom-functions","href":"/api-reference/endpoints/create-custom-function"},{"title":"Get Custom Function","api":"GET /custom-functions/{id}","href":"/api-reference/endpoints/get-custom-function"},{"title":"Update Custom Function","api":"PATCH /custom-functions/{id}","href":"/api-reference/endpoints/update-custom-function"},{"title":"List Custom Functions","api":"GET /custom-functions","href":"/api-reference/endpoints/list-custom-functions"},{"title":"Delete Custom Function","api":"DELETE /custom-functions/{id}","href":"/api-reference/endpoints/delete-custom-function"}]},{"group":"Dynamic Variables","pages":[{"title":"Create Dynamic Variable","api":"POST /manage-dynamic-variables","href":"/api-reference/endpoints/create-dynamic-variable"},{"title":"Get Dynamic Variable","api":"GET /manage-dynamic-variables/{id}","href":"/api-reference/endpoints/get-dynamic-variable"},{"title":"Update Dynamic Variable","api":"PATCH /manage-dynamic-variables/{id}","href":"/api-reference/endpoints/update-dynamic-variable"},{"title":"List Dynamic Variables","api":"GET /manage-dynamic-variables","href":"/api-reference/endpoints/list-dynamic-variables"},{"title":"Delete Dynamic Variable","api":"DELETE /manage-dynamic-variables/{id}","href":"/api-reference/endpoints/delete-dynamic-variable"}]},{"group":"Memory","pages":[{"title":"List Memories","api":"POST /list-memories","href":"/api-reference/endpoints/list-memories"},{"title":"Get Memory","api":"POST /get-memory","href":"/api-reference/endpoints/get-memory"},{"title":"Update Memory","api":"POST /update-memory","href":"/api-reference/endpoints/update-memory"},{"title":"Delete Memory","api":"POST /delete-memory","href":"/api-reference/endpoints/delete-memory"}]},{"group":"Calls","pages":[{"title":"Create Phone Call","api":"POST /initiate-bridged-call","href":"/api-reference/endpoints/create-call"},{"title":"Get Call","api":"POST /get-call","href":"/api-reference/endpoints/get-call"},{"title":"List Calls","api":"POST /list-calls","href":"/api-reference/endpoints/list-calls"},{"title":"Transfer Call","api":"POST /transfer-call","href":"/api-reference/endpoints/transfer-call"},{"title":"End Call","api":"POST /terminate-call","href":"/api-reference/endpoints/end-call"},{"title":"Get Recording","api":"POST /get-signed-recording-url","href":"/api-reference/endpoints/get-recording"}]},{"group":"Call Whitelist","pages":[{"title":"List Whitelist Entries","api":"GET /manage-call-whitelist","href":"/api-reference/endpoints/list-whitelist-entries"},{"title":"Add Whitelist Entry","api":"POST /manage-call-whitelist","href":"/api-reference/endpoints/add-whitelist-entry"},{"title":"Delete Whitelist Entry","api":"DELETE /manage-call-whitelist","href":"/api-reference/endpoints/delete-whitelist-entry"}]},{"group":"Skills","pages":[{"title":"List Skill Definitions","api":"GET /manage-skills/definitions","href":"/api-reference/endpoints/list-skill-definitions"},{"title":"List Agent Skills","api":"GET /manage-skills","href":"/api-reference/endpoints/list-agent-skills"},{"title":"Enable Skill","api":"POST /manage-skills","href":"/api-reference/endpoints/enable-skill"},{"title":"Update Skill","api":"PATCH /manage-skills/{id}","href":"/api-reference/endpoints/update-skill"},{"title":"Delete Skill","api":"DELETE /manage-skills/{id}","href":"/api-reference/endpoints/delete-skill"},{"title":"Execute Skill","api":"POST /manage-skills/{id}/execute","href":"/api-reference/endpoints/execute-skill"},{"title":"List Skill Executions","api":"GET /manage-skills/{id}/executions","href":"/api-reference/endpoints/list-skill-executions"}]},{"group":"Batch Calls","pages":[{"title":"Create Batch Call","api":"POST /batch-calls","href":"/api-reference/endpoints/create-batch"},{"title":"List Batch Calls","api":"POST /batch-calls","href":"/api-reference/endpoints/list-batches"},{"title":"Get Batch Call","api":"POST /batch-calls","href":"/api-reference/endpoints/get-batch"},{"title":"Cancel Batch Call","api":"POST /batch-calls","href":"/api-reference/endpoints/cancel-batch"}]},{"group":"Testing","pages":[{"title":"List Test Suites","api":"GET /test-cases","href":"/api-reference/endpoints/list-test-suites"},{"title":"Create Test Suite","api":"POST /test-cases","href":"/api-reference/endpoints/create-test-suite"},{"title":"Create Test Case","api":"POST /test-cases","href":"/api-reference/endpoints/create-test-case"},{"title":"Run Test Case","api":"POST /run-test","description":"Fire a test run for a test case","href":"/api-reference/endpoints/run-test-case"},{"title":"List Test Runs","api":"GET /test-runs","href":"/api-reference/endpoints/list-test-runs"}]},{"group":"Messages","pages":[{"title":"Send SMS","api":"POST /send-sms","description":"Send an SMS message from your Magpipe number","href":"/api-reference/endpoints/send-sms"},{"title":"Send WhatsApp Message","api":"POST /send-whatsapp-message","href":"/api-reference/endpoints/send-whatsapp-message"},{"title":"Send WhatsApp Template","api":"POST /send-whatsapp-template","href":"/api-reference/endpoints/send-whatsapp-template"},{"title":"Get Message","api":"POST /get-message","href":"/api-reference/endpoints/get-message"},{"title":"List Messages","api":"POST /list-messages","href":"/api-reference/endpoints/list-messages"}]},{"group":"Phone Numbers","pages":[{"title":"Search Available Numbers","api":"POST /search-phone-numbers","href":"/api-reference/endpoints/search-numbers"},{"title":"Provision Phone Number","api":"POST /provision-phone-number","href":"/api-reference/endpoints/provision-number"},{"title":"List Phone Numbers","api":"POST /list-phone-numbers","href":"/api-reference/endpoints/list-numbers"},{"title":"Release Phone Number","api":"POST /release-phone-number","href":"/api-reference/endpoints/release-number"},{"title":"Lookup Phone Number","api":"POST /lookup-phone-number","href":"/api-reference/endpoints/lookup-phone-number"}]},{"group":"Chat Widget","pages":[{"title":"Create Chat Widget","api":"POST /create-chat-widget","href":"/api-reference/endpoints/create-chat-widget"},{"title":"Send Chat Message","api":"POST /webhook-chat-message","href":"/api-reference/endpoints/send-chat-message"},{"title":"List Chat Sessions","api":"POST /list-chat-sessions","href":"/api-reference/endpoints/list-chat-sessions"}]},{"group":"Knowledge Base","pages":[{"title":"Add Knowledge Source","api":"POST /knowledge-source-add","href":"/api-reference/endpoints/add-knowledge-source"},{"title":"Add Knowledge (Manual)","api":"POST /knowledge-source-manual","href":"/api-reference/endpoints/add-knowledge-manual"},{"title":"List Knowledge Sources","api":"POST /list-knowledge-sources","href":"/api-reference/endpoints/list-knowledge-sources"},{"title":"Delete Knowledge Source","api":"POST /delete-knowledge-source","href":"/api-reference/endpoints/delete-knowledge-source"}]},{"group":"Voice","pages":[{"title":"Clone Voice","api":"POST /clone-voice","href":"/api-reference/endpoints/clone-voice"},{"title":"List Voices","api":"POST /list-voices","href":"/api-reference/endpoints/list-voices"},{"title":"Delete Voice","api":"POST /delete-voice","href":"/api-reference/endpoints/delete-voice"}]},{"group":"Models","pages":[{"title":"List Models","api":"POST /list-models","href":"/api-reference/endpoints/list-models"}]},{"group":"Calendar","pages":[{"title":"Get Available Calendar Slots","api":"POST /cal-com-get-slots","href":"/api-reference/endpoints/get-calendar-slots"},{"title":"Create Calendar Booking","api":"POST /cal-com-create-booking","href":"/api-reference/endpoints/create-booking"},{"title":"Cancel Booking","api":"POST /cal-com-cancel-booking","href":"/api-reference/endpoints/cancel-booking"}]},{"group":"Contacts","pages":[{"title":"Create Contact","api":"POST /create-contact","href":"/api-reference/endpoints/create-contact"},{"title":"Get Contact","api":"POST /get-contact","href":"/api-reference/endpoints/get-contact"},{"title":"List Contacts","api":"POST /list-contacts","href":"/api-reference/endpoints/list-contacts"},{"title":"Update Contact","api":"POST /update-contact","href":"/api-reference/endpoints/update-contact"},{"title":"Delete Contact","api":"POST /delete-contact","href":"/api-reference/endpoints/delete-contact"}]},{"group":"Billing","pages":[{"title":"Get Credit Balance","api":"GET /get-credits-info","href":"/api-reference/endpoints/get-balance"},{"title":"Purchase Credits","api":"POST /stripe-add-credits","href":"/api-reference/endpoints/purchase-credits"}]},{"group":"Scheduled Actions","pages":[{"title":"Create Scheduled Action","api":"POST /scheduled-actions","href":"/api-reference/endpoints/create-scheduled-action"},{"title":"List Scheduled Actions","api":"GET /scheduled-actions","href":"/api-reference/endpoints/list-scheduled-actions"},{"title":"Cancel Scheduled Action","api":"PATCH /scheduled-actions/{id}","href":"/api-reference/endpoints/cancel-scheduled-action"}]},{"group":"API Keys \u0026 Webhooks","pages":[{"title":"Create API Key","api":"POST /manage-api-keys","href":"/api-reference/endpoints/create-api-key"},{"title":"List API Keys","api":"POST /manage-api-keys","href":"/api-reference/endpoints/list-api-keys"},{"title":"Set Webhook URL","api":"POST /manage-api-keys","href":"/api-reference/endpoints/set-webhook"},{"title":"Revoke API Key","api":"POST /manage-api-keys","href":"/api-reference/endpoints/revoke-api-key"}]}]}]},"basePath":"","title":"List Test Runs - MAGPIPE","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js"]}