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/v2022-10-17/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":"dolor ipsum","attributes":{"name":"culpa tempor veniam","created":"1993-01-01T07:53:17.446Z","updated":"1960-06-28T12:12:40.621Z"},"links":{"self":"https://VdZGOzEJU.rdFC0xM5JImuQ"}},{"type":"segment","id":"ipsum exercitation","attributes":{"name":"dolore deserunt eu irure Duis","created":"1978-03-11T06:02:09.709Z","updated":"1962-03-06T03:46:16.543Z"},"links":{"self":"https://HTQSvacudtFfuCelio.ulcQ2CAOWxbjY7h0Jz.iZJNs6RPKjKYOr4HzPK.n8982OSjP"}}],"links":{"self":"https://lG.zitsw9h8kOOVqursv3c9Y+OtYe6K-NaLyvtFsn","first":"https://VOe.kgxcecB5eYY,WNzMCMkyQkz,wGDfJE5PuuZCP8-gCw-rBuO16sFMC.oRe","last":"http://KQgsfNkxuQbwPADNMUESbnPf.chouctsTkgK6oGg8,MGlc","prev":"https://yBNBDacvwAqXbGtCbIhjzJTBbmqrX.exahJ-7a-dlFN","next":"http://hhJMhurpLDuTNcDhqlmFcpOdrj.jtitsHeIvx0V0OhgIg,Z+5-qexqZpQ.NxL+QC5IUNygx-GAuOBwJM1zUpHfV.2Z9vL"}}