Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-01-24/reference/create_profile.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-01-24

You're reading the reference for API revision 2023-01-24. The latest revision is 2026-10-15. See this page in the latest revision.

Create Profile

POSThttps://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-24required
Scopes
Profiles Write
Rate limits
Burst: 75/sSteady: 700/m

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2023-01-24

Request body

Content type: application/jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • profile
    • attributes#objectrequired
      Show 10 fields
      • 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
        Show 9 fields
        • 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

Responses

201

Content type: application/json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • profile
    • id#stringrequired

      Primary key that uniquely identifies this profile. Generated by Klaviyo.

      Example: 01GDDKASAP8TKDDA2GRZDSVP4H

    • attributes#objectrequired
      Show 14 fields
      • 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
        Show 9 fields
        • 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

      • subscriptions#object
        Show 2 fields
        • email#object
          Show 1 field
          • marketing#object
            Show 8 fields
            • consent#stringrequired

              The consent status for email marketing.

              Example: SUBSCRIBED

            • timestamp#string<date-time>

              The timestamp when consent record or updated for email marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

              Example: 2023-02-21T20:07:38+00:00

            • method#stringrequired

              The method by which the profile was subscribed to email marketing.

              Example: PREFERENCE_PAGE

            • method_detail#string

              Additional details about the method by which the profile was subscribed to SMS marketing. This may be empty if no details were provided.

              Example: mydomain.com/signup

            • custom_method_detail#string

              Additional detail provided by the caller when the profile was subscribed. This may be empty if no details were provided.

              Example: marketing drive

            • double_optin#boolean

              Whether the profile was subscribed to email marketing using a double opt-in.

              Example: True

            • suppressions#object
              Show 2 fields
              • reason#stringrequired

                The reason the profile was suppressed from the list.

                Example: HARD_BOUNCE

              • timestamp#string<date-time>required

                The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                Example: 2023-02-21T20:07:38+00:00

            • list_suppressions#object
              Show 3 fields
              • list_id#stringrequired

                The ID of list to which the suppression applies.

                Example: Y6nRLr

              • reason#stringrequired

                The reason the profile was suppressed from the list.

                Example: USER_SUPPRESSED

              • timestamp#string<date-time>required

                The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                Example: 2023-02-21T20:07:38+00:00

        • sms#object
          Show 1 field
          • marketing#object
            Show 4 fields
            • consent#stringrequired

              The consent status for SMS marketing.

              Example: SUBSCRIBED

            • timestamp#string<date-time>required

              The timestamp when consent record or updated for SMS marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

              Example: 2023-02-21T20:07:38+00:00

            • method#stringrequired

              The method by which the profile was subscribed to SMS marketing.

              Example: TEXT

            • method_detail#stringrequired

              Additional details about the method which the profile was subscribed to SMS marketing. This may be empty if no details were provided.

              Example: JOIN

4XXClient Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string