---
title: "Create Profile"
description: "How to call Create Profile (POST /api/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_profile"
revision: "2023-01-24"
latestUrl: "https://developers.klaviyo.com/en/reference/create_profile"
operationId: "create_profile"
method: "POST"
endpoint: "https://a.klaviyo.com/api/profiles/"
authentication: "privateKey"
scopes: ["Profiles Write"]
rateLimits: {"burst":"75/s","steady":"700/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2023-01-24/reference/profiles/llms.txt","https://developers.klaviyo.com/en/v2023-01-24/reference/get_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/suppress_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/unsuppress_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/subscribe_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/unsubscribe_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_profile.md","https://developers.klaviyo.com/en/v2023-01-24/reference/update_profile.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_profile_lists.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_profile_segments.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_profile_relationships.md"]
---

# Create Profile

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

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

Create a new profile.
If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.

- Revision header: `revision: 2023-01-24` (required)
- Scopes: `Profiles Write`
- Rate limits: Burst: `75/s`, Steady: `700/m`

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/profiles/' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --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"
      }
    }
  }
}'
```

## 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`
    - `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

### 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

### 201: 

Content type: `application/json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `profile`
  - `id` (string, required): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
  - `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`
    - `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`
    - `created` (string<date-time>): Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00`
    - `updated` (string<date-time>): 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`
    - `last_event_date` (string<date-time>): 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`
    - `location` (object): Same fields as ProfileLocation in the request body above.
    - `properties` (object): 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.
  - `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": "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",
      "created": "2022-11-08T00:00:00",
      "updated": "2022-11-08T00:00:00",
      "last_event_date": "2022-11-08T00: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"
      },
      "properties": {
        "pseudonym": "Dr. Octopus"
      },
      "subscriptions": {
        "email": {
          "marketing": {
            "consent": "SUBSCRIBED",
            "timestamp": "2023-02-21T20:07:38+00:00",
            "method": "PREFERENCE_PAGE",
            "method_detail": "mydomain.com/signup",
            "custom_method_detail": "marketing drive",
            "double_optin": "True",
            "suppressions": {
              "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": {
            "consent": "SUBSCRIBED",
            "timestamp": "2023-02-21T20:07:38+00:00",
            "method": "TEXT",
            "method_detail": "JOIN"
          }
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

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