Skip to content
OneSignal logo

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

  1. Get a user to confirm the customer is subscribed
  2. 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

  1. Create a user with the customer's email and plan
  2. Update a user later when the plan changes in Stripe

With Stripe

Log notification clicks in Snowflake

When

Notification clicked

Then

  1. Get a message to read the campaign name
  2. 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

documentation.onesignal.com/reference/rest-api-overview

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.