---
title: "Create or Update Client Profile"
description: "How to call Create or Update Client Profile (POST /client/profiles) 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/create_client_profile"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_client_profile"
operationId: "create_client_profile"
method: "POST"
endpoint: "https://a.klaviyo.com/client/profiles"
authentication: "publicKey"
scopes: ["profiles:write"]
rateLimits: {"burst":"350/s","steady":"3500/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/client/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/create_client_subscription.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_client_push_token.md","https://developers.klaviyo.com/en/v2025-01-15/reference/unregister_client_push_token.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_client_event.md","https://developers.klaviyo.com/en/v2025-01-15/reference/bulk_create_client_events.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_client_back_in_stock_subscription.md"]
---

# Create or Update Client Profile

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

```http
POST https://a.klaviyo.com/client/profiles
```

Create or update properties about a profile without tracking an associated event.

This endpoint is specifically designed to be called from publicly-browseable, client-side environments only and requires a [public API key (site ID)](https://www.klaviyo.com/settings/account/api-keys). Never use a private API key with our client-side endpoints.

Do not use this endpoint from server-side applications.
To create or update profiles from server-side applications, instead use [POST /api/profile-import](https://developers.klaviyo.com/en/v2025-01-15/reference/create_or_update_profile.md).

Note that to update a profile's existing identifiers (e.g., email), you must use a server-side endpoint authenticated by a private API key. Attempts to do so via client-side endpoints will return a 202, however the identifier field(s) will not be updated.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `profiles:write`
- Authentication: Public API key (site ID), in the `company_id` query parameter
- Rate limits: Burst: `350/s`, Steady: `3500/m`

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/client/profiles?company_id=PUBLIC_API_KEY' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "profile",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "first_name": "Sarah",
      "last_name": "Mason",
      "organization": "Example Corporation",
      "locale": "en-US",
      "title": "Regional Manager",
      "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
      "properties": {
        "pseudonym": "Dr. Octopus"
      }
    }
  }
}'
```

## Query parameters

- `company_id` (string, required): Your Public API Key / Site ID. See [this article](https://help.klaviyo.com/hc/en-us/articles/115005062267) for more details. Example: `PUBLIC_API_KEY`

## Headers

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

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `id` (string, nullable): Primary key that uniquely identifies this profile. Generated by Klaviyo.
  - `attributes` (object, required)
    - `email` (string, nullable): Individual's email address Example: `sarah.mason@klaviyo-demo.com`
    - `phone_number` (string, nullable): Individual's phone number in E.164 format Example: `+15005550006`
    - `external_id` (string, nullable): A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.
    - `anonymous_id` (string, nullable)
    - `_kx` (string, nullable): Also known as the `exchange_id`, this is an encrypted identifier used for identifying a
      profile by Klaviyo's web tracking.
      
      You can use this field as a filter when retrieving profiles via the Get Profiles endpoint.
    - `first_name` (string, nullable): Individual's first name Example: `Sarah`
    - `last_name` (string, nullable): Individual's last name Example: `Mason`
    - `organization` (string, nullable): Name of the company or organization within the company for whom the individual works Example: `Example Corporation`
    - `locale` (string, nullable): The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2) Example: `en-US`
    - `title` (string, nullable): Individual's job title Example: `Regional Manager`
    - `image` (string, nullable): URL pointing to the location of a profile image Example: `https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg`
    - `location` (object)
      - `address1` (string, nullable): First line of street address Example: `89 E 42nd St`
      - `address2` (string, nullable): Second line of street address Example: `1st floor`
      - `city` (string, nullable): City name Example: `New York`
      - `country` (string, nullable): Country name Example: `United States`
      - `latitude` (string | number, nullable): Latitude coordinate. We recommend providing a precision of four decimal places. Example: `40.7128`
      - `longitude` (string | number, nullable): Longitude coordinate. We recommend providing a precision of four decimal places. Example: `74.0060`
      - `region` (string, nullable): Region within a country, such as state or province Example: `NY`
      - `zip` (string, nullable): Zip code Example: `10017`
      - `timezone` (string, nullable): Time zone name. We recommend using time zones from the IANA Time Zone Database. Example: `America/New_York`
      - `ip` (string, nullable): IP Address Example: `127.0.0.1`
    - `properties` (object, nullable): An object containing key/value pairs for any custom properties assigned to this profile
  - `meta` (object)
    - `patch_properties` (object)
      - `append` (object, nullable): Append a simple value or values to this property array
      - `unappend` (object, nullable): Remove a simple value or values from this property array
      - `unset` (string | string[], nullable): Remove a key or keys (and their values) completely from properties Example: `skus`

### Example request body

```json
{
  "data": {
    "type": "profile",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "first_name": "Sarah",
      "last_name": "Mason",
      "organization": "Example Corporation",
      "locale": "en-US",
      "title": "Regional Manager",
      "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
      "properties": {
        "pseudonym": "Dr. Octopus"
      }
    }
  }
}
```

## Responses

### 202: Success

This response has no body.

### 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"
      }
    }
  ]
}
```
