create_audience
Creates a saved query that defines a push notification audience for an app, enabling targeting of installations by criteria such as device type or membership.
Instructions
Create a new push notification audience (saved query for targeting users)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"appObjectId": "<appObjectId>",
"name": "<name>",
"query": "<query>"
},
"name": "create_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the audience (e.g., "iOS Users", "Premium Members") | |
| query | Yes | JSON query for targeting installations (e.g., {"deviceType": "ios"}) | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) |