get https://api.onesignal.com/apps//segments
Returns an array of segments from an app.
Response Data Definitions
Parameter | Type | Description |
---|---|---|
total_count | Integer | The number of Segments in the response. |
offset | Integer | Set with the offset query parameter. Default 0 . |
limit | Integer | Maximum number of Segments returned. Default 300 . |
segments | Array | An array containing the Segment information. |
Segment Data Definitions
Parameter | Type | Description |
---|---|---|
id | String | The segment ID. |
name | String | The segment name. |
created_at | String | Date segment created. |
updated_at | String | Date segment last updated. |
app_id | String | The app id. |
read_only | Boolean | Is the segment read only? |
is_active | Boolean | Is the segment active? |