Skip to main content
GET
/
api
/
profiles
/
{id}
/
traits
{
  "traits": [
    {
      "key": "name",
      "value": "Alex",
      "valueType": "string",
      "category": "identity",
      "confidence": 0.95,
      "source": "extracted",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    },
    {
      "key": "expertise_level",
      "value": "advanced",
      "valueType": "enum",
      "category": "context",
      "confidence": 0.8,
      "source": "extracted",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-05T00:00:00Z"
    }
  ]
}

Overview

Returns all traits associated with a user profile.

Path Parameters

id
string
required
Profile ID

Response

{
  "traits": [
    {
      "key": "name",
      "value": "Alex",
      "valueType": "string",
      "category": "identity",
      "confidence": 0.95,
      "source": "extracted",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    },
    {
      "key": "expertise_level",
      "value": "advanced",
      "valueType": "enum",
      "category": "context",
      "confidence": 0.8,
      "source": "extracted",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-05T00:00:00Z"
    }
  ]
}

Example

curl https://api.yourserver.com/api/profiles/user-123/traits \
  -H "Authorization: Bearer gp_your_key"