get_app | Get one app: name, organization_id, subscription counts (players, messageable_players), enabled channels and push configuration. Push credentials (keys, certificates, passwords) are removed from the response. view: “config” skips the subscription counts (faster). |
get_message | Get one message (push, email or SMS): content, targeting, schedule, status (canceled, completed_at) and delivery statistics (successful, failed, errored, converted, received, remaining, platform_delivery_stats per channel). |
get_template | Get one message template: its content, target channel and timestamps. |
get_user | Get a user by alias: properties (tags, language, timezone_id, country, first/last active), identity (all aliases) and subscriptions (push, email, SMS). alias_label: “external_id” (your own user id — the usual choice), “onesignal_id” or a custom alias label; alias_id: its value. |
list_apps | List the apps of the OneSignal organization (id = App ID, name, subscription counts). Requires an Organization API key: with an App API key OneSignal answers 403 — the App ID is then on Settings → Keys & IDs. Push credentials (keys, certificates) are removed from the response. |
list_messages | List the app’s messages, newest first (queued_at), with their content, targeting, schedule and delivery counts (successful, failed, errored, converted, remaining). limit: max 50 (default 50); offset: integer; kind: 0 = created in the dashboard, 1 = via the API, 3 = automated; template_id: only messages sent from this template; time_offset: ISO 8601 date-time or the token returned by the previous page. |
list_segments | List the app’s segments (id, name, created_at, is_active), oldest first. The name is what create_message takes in included_segments. limit: max 300 (default 300); offset: integer. |
list_templates | List the app’s message templates (id, name, created_at, updated_at). channel: “push” | “email” | “sms” to filter; limit: max 50 (default 50); offset: integer. |