Zum Inhalt springen

List active segments

GET
/segments
Code sample: Shell / cURL
curl --request GET \
--url https://rocketem.fotone.io/api/v2/segments \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read

Returns all active segments with their name, type, and recipient count.

Segment list

Media typeapplication/json
object
data
Array<object>
object
id

Segment public_id

string
name
string
source_type
string
Allowed values: connector url database orga_db shared file
recipient_count
integer
nullable
last_calculated_at
string format: date-time
nullable
meta
object
total
integer

Example

{
"data": [
{
"source_type": "connector"
}
]
}