Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"KINTRA","colors":{"primary":"#35cbff","light":"#5be7ff","dark":"#0b7fa3"},"logo":{"light":"https://mintcdn.com/kintra/aV869_4X610yKJzW/logo/light.png?fit=max\u0026auto=format\u0026n=aV869_4X610yKJzW\u0026q=85\u0026s=d55bc842096a5d67e57c9ab099d58762","dark":"https://mintcdn.com/kintra/aV869_4X610yKJzW/logo/dark.png?fit=max\u0026auto=format\u0026n=aV869_4X610yKJzW\u0026q=85\u0026s=e0a69c1f9fff02d0cacd13175c0b4336"},"favicon":"https://mintcdn.com/kintra/aV869_4X610yKJzW/favicon.ico?fit=max\u0026auto=format\u0026n=aV869_4X610yKJzW\u0026q=85\u0026s=136dbc7fc4ffe42622617d330e1d8f34","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"],"prefill":true,"autogenerate":true}},"appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#121212"}},"fonts":{"heading":{"family":"Plus Jakarta Sans"},"body":{"family":"Plus Jakarta Sans"}},"banner":{"content":"Production environment","dismissible":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kintra","hasAudioNarration":false,"actualSubdomain":"kintra","customDomains":["docs.kintra.io"],"gitSource":{"type":"github","owner":"marco-pellar","repo":"kintra-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6a82feba3ea465de84fb99ea","collectionId":"93576bd7-eee2-4565-b6b0-ced101e57af4","liveDeploymentHistoryId":"6a82feba3ea465de84fb99ea","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a82feba3ea465de84fb99ea:success","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API reference","count":94},{"language":"default","tag":"Portal API","count":59},{"language":"default","tag":"Gateway API","count":34},{"language":"default","tag":"Customers","count":24},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Rewards","count":11},{"language":"default","tag":"Tiers","count":11},{"language":"default","tag":"Analytics","count":10},{"language":"default","tag":"Cohorts","count":7},{"language":"default","tag":"Concepts","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--kintra-code-bg:#0e0e0e;--kintra-code-surface:rgba(255, 255, 255, 0.04);--kintra-code-stroke:rgba(255, 255, 255, 0.08)}pre{background-color:var(--kintra-code-bg);border:1px solid var(--kintra-code-stroke);border-radius:12px}pre code{background-color:transparent;border:0}:not(pre)>code{background-color:var(--kintra-code-surface);border:1px solid var(--kintra-code-stroke);border-radius:6px}"}],"page":{"pagePath":"api-reference/portal/cohorts/preview-a-cohort-rule","slug":"/api-reference/portal/cohorts/preview-a-cohort-rule","pageMetadata":{"title":"Preview a cohort rule","description":"Runs a `rules` document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response `data` carries `count` and a `sample` of matching customers. A rule document the API cannot read returns 422.","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/cohorts/preview","href":"/api-reference/portal/cohorts/preview-a-cohort-rule","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Runs a \", _jsx(_components.code, {\n children: \"rules\"\n }), \" document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response \", _jsx(_components.code, {\n children: \"data\"\n }), \" carries \", _jsx(_components.code, {\n children: \"count\"\n }), \" and a \", _jsx(_components.code, {\n children: \"sample\"\n }), \" of matching customers. A rule document the API cannot read returns 422.\"]\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":{"config":{},"pageMetadata":{"title":"Preview a cohort rule","description":"Runs a `rules` document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response `data` carries `count` and a `sample` of matching customers. A rule document the API cannot read returns 422.","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/cohorts/preview","href":"/api-reference/portal/cohorts/preview-a-cohort-rule","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Runs a `rules` document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response `data` carries `count` and a `sample` of matching customers. A rule document the API cannot read returns 422.","operationId":"PreviewCohort","parameters":["0a5b7d07-2d44-480c-b634-56f0887c856c"],"requestBody":"a6ea518c-20a8-4490-afc3-839662876bc5","responses":{"200":"d8f40604-5192-41d2-b12b-e8f73009c9ad","401":"e86a7af7-537c-4d0f-8e0d-924f5fa967bf","403":"185609c9-74fc-4091-b589-d85724b26652","404":"dae379fb-38a9-4529-8543-71ab208707dd","422":"91613b61-4619-45a6-a78f-d384d7861e4a","500":"b980cebe-a99b-4883-8752-49b4ed24c5ba"},"security":["e5db9fb3-bc31-4144-8b82-d29331c792ad"],"summary":"Preview a cohort rule","tags":["Cohorts"],"method":"post","type":"path","servers":["c7994b38-815b-4b25-8e96-5ea947f31382"],"path":"/tenant/{tenantId}/cohorts/preview","baseUrlOptions":["https://api.kintra.io/api/v1"],"title":"Preview a cohort rule","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.rules.operator":"and","body.rules.predicates.items.0.key":"\u003cstring>","body.rules.predicates.items.0.op":"\u003cstring>","body.rules.predicates.items.0.type":"attribute","body.rules.predicates.items.0.value.oneOf.0":"\u003cstring>","body.rules.version":1}]},"dependencies":{"parameters":{"0a5b7d07-2d44-480c-b634-56f0887c856c":{"in":"path","name":"tenantId","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"properties":{"rules":{"additionalProperties":false,"description":"TSOA-friendly rule document DTO. Cast to CohortRuleDocument at service boundary.","properties":{"operator":{"enum":["and"],"nullable":false,"type":"string","isRequired":true,"uniqueKey":"rules.operator","typeLabel":"enum\u003cstring>"},"predicates":{"items":{"additionalProperties":false,"description":"TSOA-friendly predicate DTO (no tuple types — TSOA rejects TypeScript tuples).","properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].key","typeLabel":"string"},"op":{"type":"string","isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].op","typeLabel":"string"},"type":{"enum":["attribute"],"nullable":false,"type":"string","isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.2.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.2.items.[INDEX].oneOf.1","typeLabel":"number\u003cdouble>"}],"uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string | number\u003cdouble>"},"isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].value.oneOf.2","typeLabel":"(string | number\u003cdouble>)[]"}],"isRequired":true,"uniqueKey":"rules.predicates.items.[INDEX].value","typeLabel":"string | number\u003cdouble> | (string | number\u003cdouble>)[]"}},"required":["type","key","op","value"],"type":"object","uniqueKey":"rules.predicates.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"rules.predicates","typeLabel":"object[]"},"version":{"enum":[1],"nullable":false,"type":"number","isRequired":true,"uniqueKey":"rules.version","typeLabel":"enum\u003cnumber>"}},"required":["version","operator","predicates"],"type":"object","isRequired":true,"uniqueKey":"rules","typeLabel":"object"}},"required":["rules"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"rules":{"operator":"and","predicates":[{"key":"\u003cstring>","op":"\u003cstring>","type":"attribute","value":"\u003cstring>"}],"version":1}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"d8f40604-5192-41d2-b12b-e8f73009c9ad":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"additionalProperties":false,"properties":{"count":{"format":"double","type":"number","isRequired":true,"uniqueKey":"data.count","typeLabel":"number\u003cdouble>"},"sample":{"items":{"additionalProperties":false,"properties":{"user":{"type":"object","required":["id","username","email","auth_provider","auth_provider_id","status","onboarding_status"],"properties":{"auth_provider":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.auth_provider","typeLabel":"string"},"auth_provider_id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.auth_provider_id","typeLabel":"string"},"email":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.email","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.id","typeLabel":"string"},"onboarding_status":{"oneOf":[{"type":"string","enum":["initial","registered","active"],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.onboarding_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.onboarding_status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.onboarding_status","typeLabel":"enum\u003cstring> | string"},"status":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.status","typeLabel":"string"},"username":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.username","typeLabel":"string"},"created_at":{"oneOf":[{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","uniqueKey":"data.sample.items.[INDEX].user.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.created_at","typeLabel":"string\u003cdate-time> | null"},"date_of_birth":{"oneOf":[{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.date_of_birth.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","uniqueKey":"data.sample.items.[INDEX].user.date_of_birth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.date_of_birth","typeLabel":"string\u003cdate-time> | null"},"first_name":{"oneOf":[{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.first_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.first_name","typeLabel":"string | null"},"internal_wallets":{"items":{"additionalProperties":false,"properties":{"address":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].address","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].id","typeLabel":"string"},"user_id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].user_id","typeLabel":"string"},"wallet_kind":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].wallet_kind","typeLabel":"string"},"created_at":{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"deleted_at":{"oneOf":[{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].deleted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].deleted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].deleted_at","typeLabel":"string\u003cdate-time> | null"},"label":{"oneOf":[{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].label.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].label","typeLabel":"string | null"},"updated_at":{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"}},"required":["id","address","wallet_kind","user_id"],"type":"object","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.sample.items.[INDEX].user.internal_wallets","typeLabel":"object[]"},"last_name":{"oneOf":[{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.last_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.last_name","typeLabel":"string | null"},"onboarding_type":{"oneOf":[{"type":"string","enum":["admin","tenant","user"],"uniqueKey":"data.sample.items.[INDEX].user.onboarding_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.onboarding_type.oneOf.1","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.onboarding_type.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.onboarding_type","typeLabel":"enum\u003cstring> | string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.phone","typeLabel":"string | null"},"updated_at":{"oneOf":[{"format":"date-time","type":"string","uniqueKey":"data.sample.items.[INDEX].user.updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"format":"date-time","type":"null","uniqueKey":"data.sample.items.[INDEX].user.updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.updated_at","typeLabel":"string\u003cdate-time> | null"},"clubs":{"oneOf":[{"items":{"additionalProperties":false,"description":"JSON response for a row in `core.clubs`.","properties":{"country_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].country_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].country_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].country_id","typeLabel":"string | null"},"icon_url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].icon_url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].icon_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].icon_url","typeLabel":"string | null"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].name","typeLabel":"string"},"slug":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].slug","typeLabel":"string"},"sport_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].sport_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].sport_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].sport_id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"Lifecycle status for reference rows in `core.clubs`.","enum":["active","inactive"],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX].status","typeLabel":"enum\u003cstring> | string"}},"required":["id","name","slug","sport_id","country_id","icon_url","status"],"type":"object","uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"description":"JSON response for a row in `core.clubs`.","properties":{"country_id":{"oneOf":[{"type":"string"},{"type":"null"}]},"icon_url":{"oneOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"sport_id":{"oneOf":[{"type":"string"},{"type":"null"}]},"status":{"oneOf":[{"type":"string","description":"Lifecycle status for reference rows in `core.clubs`.","enum":["active","inactive"]},{"type":"string"}]}},"required":["id","name","slug","sport_id","country_id","icon_url","status"],"type":"object"},"type":"null","uniqueKey":"data.sample.items.[INDEX].user.clubs.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.clubs","typeLabel":"object[] | null"},"cohort_metadata":{"oneOf":[{"type":"object","description":"Construct a type with a set of properties K of type T","properties":{},"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.sample.items.[INDEX].user.cohort_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"uniqueKey":"data.sample.items.[INDEX].user.cohort_metadata.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.cohort_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.cohort_metadata","typeLabel":"object | null"},"country":{"oneOf":[{"type":"object","description":"JSON response for a row in `core.countries`.","required":["id","name","code","icon_url","status"],"properties":{"code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.code","typeLabel":"string | null"},"icon_url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.icon_url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.icon_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.icon_url","typeLabel":"string | null"},"id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.name","typeLabel":"string"},"status":{"oneOf":[{"type":"string","description":"Lifecycle status for reference rows in `core.countries`.","enum":["active","inactive"],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0.status","typeLabel":"enum\u003cstring> | string"}},"additionalProperties":false,"uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.country","typeLabel":"object | null"},"xp_status":{"oneOf":[{"type":"string","enum":["active","locked"],"uniqueKey":"data.sample.items.[INDEX].user.xp_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"data.sample.items.[INDEX].user.xp_status.oneOf.1","typeLabel":"string"},{"type":"null","uniqueKey":"data.sample.items.[INDEX].user.xp_status.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.sample.items.[INDEX].user.xp_status","typeLabel":"enum\u003cstring> | string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.sample.items.[INDEX].user","typeLabel":"object"},"tenant":{"description":"Current tenant label; present for authenticated customer profile reads.","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].tenant.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].tenant.name","typeLabel":"string"},"slug":{"type":"string","isRequired":true,"uniqueKey":"data.sample.items.[INDEX].tenant.slug","typeLabel":"string"}},"required":["slug","name","id"],"type":"object","uniqueKey":"data.sample.items.[INDEX].tenant","typeLabel":"object"}},"required":["user"],"type":"object","uniqueKey":"data.sample.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"data.sample","typeLabel":"object[]"}},"required":["count","sample"],"type":"object","uniqueKey":"data","typeLabel":"object"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"count":123,"sample":[{"user":{"auth_provider":"\u003cstring>","auth_provider_id":"\u003cstring>","email":"\u003cstring>","id":"\u003cstring>","onboarding_status":"initial","status":"\u003cstring>","username":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","date_of_birth":"2023-11-07T05:31:56Z","first_name":"\u003cstring>","internal_wallets":[{"address":"\u003cstring>","id":"\u003cstring>","user_id":"\u003cstring>","wallet_kind":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","deleted_at":"2023-11-07T05:31:56Z","label":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z"}],"last_name":"\u003cstring>","onboarding_type":"admin","phone":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","clubs":[{"country_id":"\u003cstring>","icon_url":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>","sport_id":"\u003cstring>","status":"active"}],"cohort_metadata":{},"country":{"code":"\u003cstring>","icon_url":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>","status":"active"},"xp_status":"active"},"tenant":{"id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>"}}]},"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"e86a7af7-537c-4d0f-8e0d-924f5fa967bf":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"oneOf":[{"enum":[null],"type":"number","uniqueKey":"data.oneOf.0","typeLabel":"enum\u003cnumber>"},{"enum":[null],"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"enum\u003cnumber> | null"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":null,"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Unauthorized","exampleType":"generated"},"185609c9-74fc-4091-b589-d85724b26652":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"oneOf":[{"enum":[null],"type":"number","uniqueKey":"data.oneOf.0","typeLabel":"enum\u003cnumber>"},{"enum":[null],"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"enum\u003cnumber> | null"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":null,"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Feature disabled or insufficient permissions","exampleType":"generated"},"dae379fb-38a9-4529-8543-71ab208707dd":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"oneOf":[{"enum":[null],"type":"number","uniqueKey":"data.oneOf.0","typeLabel":"enum\u003cnumber>"},{"enum":[null],"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"enum\u003cnumber> | null"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":null,"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Tenant not found","exampleType":"generated"},"91613b61-4619-45a6-a78f-d384d7861e4a":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"oneOf":[{"enum":[null],"type":"number","uniqueKey":"data.oneOf.0","typeLabel":"enum\u003cnumber>"},{"enum":[null],"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"enum\u003cnumber> | null"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":null,"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Invalid rule set","exampleType":"generated"},"b980cebe-a99b-4883-8752-49b4ed24c5ba":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"oneOf":[{"enum":[null],"type":"number","uniqueKey":"data.oneOf.0","typeLabel":"enum\u003cnumber>"},{"enum":[null],"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"enum\u003cnumber> | null"},"errors":{"items":{"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"}},"required":["path","message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"required":["success"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":null,"errors":[{"message":"\u003cstring>","path":"\u003cstring>"}],"message":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Internal server error","exampleType":"generated"}},"security":{"e5db9fb3-bc31-4144-8b82-d29331c792ad":{"auth0_jwt":{"bearerFormat":"JWT","description":"Auth0 access token","scheme":"bearer","type":"http","scopes":[]}}},"servers":{"c7994b38-815b-4b25-8e96-5ea947f31382":{"description":"Production environment","url":"https://api.kintra.io/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","description":"Auth0 access token","scheme":"bearer","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Auth0 access token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"auth0_jwt","name":"Authorization"}],"title":"auth0_jwt"}]},"originalFileLocation":"openapi/kintra-app.json"},"subdomain":"kintra","siteName":"KINTRA","title":"Preview a cohort rule - KINTRA","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-17T12:30:02.913Z","originalFileLocation":"api-reference/portal/cohorts/preview-a-cohort-rule.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.\">\u003cmeta data-mint-head name=\"application-name\" content=\"KINTRA\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_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/kintra/ZtFEHcUbLmdYiJ-1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Preview a cohort rule - KINTRA\">\u003cmeta data-mint-head property=\"og:description\" content=\"Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"KINTRA\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kintra.mintlify.app/_mintlify/api/og/v2?division=Cohorts\u0026amp;title=Preview+a+cohort+rule\u0026amp;description=Runs+a+%60rules%60+document+without+saving+it+and+reports+what+it+would+select%2C+which+is+how+you+check+a+rule+before+creating+or+updating+a+cohort.+The+response+%60da\u0026amp;theme=7168baa81e08787f570d323b\u0026amp;signature=7e422013daa2f0444afcd1b29b48e38c0a6ced775021b09d2980e8bebbef1211\">\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=\"Preview a cohort rule - KINTRA\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kintra.mintlify.app/_mintlify/api/og/v2?division=Cohorts\u0026amp;title=Preview+a+cohort+rule\u0026amp;description=Runs+a+%60rules%60+document+without+saving+it+and+reports+what+it+would+select%2C+which+is+how+you+check+a+rule+before+creating+or+updating+a+cohort.+The+response+%60da\u0026amp;theme=7168baa81e08787f570d323b\u0026amp;signature=7e422013daa2f0444afcd1b29b48e38c0a6ced775021b09d2980e8bebbef1211\">\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/kintra/ZtFEHcUbLmdYiJ-1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"KINTRA\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#35cbff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/portal/cohorts/preview-a-cohort-rule.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kintra.io/#organization\",\"name\":\"KINTRA\",\"url\":\"https://docs.kintra.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kintra/aV869_4X610yKJzW/logo/light.png?fit=max\u0026auto=format\u0026n=aV869_4X610yKJzW\u0026q=85\u0026s=d55bc842096a5d67e57c9ab099d58762\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kintra.io#website\",\"name\":\"KINTRA\",\"url\":\"https://docs.kintra.io\",\"publisher\":{\"@id\":\"https://docs.kintra.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule#webpage\",\"url\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule\",\"name\":\"Preview a cohort rule\",\"description\":\"Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.\",\"dateModified\":\"2026-08-17T12:30:02.913Z\",\"isPartOf\":{\"@id\":\"https://docs.kintra.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portal API\",\"item\":\"https://docs.kintra.io/api-reference/portal/service/get-service-information\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cohorts\",\"item\":\"https://docs.kintra.io/api-reference/portal/cohorts/list-cohorts\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Preview a cohort rule\",\"item\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule#apireference\",\"headline\":\"Preview a cohort rule\",\"name\":\"Preview a cohort rule\",\"description\":\"Runs a rules document without saving it and reports what it would select, which is how you check a rule before creating or updating a cohort. The response data carries count and a sample of matching customers. A rule document the API cannot read returns 422.\",\"url\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kintra.io/api-reference/portal/cohorts/preview-a-cohort-rule#webpage\"},\"dateModified\":\"2026-08-17T12:30:02.913Z\",\"publisher\":{\"@id\":\"https://docs.kintra.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kintra.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"KINTRA\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"KINTRA","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/overview"}]},{"group":"Portal API","pages":[{"group":"Service","pages":[{"title":"Get service information","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /info","href":"/api-reference/portal/service/get-service-information"}]},{"group":"Reference data","pages":[{"title":"Get reference data","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /system/masterdata","href":"/api-reference/portal/reference-data/get-reference-data"}]},{"group":"Analytics","pages":[{"title":"Get an internal transaction timeline","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/analytics/internal-transactions/timeline","href":"/api-reference/portal/analytics/get-an-internal-transaction-timeline"},{"title":"Get an analytics summary","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/analytics/summary","href":"/api-reference/portal/analytics/get-an-analytics-summary"},{"title":"List top clubs by membership","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/analytics/top-clubs","href":"/api-reference/portal/analytics/list-top-clubs-by-membership"},{"title":"List top countries by customer count","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/analytics/top-countries","href":"/api-reference/portal/analytics/list-top-countries-by-customer-count"},{"title":"List top rewards by redemptions","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/analytics/top-rewards","href":"/api-reference/portal/analytics/list-top-rewards-by-redemptions"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/api-keys","href":"/api-reference/portal/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/api-keys","href":"/api-reference/portal/api-keys/create-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/api-keys/{id}","href":"/api-reference/portal/api-keys/revoke-an-api-key"}]},{"group":"Attributes","pages":[{"title":"List attribute definitions","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/attributes","href":"/api-reference/portal/attributes/list-attribute-definitions"},{"title":"Create an attribute definition","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/attributes","href":"/api-reference/portal/attributes/create-an-attribute-definition"},{"title":"Delete an attribute definition","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/attributes/{attributeId}","href":"/api-reference/portal/attributes/delete-an-attribute-definition"},{"title":"Rename an attribute definition","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json patch /tenant/{tenantId}/attributes/{attributeId}","href":"/api-reference/portal/attributes/rename-an-attribute-definition"},{"title":"Restore a deleted attribute definition","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/attributes/{attributeId}/restore","href":"/api-reference/portal/attributes/restore-a-deleted-attribute-definition"}]},{"group":"Cohorts","pages":[{"title":"List cohorts","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/cohorts","href":"/api-reference/portal/cohorts/list-cohorts"},{"title":"Create a cohort","description":"Creates a cohort, a saved rule that selects customers by their attribute values. `name` and `rules` are required and `description` is optional. The response `data` carries the new `id`. A `name` already in use returns 409, and a rule document the API cannot read returns 422.","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/cohorts","href":"/api-reference/portal/cohorts/create-a-cohort"},{"title":"Preview a cohort rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/cohorts/preview","href":"/api-reference/portal/cohorts/preview-a-cohort-rule"},{"title":"Get a cohort","description":"Returns one cohort with its `name`, `description`, `rules`, current `member_count` and `dead_keys`, the attribute keys its rules name that no longer exist. Returns 404 when no cohort with that id belongs to your tenant.","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/cohorts/{cohortId}","href":"/api-reference/portal/cohorts/get-a-cohort"},{"title":"Delete a cohort","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/cohorts/{cohortId}","href":"/api-reference/portal/cohorts/delete-a-cohort"},{"title":"Update a cohort","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json patch /tenant/{tenantId}/cohorts/{cohortId}","href":"/api-reference/portal/cohorts/update-a-cohort"},{"title":"List cohort members","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/cohorts/{cohortId}/members","href":"/api-reference/portal/cohorts/list-cohort-members"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers","href":"/api-reference/portal/customers/list-customers"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/customers","href":"/api-reference/portal/customers/create-a-customer"},{"title":"Get a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{customer_id}","href":"/api-reference/portal/customers/get-a-customer"},{"title":"Add a customer to a club","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/customers/{customer_id}/clubs","href":"/api-reference/portal/customers/add-a-customer-to-a-club"},{"title":"Remove a customer from a club","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/customers/{customer_id}/clubs/{club_id}","href":"/api-reference/portal/customers/remove-a-customer-from-a-club"},{"title":"Set a customer country","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json put /tenant/{tenantId}/customers/{customer_id}/country","href":"/api-reference/portal/customers/set-a-customer-country"},{"title":"Update a customer status","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json patch /tenant/{tenantId}/customers/{userId}","href":"/api-reference/portal/customers/update-a-customer-status"},{"title":"List customer asset balances","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{userId}/balances","href":"/api-reference/portal/customers/list-customer-asset-balances"},{"title":"Check customer tier eligibility","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{userId}/tier/{tierId}/eligibility","href":"/api-reference/portal/customers/check-customer-tier-eligibility"},{"title":"List customer transactions","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{userId}/transactions","href":"/api-reference/portal/customers/list-customer-transactions"},{"title":"Get a customer XP balance","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{userId}/xp/balance","href":"/api-reference/portal/customers/get-a-customer-xp-balance"},{"title":"Lock or unlock a customer XP balance","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json put /tenant/{tenantId}/customers/{userId}/xp/lock","href":"/api-reference/portal/customers/lock-or-unlock-a-customer-xp-balance"}]},{"group":"Customer attributes","pages":[{"title":"List attribute values for a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/customers/{customer_id}/attributes","href":"/api-reference/portal/customer-attributes/list-attribute-values-for-a-customer"},{"title":"Set attribute values for a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json put /tenant/{tenantId}/customers/{customer_id}/attributes","href":"/api-reference/portal/customer-attributes/set-attribute-values-for-a-customer"}]},{"group":"Internal transactions","pages":[{"title":"List internal transactions","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/internal-transactions","href":"/api-reference/portal/internal-transactions/list-internal-transactions"},{"title":"Get an internal transaction","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/internal-transactions/{internal_transaction_id}","href":"/api-reference/portal/internal-transactions/get-an-internal-transaction"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/members","href":"/api-reference/portal/members/list-members"},{"title":"Add a member","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/members","href":"/api-reference/portal/members/add-a-member"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/members/{userId}","href":"/api-reference/portal/members/remove-a-member"}]},{"group":"Onchain assets","pages":[{"title":"List onchain assets","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/onchain-assets","href":"/api-reference/portal/onchain-assets/list-onchain-assets"}]},{"group":"Redemptions","pages":[{"title":"List redemptions","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/redemptions","href":"/api-reference/portal/redemptions/list-redemptions"},{"title":"Get a redemption","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/redemptions/{redemption_id}","href":"/api-reference/portal/redemptions/get-a-redemption"}]},{"group":"Rewards","pages":[{"title":"List rewards","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/rewards","href":"/api-reference/portal/rewards/list-rewards"},{"title":"Create a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/rewards","href":"/api-reference/portal/rewards/create-a-reward"},{"title":"Create a reward image upload URL","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/rewards/image/presigned","href":"/api-reference/portal/rewards/create-a-reward-image-upload-url"},{"title":"Get a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/rewards/{rewardId}","href":"/api-reference/portal/rewards/get-a-reward"},{"title":"Update a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json put /tenant/{tenantId}/rewards/{rewardId}","href":"/api-reference/portal/rewards/update-a-reward"},{"title":"Delete a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/rewards/{rewardId}","href":"/api-reference/portal/rewards/delete-a-reward"}]},{"group":"Tiers","pages":[{"title":"List tier rules","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/tiers","href":"/api-reference/portal/tiers/list-tier-rules"},{"title":"Create a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/tiers","href":"/api-reference/portal/tiers/create-a-tier-rule"},{"title":"Get a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/tiers/{tierId}","href":"/api-reference/portal/tiers/get-a-tier-rule"},{"title":"Update a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json put /tenant/{tenantId}/tiers/{tierId}","href":"/api-reference/portal/tiers/update-a-tier-rule"},{"title":"Delete a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json delete /tenant/{tenantId}/tiers/{tierId}","href":"/api-reference/portal/tiers/delete-a-tier-rule"},{"title":"Get a tier member count","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /tenant/{tenantId}/tiers/{tierId}/member-count","href":"/api-reference/portal/tiers/get-a-tier-member-count"}]},{"group":"XP","pages":[{"title":"Award XP to a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/xp/earn","href":"/api-reference/portal/xp/award-xp-to-a-customer"},{"title":"Redeem a reward for a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json post /tenant/{tenantId}/xp/redeem","href":"/api-reference/portal/xp/redeem-a-reward-for-a-customer"}]},{"group":"Account","pages":[{"title":"Get the signed-in account","deprecated":null,"version":null,"openapi":"/openapi/kintra-app.json get /user/me","href":"/api-reference/portal/account/get-the-signed-in-account"}]}]},{"group":"Gateway API","pages":[{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers","href":"/api-reference/gateway/customers/list-customers"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/customers","href":"/api-reference/gateway/customers/create-a-customer"},{"title":"Get a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/{customer_id}","href":"/api-reference/gateway/customers/get-a-customer"},{"title":"Update a customer status","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json patch /gateway/customers/{userId}","href":"/api-reference/gateway/customers/update-a-customer-status"},{"title":"List customer asset balances","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/{userId}/balances","href":"/api-reference/gateway/customers/list-customer-asset-balances"},{"title":"Add a customer to a club","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/customers/{userId}/clubs","href":"/api-reference/gateway/customers/add-a-customer-to-a-club"},{"title":"Remove a customer from a club","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json delete /gateway/customers/{userId}/clubs/{club_id}","href":"/api-reference/gateway/customers/remove-a-customer-from-a-club"},{"title":"Set a customer country","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json put /gateway/customers/{userId}/country","href":"/api-reference/gateway/customers/set-a-customer-country"},{"title":"Check customer tier eligibility","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/{userId}/tier/{tierId}/eligibility","href":"/api-reference/gateway/customers/check-customer-tier-eligibility"},{"title":"List customer transactions","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/{userId}/transactions","href":"/api-reference/gateway/customers/list-customer-transactions"},{"title":"Get a customer XP balance","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/{userId}/xp/balance","href":"/api-reference/gateway/customers/get-a-customer-xp-balance"},{"title":"Lock or unlock a customer XP balance","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json put /gateway/customers/{userId}/xp/lock","href":"/api-reference/gateway/customers/lock-or-unlock-a-customer-xp-balance"}]},{"group":"Analytics","pages":[{"title":"Get an internal transaction timeline","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/analytics/internal-transactions/timeline","href":"/api-reference/gateway/analytics/get-an-internal-transaction-timeline"},{"title":"Get an analytics summary","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/analytics/summary","href":"/api-reference/gateway/analytics/get-an-analytics-summary"},{"title":"List top clubs by membership","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/analytics/top-clubs","href":"/api-reference/gateway/analytics/list-top-clubs-by-membership"},{"title":"List top countries by customer count","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/analytics/top-countries","href":"/api-reference/gateway/analytics/list-top-countries-by-customer-count"},{"title":"List top rewards by redemptions","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/customers/analytics/top-rewards","href":"/api-reference/gateway/analytics/list-top-rewards-by-redemptions"}]},{"group":"Internal transactions","pages":[{"title":"List internal transactions","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/internal-transactions","href":"/api-reference/gateway/internal-transactions/list-internal-transactions"},{"title":"Get an internal transaction","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/internal-transactions/{internal_transaction_id}","href":"/api-reference/gateway/internal-transactions/get-an-internal-transaction"}]},{"group":"Onchain assets","pages":[{"title":"List onchain assets","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/onchain-assets","href":"/api-reference/gateway/onchain-assets/list-onchain-assets"}]},{"group":"Redemptions","pages":[{"title":"List redemptions","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/redemptions","href":"/api-reference/gateway/redemptions/list-redemptions"},{"title":"Get a redemption","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/redemptions/{redemption_id}","href":"/api-reference/gateway/redemptions/get-a-redemption"}]},{"group":"Rewards","pages":[{"title":"List rewards","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/rewards","href":"/api-reference/gateway/rewards/list-rewards"},{"title":"Create a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/rewards","href":"/api-reference/gateway/rewards/create-a-reward"},{"title":"Get a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/rewards/{rewardId}","href":"/api-reference/gateway/rewards/get-a-reward"},{"title":"Update a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json put /gateway/rewards/{rewardId}","href":"/api-reference/gateway/rewards/update-a-reward"},{"title":"Delete a reward","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json delete /gateway/rewards/{rewardId}","href":"/api-reference/gateway/rewards/delete-a-reward"}]},{"group":"Tiers","pages":[{"title":"List tier rules","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/tiers","href":"/api-reference/gateway/tiers/list-tier-rules"},{"title":"Create a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/tiers","href":"/api-reference/gateway/tiers/create-a-tier-rule"},{"title":"Get a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json get /gateway/tiers/{tierId}","href":"/api-reference/gateway/tiers/get-a-tier-rule"},{"title":"Update a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json put /gateway/tiers/{tierId}","href":"/api-reference/gateway/tiers/update-a-tier-rule"},{"title":"Delete a tier rule","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json delete /gateway/tiers/{tierId}","href":"/api-reference/gateway/tiers/delete-a-tier-rule"}]},{"group":"XP","pages":[{"title":"Award XP to a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/xp/earn","href":"/api-reference/gateway/xp/award-xp-to-a-customer"},{"title":"Redeem a reward for a customer","deprecated":null,"version":null,"openapi":"/openapi/kintra-gateway.json post /gateway/xp/redeem","href":"/api-reference/gateway/xp/redeem-a-reward-for-a-customer"}]}]}]}]},"title":"Preview a cohort rule - KINTRA","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}