List segments
Returns a cursor-paginated list of all segments in the account with their id, name, and creation date.
Segments are created and managed in the Kit app — the API doesn't currently support creating or updating them. Use segment ids for targeting, for example in a broadcast's subscriber_filter (see Create a broadcast).
Request
- Base URLhttps://api.kit.com
- URLhttps://api.kit.com/v4/segments
- Auth
- API key in header X-Kit-Api-Key
- or OAuth 2Authorization code: https://api.kit.com/v4/oauth/authorizeToken URL: https://api.kit.com/v4/oauth/token
Query parameters
To fetch next page of results, use ?after=<end_cursor>
To fetch previous page of results, use ?before=<start_cursor>
Set to true to include the total_count in the response. This option can cause slow responses; if paging through results, request it only on the first page and reuse the value for subsequent pages.
Number of results per page. Default 500, maximum 1000.
Response
Returns a paginated list of all segments for your account
Changes
No recorded changes to this operation across all 2 revisions of this API.