---
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/v2023-01-24/reference/create_client_profile"
revision: "2023-01-24"
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/v2023-01-24/reference/client/llms.txt","https://developers.klaviyo.com/en/v2023-01-24/reference/create_client_subscription.md","https://developers.klaviyo.com/en/v2023-01-24/reference/create_client_event.md"]
---

# Create or Update Client Profile

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

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

Create and 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. To create profiles from server applications (e.g. custom server-side scripts / applications), please use [POST /api/profiles](https://developers.klaviyo.com/en/v2023-01-24/reference/create_profile.md)

- Revision header: `revision: 2023-01-24` (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=company_id' \
     --header 'accept: application/json' \
     --header 'revision: 2023-01-24' \
     --header 'content-type: application/json' \
     --data '{
  "data": {
    "type": "profile",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe",
      "first_name": "Sarah",
      "last_name": "Mason",
      "organization": "Klaviyo",
      "title": "Engineer",
      "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
      "properties": {
        "pseudonym": "Dr. Octopus"
      }
    }
  }
}'
```

## Query parameters

- `company_id` (string, required)

## Headers

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

## Request body

Content type: `application/json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `attributes` (object, required)
    - `email` (string): Individual's email address Example: `sarah.mason@klaviyo-demo.com`
    - `phone_number` (string): Individual's phone number in E.164 format Example: `+15005550006`
    - `external_id` (string): 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. Example: `63f64a2b-c6bf-40c7-b81f-bed08162edbe`
    - `anonymous_id` (string)
    - `first_name` (string): Individual's first name Example: `Sarah`
    - `last_name` (string): Individual's last name Example: `Mason`
    - `organization` (string): Name of the company or organization within the company for whom the individual works Example: `Klaviyo`
    - `title` (string): Individual's job title Example: `Engineer`
    - `image` (string): URL pointing to the location of a profile image Example: `https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg`
    - `location` (object)
      - `address1` (string): First line of street address Example: `89 E 42nd St`
      - `address2` (string): Second line of street address Example: `1st floor`
      - `city` (string): City name Example: `New York`
      - `country` (string): Country name Example: `United States`
      - `latitude` (string | number): Latitude coordinate. We recommend providing a precision of four decimal places. Example: `40.7128`
      - `longitude` (string | number): Longitude coordinate. We recommend providing a precision of four decimal places. Example: `74.0060`
      - `region` (string): Region within a country, such as state or province Example: `NY`
      - `zip` (string): Zip code Example: `10017`
      - `timezone` (string): Time zone name. We recommend using time zones from the IANA Time Zone Database. Example: `America/New_York`
    - `properties` (object): An object containing key/value pairs for any custom properties assigned to this profile
  - `meta` (object)
    - `identifiers` (object, required)
      - `id` (string): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
      - `email` (string): Individual's email address Example: `sarah.mason@klaviyo-demo.com`
      - `phone_number` (string): Individual's phone number in E.164 format Example: `+15005550006`
      - `external_id` (string): 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. Example: `63f64a2b-c6bf-40c7-b81f-bed08162edbe`
      - `anonymous_id` (string)
      - `_kx` (string): 
        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.
         Example: `J8fjcn003Wy6b-3ILNlOyZXabW6dcFwTyeuxrowMers%3D.McN66`

### Example request body

```json
{
  "data": {
    "type": "profile",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe",
      "first_name": "Sarah",
      "last_name": "Mason",
      "organization": "Klaviyo",
      "title": "Engineer",
      "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
      "properties": {
        "pseudonym": "Dr. Octopus"
      }
    }
  }
}
```

## Responses

### 202: 

This response has no body.

### 4XX: Client Error

Content type: `application/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/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"
      }
    }
  ]
}
```
