Retained legacy exception: Persist a saved segment; V3 reads/evaluation do not create one.
Create Custom Segment (Available in Pro/Business plan). POST /{tenantId}/api/v1/createCustomSegment.
Filter conditions can use filterType: 0 for contact attributes, 1 for profile signals, or 3 for Shopify events. For Shopify events, supply a supported eventType; use a numeric operator code when comparing an event parameter. eventPresence is done (default) or not_done, and timeWindowDays limits events to the last N days. An event-only condition can omit the parameter path and comparison value. Operator 104 (Between) requires value and secondValue. Shopify event availability and matching depend on account configuration and event data; successful creation does not guarantee that any contacts match.
Permissions
For API access tokens and OIDC tokens, satisfy at least one of: api, wati_integration:write. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body. Allowed roles: DEVELOPER, ADMINISTRATOR, EXTERNAL_ADMINISTRATOR, PARTNER_ADMINISTRATOR, AI_OPERATOR, or API_TOKEN. FLEXI_TRIAL and FLEXI_PAID are denied. Billing-related restrictions can also block access.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
403Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope.

