Get Profile Segments

GET {{baseUrl}}/api/profiles/:profile_id/segments/

Get segment memberships for a profile with the given profile ID.

Rate limits:
Burst: 3/s
Steady: 60/m

Scopes: Profiles Read Segments Read

Request Params

KeyDatatypeRequiredDescription
fields[segment]stringFor more information please visit https://developers.klaviyo.com/en/v2023-01-24/reference/api-overview#sparse-fieldsets

HEADERS

KeyDatatypeRequiredDescription
revisionstring(Required) API endpoint revision (format: YYYY-MM-DD[.suffix])
Acceptstring

RESPONSES

status: OK

{"data":[{"type":"segment","id":"quis aute","attributes":{"name":"exercitation non in amet","created":"2022-11-08T00:00:00","updated":"2022-11-08T00:00:00"},"links":{"self":"https://vmjCOsahoZOLUun.xftoXPLWmoVHxeSf3EHhsaptQHvsRdVUC.wEQFabkSdISI"}},{"type":"segment","id":"cillum veniam ipsum Ut","attributes":{"name":"e","created":"2022-11-08T00:00:00","updated":"2022-11-08T00:00:00"},"links":{"self":"https://uBMGnozsyrHLNHNhBF.prbIe,c6SF1wms4+FvjcXhq1MYSj,"}}],"links":{"self":"https://FqomwXCzzGoKlbLdtpplpliwGuGHjDXPM.jnonMioRNmt","first":"https://rPGblfooikCZlHMNbh.barJyCkgOoHdaou9","last":"https://vXwQmVReJkKZoycTDYgMvfKDK.yveuW14rjgDx9GDCprm.yKHqHlFpDR4Wtw9kTrF6OfCBqVnExIw6eIDXX","prev":"http://wBZ.ygypKpncEyoocT1cR+TaFg1uY09ZRENBrKi,HcjuGtSmF8-y2Wz0Z0CsefDsParqOV","next":"http://eZzJNvNOug.hfynKpZrymuUEe+QonHA6w.i8lCV5iqa-,HwiJk8lSoR0R.wBCCF4f2SfgEopk8N90"}}