get https://a.klaviyo.com/api/profiles//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
Responses
Get segment memberships for a profile with the given profile ID.
Rate limits:
Burst: 3/s
Steady: 60/m
Scopes:
profiles:read
segments:read
xxxxxxxxxx
curl --request GET \
--url https://a.klaviyo.com/api/profiles/id/segments \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/vnd.api+json' \
--header 'revision: 2025-01-15'
xxxxxxxxxx
148}
{
"data": [
{
"type": "segment",
"id": "string",
"attributes": {
"name": "Repeat Purchasers",
"definition": {
"condition_groups": [
{
"conditions": [
{
"type": "profile-group-membership",
"group_ids": [
"string"
],
"timeframe_filter": {
"type": "date",
"operator": "after",
"date": "2022-11-08T00:00:00+00:00"
}
},
{
"type": "profile-group-membership",
"group_ids": [
"string"
]
},
{
"type": "profile-metric",
"metric_id": "string",
"measurement": "count",