{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Cortex","colors":{"primary":"#0066FF","light":"#3399FF","dark":"#0052CC"},"logo":{"light":"https://mintcdn.com/cortex-891fd898/4MLfFrvXy66YjKyF/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=4MLfFrvXy66YjKyF\u0026q=85\u0026s=97eeda17a69e8452f7a8564654bbd608","dark":"https://mintcdn.com/cortex-891fd898/4MLfFrvXy66YjKyF/assets/logo/dark.svg?fit=max\u0026auto=format\u0026n=4MLfFrvXy66YjKyF\u0026q=85\u0026s=65ad11530628311745787f1143783592"},"favicon":"/assets/favicon.svg","appearance":{"default":"dark"},"footer":{"socials":{"x":"https://x.com/with_cortex","linkedin":"https://www.linkedin.com/company/withcortexai","website":"https://withcortex.ai"}},"search":{"prompt":"Search or tell me what you want to know about"},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Space Grotesk"}},"styling":{"codeblocks":"system"},"contextual":{"options":["copy","view","chatgpt","claude"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-891fd898","hasAudioNarration":false,"actualSubdomain":"cortex-891fd898","customDomains":["docs.withcortex.ai"],"gitSource":{"type":"github","owner":"trycortexai","repo":"cortex-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6ae920bbf2d1fb3a80be1c02:success","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":69},{"language":"default","tag":"Workflows","count":34},{"language":"default","tag":"Documentation","count":27},{"language":"default","tag":"Tests","count":15},{"language":"default","tag":"Files","count":11},{"language":"default","tag":"Records","count":11},{"language":"default","tag":"Collections","count":9},{"language":"default","tag":"Steps","count":7},{"language":"default","tag":"Variables","count":5},{"language":"default","tag":"Webhooks","count":4}]},"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":[]}
{"page":{"pagePath":"api-reference/endpoints/tests/get-tests-expectations","slug":"/api-reference/endpoints/tests/get-tests-expectations","pageMetadata":{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/expectations","title":"Get Tests Expectations","description":"Retrieve a list of workflow test expectations for a specific workflow.","href":"/api-reference/endpoints/tests/get-tests-expectations"},"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: \"Retrieve a list of workflow test expectations for a specific workflow.\"\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":"system","config":{},"pageMetadata":{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/expectations","title":"Get Tests Expectations","description":"Retrieve a list of workflow test expectations for a specific workflow.","href":"/api-reference/endpoints/tests/get-tests-expectations"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get Tests Expectations","description":"Retrieve a list of workflow test expectations for a specific workflow.","parameters":["ebb5dce5-0bff-4979-894b-b8547de67b7b","a4eee34c-5cc2-4786-aefe-a629d22b518f","88a4d51d-19e4-4447-8776-01deeb7ab94a","06ab5425-c2a5-47c1-9e3e-44055bdf6053","49e43791-c4a8-4df4-83a7-afa8d0c624d7","45253c02-935b-48ea-a106-85e6e3d1b894"],"responses":{"200":"8c786ad9-3ed5-40bf-b1e8-8b95c7797c07"},"method":"get","type":"path","servers":[],"security":[],"path":"/apps/{app_id}/workflows/{workflow_id}/tests/expectations","baseUrlOptions":[],"title":"Get Tests Expectations","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ebb5dce5-0bff-4979-894b-b8547de67b7b":{"schema":{"type":"string","isRequired":true,"description":"The ID of the app","uniqueKey":"","typeLabel":"string"},"required":true,"description":"The ID of the app","name":"app_id","in":"path"},"a4eee34c-5cc2-4786-aefe-a629d22b518f":{"schema":{"type":"string","isRequired":true,"description":"The ID of the workflow","uniqueKey":"","typeLabel":"string"},"required":true,"description":"The ID of the workflow","name":"workflow_id","in":"path"},"88a4d51d-19e4-4447-8776-01deeb7ab94a":{"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"name":"search","in":"query"},"06ab5425-c2a5-47c1-9e3e-44055bdf6053":{"schema":{"type":"number","isRequired":false,"description":"Page number","uniqueKey":"","typeLabel":"number"},"required":false,"description":"Page number","name":"page","in":"query"},"49e43791-c4a8-4df4-83a7-afa8d0c624d7":{"schema":{"type":"number","isRequired":false,"description":"Number of items to take","uniqueKey":"","typeLabel":"number"},"required":false,"description":"Number of items to take","name":"take","in":"query"},"45253c02-935b-48ea-a106-85e6e3d1b894":{"schema":{"type":"string","isRequired":false,"description":"Next page token (Only used on special endpoints)","uniqueKey":"","typeLabel":"string"},"required":false,"description":"Next page token (Only used on special endpoints)","name":"next","in":"query"}},"responses":{"8c786ad9-3ed5-40bf-b1e8-8b95c7797c07":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the expectation","isRequired":true,"uniqueKey":"items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","minLength":1,"maxLength":256,"description":"Name of the expectation (max 256 characters)","isRequired":true,"uniqueKey":"items.[INDEX].name","typeLabel":"string"},"script":{"type":"string","maxLength":10240,"description":"JavaScript code that results in a boolean value determining if the expectation passed or failed","isRequired":true,"uniqueKey":"items.[INDEX].script","typeLabel":"string"},"created_at":{"oneOf":[{"type":"string","description":"Creation date of the expectation","format":"date","isRequired":true,"uniqueKey":"items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","description":"Creation date of the expectation","format":"date","isRequired":true,"uniqueKey":"items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].created_at","typeLabel":"string\u003cdate> | null"},"updated_at":{"oneOf":[{"type":"string","description":"Last update date of the expectation","format":"date","isRequired":true,"uniqueKey":"items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","description":"Last update date of the expectation","format":"date","isRequired":true,"uniqueKey":"items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].updated_at","typeLabel":"string\u003cdate> | null"}},"required":["id","name","script","created_at","updated_at"],"description":"Detailed information about an expectation within a workflow","uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"examples":{"Example":{"title":"Example","value":[{"id":"\u003cstring>","name":"\u003cstring>","script":"\u003cstring>","created_at":"2023-12-25","updated_at":"2023-12-25"}]}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cortex-891fd898","siteName":"Cortex","title":"Get Tests Expectations - Cortex","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-21T10:26:01.042Z","originalFileLocation":"api-reference/endpoints/tests/get-tests-expectations.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=\"dark\"}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=\"Retrieve a list of workflow test expectations for a specific workflow.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cortex\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_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/cortex-891fd898/tDghsfIV0sVOhMV-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Tests Expectations - Cortex\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve a list of workflow test expectations for a specific workflow.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cortex\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-891fd898.mintlify.site/_mintlify/api/og/v2?division=Tests\u0026amp;title=Get+Tests+Expectations\u0026amp;description=Retrieve+a+list+of+workflow+test+expectations+for+a+specific+workflow.\u0026amp;theme=2994a4d6be60b7568e7341f6\u0026amp;signature=3e5d226809010e7cea5a4da8c5f401b6f46362e5764e837e0922416b8612c599\">\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=\"Get Tests Expectations - Cortex\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve a list of workflow test expectations for a specific workflow.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-891fd898.mintlify.site/_mintlify/api/og/v2?division=Tests\u0026amp;title=Get+Tests+Expectations\u0026amp;description=Retrieve+a+list+of+workflow+test+expectations+for+a+specific+workflow.\u0026amp;theme=2994a4d6be60b7568e7341f6\u0026amp;signature=3e5d226809010e7cea5a4da8c5f401b6f46362e5764e837e0922416b8612c599\">\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/cortex-891fd898/tDghsfIV0sVOhMV-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cortex\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations\">\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/tests/get-tests-expectations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.withcortex.ai/#organization\",\"name\":\"Cortex\",\"url\":\"https://docs.withcortex.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cortex-891fd898/4MLfFrvXy66YjKyF/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=4MLfFrvXy66YjKyF\u0026q=85\u0026s=97eeda17a69e8452f7a8564654bbd608\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.withcortex.ai#website\",\"name\":\"Cortex\",\"url\":\"https://docs.withcortex.ai\",\"publisher\":{\"@id\":\"https://docs.withcortex.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations#webpage\",\"url\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations\",\"name\":\"Get Tests Expectations\",\"description\":\"Retrieve a list of workflow test expectations for a specific workflow.\",\"dateModified\":\"2025-08-21T10:26:01.042Z\",\"isPartOf\":{\"@id\":\"https://docs.withcortex.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cortex\",\"item\":\"https://docs.withcortex.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Tests Expectations\",\"item\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations#apireference\",\"headline\":\"Get Tests Expectations\",\"name\":\"Get Tests Expectations\",\"description\":\"Retrieve a list of workflow test expectations for a specific workflow.\",\"url\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations\",\"mainEntityOfPage\":{\"@id\":\"https://docs.withcortex.ai/api-reference/endpoints/tests/get-tests-expectations#webpage\"},\"dateModified\":\"2025-08-21T10:26:01.042Z\",\"publisher\":{\"@id\":\"https://docs.withcortex.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.withcortex.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cortex\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cortex\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/tests/get-tests-expectations.md","siteName":"Cortex","nav":{"global":null,"dropdowns":[{"dropdown":"Documentation","icon":"book-open","description":"Cortex documentation","groups":[{"group":"Introduction","pages":[{"title":"Introduction","icon":"hand-wave","href":"/introduction"},{"title":"Core Concepts","icon":"lightbulb","href":"/core-concepts"}]},{"group":"Workflows","pages":[{"title":"Introduction","icon":"diagram-project","href":"/workflows/introduction"},{"title":"Your First Workflow","icon":"graduation-cap","href":"/workflows/your-first-workflow"},{"group":"Steps","icon":"diagram-next","pages":[{"title":"Overview","href":"/workflows/steps/overview"},{"title":"Input Step","href":"/workflows/steps/input"},{"title":"Processing Steps","href":"/workflows/steps/processing"},{"group":"Triggers and Actions","pages":[{"title":"Overview","href":"/workflows/steps/triggers-and-actions/overview"},{"title":"Configuring","href":"/workflows/steps/triggers-and-actions/configuring"},{"title":"Built-in Triggers","href":"/workflows/steps/triggers-and-actions/built-in-triggers"},{"title":"Working with Triggers","href":"/workflows/steps/triggers-and-actions/working-with-triggers"}]}]},{"group":"Steps Advanced","icon":"wand-magic-sparkles","pages":[{"title":"Variables","icon":"cube","href":"/workflows/steps-advanced/variables"},{"title":"Loop","icon":"repeat","href":"/workflows/steps-advanced/loop"},{"title":"Conditional","icon":"code-branch","href":"/workflows/steps-advanced/conditional"},{"title":"Branching","icon":"code-fork","href":"/workflows/steps-advanced/branching"}]},{"title":"Display","icon":"display","href":"/workflows/display"},{"title":"Agents","icon":"robot","href":"/workflows/agents"},{"title":"Deploy","icon":"rocket","href":"/workflows/deploy"},{"title":"Share","icon":"share","href":"/workflows/share"},{"title":"API Usage","icon":"code","href":"/workflows/api-usage"},{"title":"Input Webhooks","icon":"webhook","href":"/workflows/input-webhooks"}]},{"group":"Collections","pages":[{"title":"Collections","icon":"layer-group","href":"/collections/overview"},{"title":"Records","icon":"database","href":"/collections/records"},{"title":"Rules","icon":"gear","href":"/collections/rules"},{"title":"Report View \u0026 Analysis","icon":"chart-line","href":"/collections/report"}]},{"group":"Organizations","pages":[{"title":"Organizations \u0026 Members","icon":"users","href":"/organizations/overview"},{"title":"Billing \u0026 Usage","icon":"credit-card","href":"/organizations/billing"}]}]},{"dropdown":"API Reference","icon":"terminal","description":"Reference for the API","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/api-reference/getting-started/introduction"},{"title":"Pagination and Filtering","href":"/api-reference/getting-started/pagination-and-filtering"},{"title":"File Uploads","href":"/api-reference/getting-started/file-uploads"}]},{"group":"Collections","pages":[{"openapi":"get /apps/{app_id}/collections","title":"Get Collections","href":"/api-reference/endpoints/collections/get-collections"},{"openapi":"post /apps/{app_id}/collections","title":"Create a Collection","href":"/api-reference/endpoints/collections/create-a-collection"},{"openapi":"get /apps/{app_id}/collections/{collection_id}","title":"Get a Collection","href":"/api-reference/endpoints/collections/get-a-collection"},{"openapi":"delete /apps/{app_id}/collections/{collection_id}","title":"Delete a Collection","href":"/api-reference/endpoints/collections/delete-a-collection"},{"openapi":"patch /apps/{app_id}/collections/{collection_id}","title":"Update a Collection","href":"/api-reference/endpoints/collections/update-a-collection"}]},{"group":"Records","pages":[{"openapi":"get /apps/{app_id}/collections/{collection_id}/records","title":"Get Records","href":"/api-reference/endpoints/records/get-records"},{"openapi":"post /apps/{app_id}/collections/{collection_id}/records","title":"Create a Record","href":"/api-reference/endpoints/records/create-a-record"},{"openapi":"get /apps/{app_id}/collections/{collection_id}/records/{record_id}","title":"Get a Record","href":"/api-reference/endpoints/records/get-a-record"},{"openapi":"delete /apps/{app_id}/collections/{collection_id}/records/{record_id}","title":"Delete a Record","href":"/api-reference/endpoints/records/delete-a-record"},{"openapi":"patch /apps/{app_id}/collections/{collection_id}/records/{record_id}","title":"Update a Record","href":"/api-reference/endpoints/records/update-a-record"},{"openapi":"get /apps/{app_id}/collections/{collection_id}/records/{record_id}/status","title":"Get Record Status","href":"/api-reference/endpoints/records/get-record-status"},{"openapi":"post /apps/{app_id}/collections/{collection_id}/records/{record_id}/run","title":"Run a Record","href":"/api-reference/endpoints/records/run-a-record"},{"openapi":"post /apps/{app_id}/collections/{collection_id}/records/{record_id}/cancel","title":"Cancel a Record Run","href":"/api-reference/endpoints/records/cancel-a-record-run"},{"openapi":"post /apps/{app_id}/collections/{collection_id}/records/{record_id}/update-rules","title":"Update Record Rules","href":"/api-reference/endpoints/records/update-record-rules"},{"openapi":"post /apps/{app_id}/collections/{collection_id}/records/{record_id}/reset","title":"Reset Record","href":"/api-reference/endpoints/records/reset-record"},{"openapi":"get /apps/{app_id}/collections/{collection_id}/records/{record_id}/download","title":"Download Record Report","href":"/api-reference/endpoints/records/download-record-report"}]},{"group":"Workflows","pages":[{"openapi":"get /apps/{app_id}/workflows/discover","title":"Discover Workflows","href":"/api-reference/endpoints/workflows/discover-workflows"},{"openapi":"get /apps/{app_id}/workflows/discover/{workflow_id}","title":"Get Discoverable Workflow","href":"/api-reference/endpoints/workflows/get-discoverable-workflow"},{"openapi":"get /apps/{app_id}/workflows/discover/{workflow_id}/versions/{version_id_or_version_number}","title":"Get Discoverable Workflow Version","href":"/api-reference/endpoints/workflows/get-discoverable-workflow-version"},{"openapi":"post /apps/{app_id}/workflows/discover/{workflow_id}/runs","title":"Run Discoverable Workflow","href":"/api-reference/endpoints/workflows/run-discoverable-workflow"},{"openapi":"post /apps/{app_id}/workflows/discover/{workflow_id}/runs/{run_id}/cancel","title":"Cancel a Discoverable Workflow Run","href":"/api-reference/endpoints/workflows/cancel-a-discoverable-workflow-run"},{"openapi":"get /apps/{app_id}/workflows","title":"Get Workflows","href":"/api-reference/endpoints/workflows/get-workflows"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}","title":"Get a Workflow","href":"/api-reference/endpoints/workflows/get-a-workflow"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/runs","title":"Get Workflow Runs","href":"/api-reference/endpoints/workflows/get-workflow-runs"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/runs","title":"Run a Workflow","href":"/api-reference/endpoints/workflows/run-a-workflow"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/runs/{run_id}","title":"Get a Workflow Run","href":"/api-reference/endpoints/workflows/get-a-workflow-run"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/replay","title":"Replay a Workflow Run","href":"/api-reference/endpoints/workflows/replay-a-workflow-run"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/cancel","title":"Cancel a Workflow Run","href":"/api-reference/endpoints/workflows/cancel-a-workflow-run"},{"openapi":"patch /apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/retention","title":"Update Run Data Retention Configuration","href":"/api-reference/endpoints/workflows/update-run-data-retention-configuration"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/versions","title":"Get Workflow Versions","href":"/api-reference/endpoints/workflows/get-workflow-versions"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/versions/{version_id_or_version_number}","title":"Get a Workflow Version","description":"Retrieve a specific workflow version by ID or version number.","href":"/api-reference/endpoints/workflows/get-a-workflow-version"}]},{"group":"Tests","pages":[{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/expectations","title":"Get Tests Expectations","href":"/api-reference/endpoints/tests/get-tests-expectations"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests/expectations","title":"Create a Test Expectation","description":"Create a new workflow test expectation for a specific workflow.","href":"/api-reference/endpoints/tests/create-a-test-expectation"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/expectations/{expectation_id}","title":"Get Test Expectation","href":"/api-reference/endpoints/tests/get-test-expectation"},{"openapi":"delete /apps/{app_id}/workflows/{workflow_id}/tests/expectations/{expectation_id}","title":"Delete Test Expectation","href":"/api-reference/endpoints/tests/delete-test-expectation"},{"openapi":"patch /apps/{app_id}/workflows/{workflow_id}/tests/expectations/{expectation_id}","title":"Update Test Expectation","href":"/api-reference/endpoints/tests/update-test-expectation"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests","title":"Get Tests","href":"/api-reference/endpoints/tests/get-tests"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests","title":"Create a Test","href":"/api-reference/endpoints/tests/create-a-test"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/stats","title":"Get Tests Stats","href":"/api-reference/endpoints/tests/get-tests-stats"},{"openapi":"get /apps/{app_id}/workflows/{workflow_id}/tests/{test_id}","title":"Get Test","href":"/api-reference/endpoints/tests/get-test"},{"openapi":"delete /apps/{app_id}/workflows/{workflow_id}/tests/{test_id}","title":"Delete Test","href":"/api-reference/endpoints/tests/delete-test"},{"openapi":"patch /apps/{app_id}/workflows/{workflow_id}/tests/{test_id}","title":"Update Test","href":"/api-reference/endpoints/tests/update-test"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests/runs","title":"Run Tests","href":"/api-reference/endpoints/tests/run-tests"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests/cancel","title":"Cancel Tests","href":"/api-reference/endpoints/tests/cancel-tests"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/cancel","title":"Cancel Test","href":"/api-reference/endpoints/tests/cancel-test"},{"openapi":"post /apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/runs","title":"Run Test","href":"/api-reference/endpoints/tests/run-test"}]},{"group":"Variables","pages":[{"openapi":"get /apps/{app_id}/variables","title":"Get App Variables","href":"/api-reference/endpoints/variables/get-app-variables"},{"openapi":"post /apps/{app_id}/variables","title":"Create App Variable","href":"/api-reference/endpoints/variables/create-app-variable"},{"openapi":"patch /apps/{app_id}/variables","title":"Update App Variables","href":"/api-reference/endpoints/variables/update-app-variables"},{"openapi":"delete /apps/{app_id}/variables/{key}","title":"Delete App Variable","href":"/api-reference/endpoints/variables/delete-app-variable"},{"openapi":"patch /apps/{app_id}/variables/{key}","title":"Rename App Variable","href":"/api-reference/endpoints/variables/rename-app-variable"}]},{"group":"Files","pages":[{"openapi":"post /public/apps/files/uploads/{file_upload_id}","title":"Upload a file","href":"/api-reference/endpoints/files/upload-a-file"},{"openapi":"get /apps/{app_id}/files/uploads","title":"List File Uploads","href":"/api-reference/endpoints/files/list-file-uploads"},{"openapi":"post /apps/{app_id}/files/uploads","title":"Create a new file upload","href":"/api-reference/endpoints/files/create-a-new-file-upload"},{"openapi":"get /apps/{app_id}/files/uploads/{file_upload_id}","title":"Get File Upload","href":"/api-reference/endpoints/files/get-file-upload"},{"openapi":"delete /apps/{app_id}/files/uploads/{file_upload_id}","title":"Delete File Upload","href":"/api-reference/endpoints/files/delete-file-upload"},{"openapi":"patch /apps/{app_id}/files/uploads/{file_upload_id}","title":"Update File Upload","href":"/api-reference/endpoints/files/update-file-upload"},{"openapi":"get /apps/{app_id}/files","title":"List Files","href":"/api-reference/endpoints/files/list-files"},{"openapi":"post /apps/{app_id}/files","title":"Create File","href":"/api-reference/endpoints/files/create-file"},{"openapi":"get /apps/{app_id}/files/{file_id}","title":"Get File","href":"/api-reference/endpoints/files/get-file"},{"openapi":"delete /apps/{app_id}/files/{file_id}","title":"Delete File","href":"/api-reference/endpoints/files/delete-file"},{"openapi":"post /apps/{app_id}/files/{file_id}/cancel","title":"Cancel File Upload","href":"/api-reference/endpoints/files/cancel-file-upload"}]},{"group":"Webhooks","pages":[{"openapi":"get /apps/{app_id}/webhooks","title":"Get Webhooks","href":"/api-reference/endpoints/webhooks/get-webhooks"},{"openapi":"post /apps/{app_id}/webhooks","title":"Create a Webhook","href":"/api-reference/endpoints/webhooks/create-a-webhook"},{"openapi":"delete /apps/{app_id}/webhooks/{webhook_id}","title":"Delete a Webhook","href":"/api-reference/endpoints/webhooks/delete-a-webhook"},{"openapi":"patch /apps/{app_id}/webhooks/{webhook_id}","title":"Update Webhook","href":"/api-reference/endpoints/webhooks/update-webhook"}]}]}]},"basePath":"","title":"Get Tests Expectations - Cortex","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","Page-COAeG2by.js","CodeSnippet-AsYrl7_f.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","getApiPlaygroundDisplay-B1HdZsAn.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}