# OneSignal integration

> Send push notifications, emails, SMS, and in-app messages, and manage users, subscriptions, segments, and templates via the OneSignal REST API.

- Authentication: apiKey

## Tools (53)

- **Add Device (Legacy)**: Registers a new device/subscription (player).
- **Cancel Message**: Stops transmission of a scheduled or actively-sending message.
- **Copy Template to Another App**: Duplicates a template from a source app to a target app in the same org.
- **Create Alias by Subscription**: Upserts aliases for the user owning a known subscription id.
- **Create API Key**: Generates a new App API Key (Rich Auth Token) with optional IP allowlist.
- **Create App**: Creates a new OneSignal app with optional Web/Android/iOS push config.
- **Create Custom Events**: Records custom user events (for journeys/segmentation).
- **Create Message**: Creates and sends a push, email, SMS, or Live Activity message to targeted users/segments; returns a message id.
- **Create or Update Alias**: Upserts one or more aliases on a user identified by a known alias.
- **Create Segment**: Creates a segment from filter/targeting rules.
- **Create Subscription**: Attaches a new channel subscription to an existing user found by alias.
- **Create Template**: Creates a reusable push/email/SMS template; returns a template_id.
- **Create User**: Creates a new user (or updates subscriptions for an existing one) outside SDK sessions; supports imports.
- **Delete Alias**: Removes a specific secondary alias from a user (user and subscriptions retained).
- **Delete API Key**: Removes a specific App API Key by its id.
- **Delete Device Record (Legacy)**: Deletes a player (subscription) record. Superseded by Delete User / Delete Subscription.
- **Delete Segment**: Deletes a segment (users/subscriptions unaffected).
- **Delete Subscription**: Removes a subscription by id (future subscriptions with same token still allowed).
- **Delete Template**: Permanently deletes a template (cannot delete templates in use by Journeys).
- **Delete User**: Deletes a user with all properties, subscriptions, and identity.
- **Edit Device (Legacy)**: Updates a player's info by subscription id.
- **Edit Tags by External User ID (Legacy)**: Updates a user's tags by external user id (matching keys overwritten; empty string deletes a tag).
- **Export Message Events CSV**: Generates a compressed per-recipient delivery/engagement CSV for a message; returns a download URL valid 3 days.
- **Export Subscriptions CSV**: Generates a GZip CSV export of subscription data with optional filtering.
- **Get Message History**: Async CSV export of all subscriptions that received or interacted with a specific message.
- **List Audit Logs**: Retrieves paginated org audit events (actor, target, timestamp, IP).
- **Rotate API Key**: Revokes the current key and issues a new one under the same config.
- **Start Live Activity**: Remotely starts an iOS Live Activity on targeted devices.
- **Transfer Subscription**: Moves a subscription from one user to another within the same app.
- **Unsubscribe Email with Token**: Disables an email subscription (sets enabled=false) via a signed unsubscribe token.
- **Update API Key**: Updates a key's name and IP allowlist config.
- **Update App**: Updates an app's name and push platform config.
- **Update Live Activity**: Updates a running iOS Live Activity with new content, or ends it.
- **Update Segment**: Updates a segment's name and/or filters (filters, if provided, replace all existing).
- **Update Subscription**: Modifies a subscription's properties by id (commonly enable/disable).
- **Update Subscription by Token**: Updates a subscription located by its token instead of its id.
- **Update Template**: Updates an existing template's content/config.
- **Update User**: Modifies user-level properties for an existing user.
- **View API Keys**: Lists all App API Keys for an app (name, id, IP allowlist, timestamps).
- **View App**: Retrieves details/config for one app.
- **View Apps**: Lists metadata for all apps in the organization.
- **View Device (Legacy)**: Retrieves a single player (subscription) record.
- **View Devices (Legacy)**: Retrieves up to 80,000 player records.
- **View Message**: Retrieves details plus outcome/delivery stats for a single push/email/SMS message.
- **View Messages**: Lists up to 50 messages with delivery stats and config.
- **View Outcomes**: Retrieves outcome metrics (clicks, confirmed deliveries, sessions, custom events).
- **View Segment**: Retrieves segment details (subscriber count, optional metadata/filters).
- **View Segments**: Lists segment metadata, ascending by creation date.
- **View Template**: Retrieves template metadata and content by id.
- **View Templates**: Lists templates (id, name, timestamps), paginated.
- **View User**: Retrieves a user's full profile (aliases, properties, subscriptions) by any known alias.
- **View User Identity**: Returns all aliases (the identity object) for a user by any known alias.
- **View User Identity by Subscription**: Returns all user aliases associated with a known subscription id.

Connect OneSignal in General Input: https://www.generalinput.com/apps/onesignal