---
title: "Create or Update Profile"
description: "How to call Create or Update Profile (POST /api/profile-import) 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_or_update_profile"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_or_update_profile"
operationId: "create_or_update_profile"
aliases: ["create_profile_import"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/profile-import"
authentication: "privateKey"
scopes: ["profiles:write"]
rateLimits: {"burst":"75/s","steady":"700/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"additionalFields":{"profile":["subscriptions","predictive_analytics"]}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/profiles/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profiles.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/merge_profiles.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_lists_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_list_ids_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_segments_for_profile.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_segment_ids_for_profile.md"]
---

# Create or Update Profile

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

```http
POST https://a.klaviyo.com/api/profile-import
```

Given a set of profile attributes and optionally an ID, create or update a profile.

Returns 201 if a new profile was created, 200 if an existing profile was updated.

Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response.

Note that setting a field to `null` will clear out the field, whereas not including a field in your request will leave it unchanged.

The maximum allowed payload size is 100KB.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `profiles:write`
- Rate limits: Burst: `75/s`, Steady: `700/m`

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/profile-import' \
     --header 'Authorization: Klaviyo-API-Key your-private-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",
      "anonymous_id": "01GDDKASAP8TKDDA2GRZDSVP4H",
      "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

- `additional-fields[profile]` (string[]): Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' Allowed values: `subscriptions`, `predictive_analytics`

## 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): Id that can be used to identify a profile when other identifiers are not available Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
    - `_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",
      "anonymous_id": "01GDDKASAP8TKDDA2GRZDSVP4H",
      "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

### 200: Profile Updated Successfully

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `id` (string, nullable): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
  - `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.
    - `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`
    - `created` (string<date-time>, nullable): Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `last_event_date` (string<date-time>, nullable): Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `location` (object): Same fields as ProfileLocation in the request body above.
    - `properties` (object, nullable): An object containing key/value pairs for any custom properties assigned to this profile
    - `subscriptions` (object)
      - `email` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `sms` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `mobile_push` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `predictive_analytics` (object)
      - `historic_clv` (number, nullable): Total value of all historically placed orders Example: `93.87`
      - `predicted_clv` (number, nullable): Predicted value of all placed orders in the next 365 days Example: `27.24`
      - `total_clv` (number, nullable): Sum of historic and predicted CLV Example: `121.11`
      - `historic_number_of_orders` (number, nullable): Number of already placed orders Example: `2`
      - `predicted_number_of_orders` (number, nullable): Predicted number of placed orders in the next 365 days Example: `0.54`
      - `average_days_between_orders` (number, nullable): Average number of days between orders (None if only one order has been placed) Example: `189`
      - `average_order_value` (number, nullable): Average value of placed orders Example: `46.94`
      - `churn_probability` (number, nullable): Probability the customer has churned Example: `0.89`
      - `expected_date_of_next_order` (string<date-time>, nullable): Expected date of next order, as calculated at the time of their most recent order Example: `2022-11-08T00:00:00+00:00`
  - `relationships` (object)
    - `lists` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `segments` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `push-tokens` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "profile",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "external_id": "string",
      "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",
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "last_event_date": "2022-11-08T00:00:00+00:00",
      "location": {
        "address1": "89 E 42nd St",
        "address2": "1st floor",
        "city": "New York",
        "country": "United States",
        "latitude": "40.7128",
        "longitude": "74.0060",
        "region": "NY",
        "zip": "10017",
        "timezone": "America/New_York",
        "ip": "127.0.0.1"
      },
      "properties": {
        "pseudonym": "Dr. Octopus"
      },
      "subscriptions": {
        "email": {
          "marketing": {
            "can_receive_email_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "last_updated": "2023-02-21T20:07:38+00:00",
            "method": "PREFERENCE_PAGE",
            "method_detail": "mydomain.com/signup",
            "custom_method_detail": "marketing drive",
            "double_optin": true,
            "suppression": [
              {
                "reason": "HARD_BOUNCE",
                "timestamp": "2023-02-21T20:07:38+00:00"
              }
            ],
            "list_suppressions": [
              {
                "list_id": "Y6nRLr",
                "reason": "USER_SUPPRESSED",
                "timestamp": "2023-02-21T20:07:38+00:00"
              }
            ]
          }
        },
        "sms": {
          "marketing": {
            "can_receive_sms_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "method": "TEXT",
            "method_detail": "JOIN",
            "last_updated": "2023-02-21T20:07:38+00:00"
          },
          "transactional": {
            "can_receive_sms_transactional": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "method": "TEXT",
            "method_detail": "JOIN",
            "last_updated": "2023-02-21T20:07:38+00:00"
          }
        },
        "mobile_push": {
          "marketing": {
            "can_receive_push_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00"
          }
        }
      },
      "predictive_analytics": {
        "historic_clv": 93.87,
        "predicted_clv": 27.24,
        "total_clv": 121.11,
        "historic_number_of_orders": 2,
        "predicted_number_of_orders": 0.54,
        "average_days_between_orders": 189,
        "average_order_value": 46.94,
        "churn_probability": 0.89,
        "expected_date_of_next_order": "2022-11-08T00:00:00+00:00"
      }
    },
    "relationships": {
      "lists": {
        "data": [
          {
            "type": "list",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "segments": {
        "data": [
          {
            "type": "segment",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "push-tokens": {
        "data": [
          {
            "type": "push-token",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 201: Profile Created Successfully

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `id` (string, nullable): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
  - `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.
    - `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`
    - `created` (string<date-time>, nullable): Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `last_event_date` (string<date-time>, nullable): Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `location` (object): Same fields as ProfileLocation in the request body above.
    - `properties` (object, nullable): An object containing key/value pairs for any custom properties assigned to this profile
    - `subscriptions` (object)
      - `email` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `sms` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `mobile_push` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `predictive_analytics` (object)
      - `historic_clv` (number, nullable): Total value of all historically placed orders Example: `93.87`
      - `predicted_clv` (number, nullable): Predicted value of all placed orders in the next 365 days Example: `27.24`
      - `total_clv` (number, nullable): Sum of historic and predicted CLV Example: `121.11`
      - `historic_number_of_orders` (number, nullable): Number of already placed orders Example: `2`
      - `predicted_number_of_orders` (number, nullable): Predicted number of placed orders in the next 365 days Example: `0.54`
      - `average_days_between_orders` (number, nullable): Average number of days between orders (None if only one order has been placed) Example: `189`
      - `average_order_value` (number, nullable): Average value of placed orders Example: `46.94`
      - `churn_probability` (number, nullable): Probability the customer has churned Example: `0.89`
      - `expected_date_of_next_order` (string<date-time>, nullable): Expected date of next order, as calculated at the time of their most recent order Example: `2022-11-08T00:00:00+00:00`
  - `relationships` (object)
    - `lists` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `segments` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `push-tokens` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "profile",
    "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
    "attributes": {
      "email": "sarah.mason@klaviyo-demo.com",
      "phone_number": "+15005550006",
      "external_id": "string",
      "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",
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "last_event_date": "2022-11-08T00:00:00+00:00",
      "location": {
        "address1": "89 E 42nd St",
        "address2": "1st floor",
        "city": "New York",
        "country": "United States",
        "latitude": "40.7128",
        "longitude": "74.0060",
        "region": "NY",
        "zip": "10017",
        "timezone": "America/New_York",
        "ip": "127.0.0.1"
      },
      "properties": {
        "pseudonym": "Dr. Octopus"
      },
      "subscriptions": {
        "email": {
          "marketing": {
            "can_receive_email_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "last_updated": "2023-02-21T20:07:38+00:00",
            "method": "PREFERENCE_PAGE",
            "method_detail": "mydomain.com/signup",
            "custom_method_detail": "marketing drive",
            "double_optin": true,
            "suppression": [
              {
                "reason": "HARD_BOUNCE",
                "timestamp": "2023-02-21T20:07:38+00:00"
              }
            ],
            "list_suppressions": [
              {
                "list_id": "Y6nRLr",
                "reason": "USER_SUPPRESSED",
                "timestamp": "2023-02-21T20:07:38+00:00"
              }
            ]
          }
        },
        "sms": {
          "marketing": {
            "can_receive_sms_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "method": "TEXT",
            "method_detail": "JOIN",
            "last_updated": "2023-02-21T20:07:38+00:00"
          },
          "transactional": {
            "can_receive_sms_transactional": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00",
            "method": "TEXT",
            "method_detail": "JOIN",
            "last_updated": "2023-02-21T20:07:38+00:00"
          }
        },
        "mobile_push": {
          "marketing": {
            "can_receive_push_marketing": true,
            "consent": "SUBSCRIBED",
            "consent_timestamp": "2023-02-21T20:07:38+00:00"
          }
        }
      },
      "predictive_analytics": {
        "historic_clv": 93.87,
        "predicted_clv": 27.24,
        "total_clv": 121.11,
        "historic_number_of_orders": 2,
        "predicted_number_of_orders": 0.54,
        "average_days_between_orders": 189,
        "average_order_value": 46.94,
        "churn_probability": 0.89,
        "expected_date_of_next_order": "2022-11-08T00:00:00+00:00"
      }
    },
    "relationships": {
      "lists": {
        "data": [
          {
            "type": "list",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "segments": {
        "data": [
          {
            "type": "segment",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "push-tokens": {
        "data": [
          {
            "type": "push-token",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

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