Skip to content
For LLMsView as Markdown·

OneSignal

Push notification and messaging platform for iGaming player engagement and retention.

DetailValue
CategoryiGaming
Base URLhttps://api.onesignal.com
AuthenticationAPI Key
Endpoints11
Connector keyonesignal

Using OneSignal in a workflow

  1. Go to Connections and click New Connection.
  2. Pick OneSignal from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /notificationsCreate and send a notification
GET /notificationsList notifications
GET /notifications/{notification_id}Get notification
POST /apps/{app_id}/usersCreate user
GET /apps/{app_id}/users/by/{alias_label}/{alias_id}Get user by alias
PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}Update user
DELETE /apps/{app_id}/users/by/{alias_label}/{alias_id}Delete user
POST /apps/{app_id}/segmentsCreate segment
DELETE /apps/{app_id}/segments/{segment_id}Delete segment
POST /apps/{app_id}/custom_eventsTrack custom events
POST /templatesCreate template

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /notifications

Create and send a notification

DetailValue
Operation IDigaming.createNotification
MethodPOST
Path/notifications

Parameters

No parameters.

Request Body

FieldType
app_idstring
contentsobject
included_segmentsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.createNotification.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

GET /notifications

List notifications

DetailValue
Operation IDigaming.listNotifications
MethodGET
Path/notifications

Parameters

NameLocationTypeRequired
app_idquerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.listNotifications.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

GET /notifications/{notification_id}

Get notification

DetailValue
Operation IDigaming.getNotification
MethodGET
Path/notifications/{notification_id}

Parameters

NameLocationTypeRequired
notification_idpathstringYes
app_idquerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.getNotification.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

POST /apps/{app_id}/users

Create user

DetailValue
Operation IDigaming.createUser
MethodPOST
Path/apps/{app_id}/users

Parameters

NameLocationTypeRequired
app_idpathstringYes

Request Body

FieldType
identityobject
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.createUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

GET /apps/{app_id}/users/by/{alias_label}/{alias_id}

Get user by alias

DetailValue
Operation IDigaming.getUser
MethodGET
Path/apps/{app_id}/users/by/{alias_label}/{alias_id}

Parameters

NameLocationTypeRequired
app_idpathstringYes
alias_labelpathstringYes
alias_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.getUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}

Update user

DetailValue
Operation IDigaming.updateUser
MethodPATCH
Path/apps/{app_id}/users/by/{alias_label}/{alias_id}

Parameters

NameLocationTypeRequired
app_idpathstringYes
alias_labelpathstringYes
alias_idpathstringYes

Request Body

FieldType
propertiesobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.updateUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

DELETE /apps/{app_id}/users/by/{alias_label}/{alias_id}

Delete user

DetailValue
Operation IDigaming.deleteUser
MethodDELETE
Path/apps/{app_id}/users/by/{alias_label}/{alias_id}

Parameters

NameLocationTypeRequired
app_idpathstringYes
alias_labelpathstringYes
alias_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.deleteUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

POST /apps/{app_id}/segments

Create segment

DetailValue
Operation IDigaming.createSegment
MethodPOST
Path/apps/{app_id}/segments

Parameters

NameLocationTypeRequired
app_idpathstringYes

Request Body

FieldType
namestring
filtersarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.createSegment.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

DELETE /apps/{app_id}/segments/{segment_id}

Delete segment

DetailValue
Operation IDigaming.deleteSegment
MethodDELETE
Path/apps/{app_id}/segments/{segment_id}

Parameters

NameLocationTypeRequired
app_idpathstringYes
segment_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.deleteSegment.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

POST /apps/{app_id}/custom_events

Track custom events

DetailValue
Operation IDigaming.trackCustomEvents
MethodPOST
Path/apps/{app_id}/custom_events

Parameters

NameLocationTypeRequired
app_idpathstringYes

Request Body

FieldType
eventsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.trackCustomEvents.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.

POST /templates

Create template

DetailValue
Operation IDigaming.createTemplate
MethodPOST
Path/templates

Parameters

No parameters.

Request Body

FieldType
app_idstring
namestring
contentsobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your OneSignal connection from the Connection dropdown.
  3. In the Operation dropdown, select igaming.createTemplate.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream OneSignal API reference.