Preview Cohort Predicate
POST /v2/partner/cohorts/preview
Required scopes
partner:cohorts:execute
Tokens missing any required scope return 401 scope_missing.
See Auth & Scopes for issuance.
Operation
| Operation ID | previewCohortPredicate |
| Tags | Audience |
Request body
Required
object
| Field | Type | Description |
|---|---|---|
| predicate * | object | Typed predicate AST. Full schema lives in `RFC-cohort-dsl.md`. This OpenAPI schema admits any JSON object; the runtime validates against the DSL grammar. |
Responses
200
OK
object
| Field | Type | Description |
|---|---|---|
| predicate_hash * | string | |
| total * | integer | |
| sample * | items[] | |
| computed_at * | updated_at | RFC 3339 / ISO 8601 timestamp. |
| cost * | object |
Example request
POST https://api.digitalonboarding.com/v2/partner/cohorts/preview
Authorization: Bearer <partner-token>
Content-Type: application/json
Idempotency-Key: <uuid-v4>
{ /* request body matching schema above */ }