Generate Audience Rule
Changed onUses an LLM to turn a natural-language prompt into a structured audience targeting rule (RuleConditions AST). The suggestion is returned for the caller to review and save; it is not persisted by this endpoint. Requires campaigns:write scope.
Request
- Base URLhttps://api.superwall.com
- URLhttps://api.superwall.com/v2/campaigns/{id}/audiences/{audience_id}/generate-rule
- Auth
- HTTP bearer
- or API key in cookie accounts_superwall_token
- or HTTP bearer
Path parameters
Request body
Response
AI-generated audience targeting rule
Example response
{
"rule_conditions": {
"operator": "and",
"conditions": [
{
"type": "condition",
"lhs": {
"type": "property",
"value": "device.appVersion"
},
"operator": "gte",
"rhs": {
"type": "string",
"value": "1.2.3"
}
}
]
}
}Changes
- warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - warning
added the new
credentials_missingenum value to the/response property for the response status - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5to the response bodyanyOflist for the response status - info
removed
subschema #1subschema #2subschema #3subschema #4subschema #5from the response bodyanyOflist for the response status
- warning
- breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromnumberto no type for status - breaking
the
//////response's property type changed fromstringto no type for status - breaking
the
//////response's property type changed fromstringto no type for status - breaking
the
/response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5to the response bodyanyOflist for the response status - info
added
subschema #2to the response bodyanyOflist for the response status - info
removed
subschema #1: Missing API Keysubschema #2: Invalid API Key Formatsubschema #3: Invalid API Keysubschema #4: Authentication Failedsubschema #5: Invalid Sessionfrom the response bodyanyOflist for the response status - info
removed
subschema #2: Bad Requestfrom the response bodyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to the//////response propertyanyOflist for the response status - info
added
subschema #1to the//////response propertyanyOflist for the response status - info
added
subschema #1to the/response propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
added
subschema #1to theresponse propertyanyOflist for the response status - info
removed the
api_errorenum value from theresponse property for the response status - info
removed the
api_errorenum value from theresponse property for the response status - info
removed the
api_errorenum value from theresponse property for the response status - info
removed the
api_errorenum value from theresponse property for the response status - info
removed the
authentication_errorenum value from theresponse property for the response status - info
removed the
authentication_errorenum value from theresponse property for the response status - info
removed the
authentication_errorenum value from theresponse property for the response status - info
removed the
authentication_errorenum value from theresponse property for the response status - info
removed the
authentication_failedenum value from theresponse property for the response status - info
removed the
authentication_failedenum value from theresponse property for the response status - info
removed the
authentication_failedenum value from theresponse property for the response status - info
removed the
authentication_failedenum value from theresponse property for the response status - info
removed the
idempotency_key_in_useenum value from theresponse property for the response status - info
removed the
idempotency_key_in_useenum value from theresponse property for the response status - info
removed the
idempotency_key_in_useenum value from theresponse property for the response status - info
removed the
idempotency_key_in_useenum value from theresponse property for the response status - info
removed the
insufficient_permissionsenum value from theresponse property for the response status - info
removed the
insufficient_permissionsenum value from theresponse property for the response status - info
removed the
insufficient_permissionsenum value from theresponse property for the response status - info
removed the
insufficient_permissionsenum value from theresponse property for the response status - info
removed the
internal_errorenum value from theresponse property for the response status - info
removed the
internal_errorenum value from theresponse property for the response status - info
removed the
internal_errorenum value from theresponse property for the response status - info
removed the
internal_errorenum value from theresponse property for the response status - info
removed the
invalid_api_keyenum value from theresponse property for the response status - info
removed the
invalid_api_keyenum value from theresponse property for the response status - info
removed the
invalid_api_keyenum value from theresponse property for the response status - info
removed the
invalid_api_keyenum value from theresponse property for the response status - info
removed the
invalid_api_key_formatenum value from theresponse property for the response status - info
removed the
invalid_api_key_formatenum value from theresponse property for the response status - info
removed the
invalid_api_key_formatenum value from theresponse property for the response status - info
removed the
invalid_api_key_formatenum value from theresponse property for the response status - info
removed the
invalid_referenceenum value from theresponse property for the response status - info
removed the
invalid_referenceenum value from theresponse property for the response status - info
removed the
invalid_referenceenum value from theresponse property for the response status - info
removed the
invalid_referenceenum value from theresponse property for the response status - info
removed the
invalid_request_errorenum value from theresponse property for the response status - info
removed the
invalid_request_errorenum value from theresponse property for the response status - info
removed the
invalid_request_errorenum value from theresponse property for the response status - info
removed the
invalid_request_errorenum value from theresponse property for the response status - info
removed the
invalid_sessionenum value from theresponse property for the response status - info
removed the
invalid_sessionenum value from theresponse property for the response status - info
removed the
invalid_sessionenum value from theresponse property for the response status - info
removed the
invalid_sessionenum value from theresponse property for the response status - info
removed the
missing_api_keyenum value from theresponse property for the response status - info
removed the
missing_api_keyenum value from theresponse property for the response status - info
removed the
missing_api_keyenum value from theresponse property for the response status - info
removed the
missing_api_keyenum value from theresponse property for the response status - info
removed the
organization_requiredenum value from theresponse property for the response status - info
removed the
organization_requiredenum value from theresponse property for the response status - info
removed the
organization_requiredenum value from theresponse property for the response status - info
removed the
organization_requiredenum value from theresponse property for the response status - info
removed the
parameter_invalidenum value from theresponse property for the response status - info
removed the
parameter_invalidenum value from theresponse property for the response status - info
removed the
parameter_invalidenum value from theresponse property for the response status - info
removed the
parameter_invalidenum value from theresponse property for the response status - info
removed the
parameter_missingenum value from theresponse property for the response status - info
removed the
parameter_missingenum value from theresponse property for the response status - info
removed the
parameter_missingenum value from theresponse property for the response status - info
removed the
parameter_missingenum value from theresponse property for the response status - info
removed the
parameter_unknownenum value from theresponse property for the response status - info
removed the
parameter_unknownenum value from theresponse property for the response status - info
removed the
parameter_unknownenum value from theresponse property for the response status - info
removed the
parameter_unknownenum value from theresponse property for the response status - info
removed the
permission_errorenum value from theresponse property for the response status - info
removed the
permission_errorenum value from theresponse property for the response status - info
removed the
permission_errorenum value from theresponse property for the response status - info
removed the
permission_errorenum value from theresponse property for the response status - info
removed the
rate_limit_errorenum value from theresponse property for the response status - info
removed the
rate_limit_errorenum value from theresponse property for the response status - info
removed the
rate_limit_errorenum value from theresponse property for the response status - info
removed the
rate_limit_errorenum value from theresponse property for the response status - info
removed the
rate_limit_exceededenum value from theresponse property for the response status - info
removed the
rate_limit_exceededenum value from theresponse property for the response status - info
removed the
rate_limit_exceededenum value from theresponse property for the response status - info
removed the
rate_limit_exceededenum value from theresponse property for the response status - info
removed the
resource_already_existsenum value from theresponse property for the response status - info
removed the
resource_already_existsenum value from theresponse property for the response status - info
removed the
resource_already_existsenum value from theresponse property for the response status - info
removed the
resource_already_existsenum value from theresponse property for the response status - info
removed the
resource_archivedenum value from theresponse property for the response status - info
removed the
resource_archivedenum value from theresponse property for the response status - info
removed the
resource_archivedenum value from theresponse property for the response status - info
removed the
resource_archivedenum value from theresponse property for the response status - info
removed the
resource_missingenum value from theresponse property for the response status - info
removed the
resource_missingenum value from theresponse property for the response status - info
removed the
resource_missingenum value from theresponse property for the response status - info
removed the
resource_missingenum value from theresponse property for the response status - info
removed the
side_effect_failedenum value from theresponse property for the response status - info
removed the
side_effect_failedenum value from theresponse property for the response status - info
removed the
side_effect_failedenum value from theresponse property for the response status - info
removed the
side_effect_failedenum value from theresponse property for the response status - info
removed the
unsupported_operationenum value from theresponse property for the response status - info
removed the
unsupported_operationenum value from theresponse property for the response status - info
removed the
unsupported_operationenum value from theresponse property for the response status - info
removed the
unsupported_operationenum value from theresponse property for the response status - info
removed the
upstream_service_errorenum value from theresponse property for the response status - info
removed the
upstream_service_errorenum value from theresponse property for the response status - info
removed the
upstream_service_errorenum value from theresponse property for the response status - info
removed the
upstream_service_errorenum value from theresponse property for the response status
This list may be incomplete.
- breaking