View segments
View segments
Retrieve a list of segments associated with a specific OneSignal app. Useful for programmatically accessing segment metadata such as name, creation date, and status.
GET
View segments
Documentation Index
Fetch the complete documentation index at: https://documentation.onesignal.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieve a list of segments associated with a specific OneSignal app. This is helpful when you want to access segment metadata programmatically instead of using the OneSignal Dashboard UI.Headers
Your App API key with prefix Key . See Keys & IDs.
Path Parameters
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
Query Parameters
The index to start returning segments from. Defaults to 0. Segments are sorted by their creation date (created_at) in ascending order.
The maximum number of segments to return. Default/Max: 300. Ideal for controlling data volume in large-scale applications.