> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectecho.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Predefined user attributes

> Optional product attributes you can send on identify — keys, types, and embed examples.

Predefined user attributes are optional fields Project Echo already understands. Add them to your embed identify payload when you have the data. They appear on the member profile under **Attributes** only after we receive a value.

They are available on Free and Pro. Use them for segmentation and (later) campaign targeting.

For fields you invent yourself, see [Custom user attributes](https://docs.projectecho.io/team-and-members/custom-user-attributes.md).

## How to send them

Pass a JSON object in `attributes` (not top-level next to `email`). Keys must match the catalog below exactly (`snake_case`).

### Script tag (v2)

```html theme={null}
<script
  async
  defer
  src="https://app.projectecho.io/embed/v2/pe-embed.js"
  data-pe-api-base="https://app.projectecho.io"
  data-pe-embed-key-id="YOUR_KEY_ID"
  data-pe-embed-token="pe_embed_..."
  data-pe-subdomain="YOUR_SUBDOMAIN"
  data-pe-portal-base-url="https://YOUR_SUBDOMAIN.projectecho.io"
  data-pe-external-user-id="user_123"
  data-pe-email="ada@example.com"
  data-pe-attributes='{"plan":"pro","is_premium":true,"is_completed_onboarding":true,"creation_date":"2024-03-01"}'
></script>
```

Replace the JSON with values from your database when you render the page.

### Programmatic identify

After the v2 script loads:

```js theme={null}
ProjectEcho.identify({
  attributes: {
    plan: 'pro',
    is_premium: true,
    is_completed_onboarding: true,
    creation_date: '2024-03-01',
    health_score: 82,
  },
});
```

### Identify API body

`POST /api/embed/v1/identify` (same auth as My app):

```json theme={null}
{
  "subdomain": "your-subdomain",
  "external_user_id": "user_123",
  "email": "ada@example.com",
  "attributes": {
    "plan": "pro",
    "is_premium": true
  }
}
```

Unknown keys inside `attributes` are ignored. Invalid types for a known key are skipped. Identify still succeeds so a bad field does not break login or portal tokens.

Omit a key to leave the stored value unchanged. Send `null` to clear a stored value.

## Catalog

| Key | Display name | Type | Example |
| - | - | - | - |
| `age` | Age | integer | `34` |
| `date_of_birth` | Date of birth | date | `"1990-04-12"` |
| `gender` | Gender | text | `"female"` |
| `is_premium` | Is premium | boolean | `true` |
| `is_paying` | Is paying | boolean | `true` |
| `is_enterprise` | Is enterprise | boolean | `false` |
| `creation_date` | Creation date | date | `"2024-03-01"` |
| `title` | Title | text | `"Product Manager"` |
| `department` | Department | text | `"Engineering"` |
| `language` | Language | text | `"en"` |
| `lifecycle_state` | Lifecycle state | text | `"active"` |
| `activation_date` | Activation date | date | `"2024-03-15"` |
| `health_score` | Health score | integer | `82` |
| `plan` | Plan | text | `"pro"` |
| `status` | Status | text | `"active"` |
| `is_completed_onboarding` | Is completed onboarding | boolean | `true` |
| `role` | Role | text | `"admin"` |
| `is_admin` | Is admin | boolean | `true` |
| `company_name` | Company name | text | `"Acme"` |
| `company_size` | Company size | integer | `50` |
| `industry` | Industry | text | `"SaaS"` |
| `mrr` | MRR | float | `1200.5` |
| `arr` | ARR | float | `14400` |
| `trial_ends_at` | Trial ends at | datetime | `"2024-06-01T00:00:00.000Z"` |
| `signed_up_at` | Signed up at | datetime | `"2024-03-01T15:30:00.000Z"` |
| `last_seen_in_product_at` | Last seen in product at | datetime | `"2024-06-10T09:00:00.000Z"` |
| `account_id` | Account ID | text | `"acct_123"` |
| `subscription_interval` | Subscription interval | text | `"month"` |
| `monthly_spend` | Monthly spend | float | `99.0` |
| `employee_count` | Employee count | integer | `12` |
| `phone` | Phone | text | `"+1..."` |
| `acquisition_source` | Acquisition source | text | `"organic"` |

### Type notes

| Type | Accepted values |
| - | - |
| **text** | String (max 500 characters) |
| **integer** | Whole number or numeric string |
| **float** | Number or numeric string |
| **boolean** | `true` / `false`, `"true"` / `"false"`, `1` / `0` |
| **date** | `YYYY-MM-DD` (preferred) |
| **datetime** | ISO-8601 timestamp |

## Where they appear

Open **Members** → a member → **Attributes**. Empty attributes are hidden until we receive data.

Auto-detected fields (country, browser, First seen, and so on) are separate — see [Standard user properties](https://docs.projectecho.io/team-and-members/standard-user-properties.md).

## Limits

Per identify call (combined with custom attributes): max **50** keys, max **16 KB** JSON for the attribute maps. Text text value max **500** characters.

## Related

* [Custom user attributes](https://docs.projectecho.io/team-and-members/custom-user-attributes.md)
* [Embed My app](https://docs.projectecho.io/api-mcp-and-embed/embed-my-app.md)
* [Standard user properties](https://docs.projectecho.io/team-and-members/standard-user-properties.md)

Questions? [support@projectecho.io](mailto:support@projectecho.io) · [Help Center](https://docs.projectecho.io/index.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.