---
title: "Get Segments for Profile"
description: "How to call Get Segments for Profile (GET /api/profiles/{id}/segments) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/get_segments_for_profile"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_segments_for_profile"
operationId: "get_segments_for_profile"
aliases: ["get_profile_segments"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/profiles/{id}/segments"
authentication: "privateKey"
scopes: ["profiles:read","segments:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"fields":{"segment":["name","definition","definition.condition_groups","created","updated","is_active","is_processing","is_starred"]}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/profiles/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profiles.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_or_update_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/merge_profiles.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_lists_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_list_ids_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_segment_ids_for_profile.md"]
---

# Get Segments for Profile

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/get_segments_for_profile

```http
GET https://a.klaviyo.com/api/profiles/{id}/segments
```

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

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `profiles:read`, `segments:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`

## Example request

```bash
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'
```

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[segment]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `name`, `definition`, `definition.condition_groups`, `created`, `updated`, `is_active`, `is_processing`, `is_starred`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `relationships` (object)
    - `profiles` (object)
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tags` (object)
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `flow-triggers` (object)
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `type` (string, required): Allowed values: `segment`
  - `id` (string, required)
  - `attributes` (object, required)
    - `name` (string, nullable): A helpful name to label the segment Example: `Repeat Purchasers`
    - `definition` (object)
      - `condition_groups` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `created` (string<date-time>, nullable): Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `is_active` (boolean, required)
    - `is_processing` (boolean, required)
    - `is_starred` (boolean, required)
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)

#### Example response body

```json
{
  "data": [
    {
      "relationships": {
        "profiles": {
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "tags": {
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "flow-triggers": {
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "type": "segment",
      "id": "string",
      "attributes": {
        "name": "Repeat Purchasers",
        "definition": {
          "condition_groups": [
            {
              "conditions": [
                {
                  "type": "profile-group-membership",
                  "is_member": true,
                  "group_ids": [
                    "string"
                  ],
                  "timeframe_filter": {
                    "type": "date",
                    "operator": "after",
                    "date": "2022-11-08T00:00:00+00:00"
                  }
                }
              ]
            }
          ]
        },
        "created": "2022-11-08T00:00:00+00:00",
        "updated": "2022-11-08T00:00:00+00:00",
        "is_active": true,
        "is_processing": true,
        "is_starred": true
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
