---
title: "Get Customer Traits"
method: GET
path: "/v1/customer-traits"
tags: ["Customer Traits"]
---

# Get Customer Traits

`GET /v1/customer-traits`

Get all customer traits, optionally filtered by agent_id.

Args:
    request: FastAPI request object
    agent_id: Optional agent ID to filter traits by
    auth: Authentication credentials

Returns:
    CustomerTraitsListResponse with list of traits and total count

## Query parameters

- `agent_id` integer, nullable

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- CustomerTraitsListResponse — Response model for listing customer traits.
  - `traits` CustomerTraitResponse[], required — List of customer traits
    - `id` string, required — Unique identifier for the customer trait
    - `agent_id` integer, required — ID of the agent this trait belongs to
    - `name` string, required — Name of the trait
    - `data_type` 'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER', required — Enum for trait data types.
    - `default_value` unknown
    - `created_at` string, date-time, required — When the trait was created
  - `total_count` integer, required — Total number of traits

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/getbluejay/apis/bluejay-api.md) · [All operations](https://skmtc.net/getbluejay/apis/bluejay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbluejay/bluejay-api/versions/f48cef80963f/schema)
