
Connectors / Communication · HTTP Connector
OneSignal integration and API
Send a message, create a segment and create a template in OneSignal, and start a workflow when OneSignal sends “Notification displayed”.
What can you do with OneSignal on Tray.ai?
OneSignal is a customer messaging platform for sending push notifications, in-app messages, email, and SMS to app and website users. Tray.ai connects to OneSignal through the HTTP Connector, so your workflows can call the OneSignal API alongside the rest of your stack.
- Send a message as a push notification when an order ships from your store.
- Update a user in OneSignal with plan details from your billing system to target messages.
- When OneSignal sends “Notification clicked”, record the engagement in your analytics tool.
- Create a segment for trial users pulled from your product database.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header
- Base URL
- https://api.onesignal.com
Set it up
Connect OneSignal to Tray.ai
Each step uses OneSignal's own API details, from its documentation.
Step 1
Save OneSignal's API key
Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.onesignal.com as the base URL. Or paste a cURL example from OneSignal's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “List messages”
It's one of 22 documented actions, under Messages. The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from OneSignal events
Give OneSignal the URL of a Tray.ai webhook trigger. “Notification displayed” can then start a workflow, and so can 2 other events.
Workflows to build with OneSignal
Connect OneSignal with Shopify, Stripe and Snowflake
Each one uses actions and events from OneSignal's own API documentation.
Send a push notification when a Shopify order ships
When
An order is fulfilled in Shopify
Then
- Get a user to confirm the customer is subscribed
- Send a message to the customer with the tracking link
With Shopify
Create OneSignal users from new Stripe customers
When
A customer is created in Stripe
Then
- Create a user with the customer's email and plan
- Update a user later when the plan changes in Stripe
With Stripe
Log notification clicks in Snowflake
When
Notification clicked
Then
- Get a message to read the campaign name
- Add the click and campaign to an engagement table in Snowflake
With Snowflake
Apps you can build on OneSignal data
Internal tools your team can build with an AI assistant, each one using OneSignal calls from its API documentation.
Message history log
Lists sent push, email and SMS messages with the details of each send.
Notification engagement feed
Shows clicks and dismissals as they happen next to the messages that were sent.
Subscriber lookup
Looks up an app user and lets support update their tags or contact details.
Give your AI agents OneSignal tools
Build an MCP server on OneSignal in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Send a message
- Create a user
- Create a segment
- Create a template
- Create a journey
- List apps
- List messages
- Get a message
What the OneSignal API covers
6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Messages
- Send a message
- List messages
- Get a message
Users
- Create a user
- Get a user
- Update a user
- Delete a user
Segments
- Create a segment
- Update a segment
- Delete a segment
Templates
- Create a template
- Get a template
- Update a template
- Delete a template
Journeys
- Create a journey
- Update a journey
- Archive a journey
- Delete a journey
Apps
- List apps
- Get an app
- Create an app
- Update an app
Events OneSignal can send to a Tray.ai webhook trigger
- Notification displayed
- Notification clicked
- Notification dismissed
Checked against OneSignal's own documentation on 2026-10-22
How Tray.ai makes this work
OneSignal plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in OneSignal — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose OneSignal actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on OneSignal data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More communication apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every communication connector →
Frequently asked questions
What can a Tray.ai workflow do in OneSignal?
+
The OneSignal API documents 22 actions across 6 resources (Messages, Users, Segments, Templates, Journeys, Apps). For example: Send a message; Create a user; Create a segment. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with OneSignal?
+
The OneSignal API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which OneSignal events can start a Tray.ai workflow?
+
OneSignal sends 3 events to a webhook URL, for example: Notification displayed; Notification clicked; Notification dismissed. A Tray.ai webhook trigger receives them and starts a workflow.
See OneSignal working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.