Backend API
cURL
curl --request GET \ --url https://api.wacht.dev/segments \ --header 'Authorization: <api-key>'
{ "data": [ { "id": "1234567890123456789", "deployment_id": "9876543210987654321", "name": "Premium Users", "type": "user", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "deleted_at": "2023-11-07T05:31:56Z" } ], "has_more": true, "limit": 123, "offset": 123 }
Get all segments for a deployment
API key authentication (format: Bearer {api_key})
Number of items to skip
x >= 0
Number of items to return
1 <= x <= 100
Search query
Field to sort by
Sort order
asc
desc
Segments
Show child attributes
Whether there are more results
Page size
Number of items skipped
Was this page helpful?