Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/create_client_subscription.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_client_subscription.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

Create Client Subscription

POSThttps://a.klaviyo.com/client/subscriptions

Creates a subscription and consent record for email and/or SMS channels based on the provided email and phone_number attributes, respectively. One of either email or phone_number must be provided.

This endpoint is specifically designed to be called from publicly-browseable, client-side environments only and requires a public API key (site ID). Never use a private API key with our client-side endpoints.

Do not use this endpoint from server-side applications. To subscribe profiles from server-side applications, instead use POST /api/profile-subscription-bulk-create-jobs.

Profiles can be opted into multiple channels: email marketing, SMS marketing, and SMS transactional. You can specify the channel(s) to subscribe the profile to by providing a subscriptions object in the profile attributes.

If you include a subscriptions object, only channels in that object will be subscribed. You can use this to update email or phone on the profile without subscribing them, for example, by setting the profile property but omitting that channel in the subscriptions object. If a subscriptions object is not provided, subscriptions are defaulted to MARKETING.

Revision header
revision: 2026-10-15required
Scopes
subscriptions:write
Authentication
Public API key (site ID), in the company_id query parameter
Rate limits
Burst: 350/sSteady: 750/m

Query parameters

  • company_id#stringrequired

    Your Public API Key / Site ID. See this article for more details.

    Example: PUBLIC_API_KEY

Headers

  • revision#stringrequired

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

    2026-10-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • subscription
    • attributes#objectrequired
      Show 2 fields
      • custom_source#stringnullable

        A custom method detail or source to store on the consent records for this subscription.

        Example: Homepage footer signup form

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

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

          • attributes#objectrequired
            Show 13 fields
            • email#stringnullable

              Individual's email address

              Example: sarah.mason@klaviyo-demo.com

            • phone_number#stringnullable

              Individual's phone number in E.164 format

              Example: +15005550006

            • external_id#stringnullable

              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.

            • _kx#stringnullable

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

              Individual's first name

              Example: Sarah

            • last_name#stringnullable

              Individual's last name

              Example: Mason

            • organization#stringnullable

              Name of the company or organization within the company for whom the individual works

              Example: Example Corporation

            • locale#stringnullable

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

              Individual's job title

              Example: Regional Manager

            • image#stringnullable

              URL pointing to the location of a profile image

              Example: https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg

            • location#object
              Show 10 fields
              • address1#stringnullable

                First line of street address

                Example: 89 E 42nd St

              • address2#stringnullable

                Second line of street address

                Example: 1st floor

              • city#stringnullable

                City name

                Example: New York

              • country#stringnullable

                Country name

                Example: United States

              • latitude#string | numbernullable

                Latitude coordinate. We recommend providing a precision of four decimal places.

                Example: 40.7128

              • longitude#string | numbernullable

                Longitude coordinate. We recommend providing a precision of four decimal places.

                Example: 74.0060

              • region#stringnullable

                Region within a country, such as state or province

                Example: NY

              • zip#stringnullable

                Zip code

                Example: 10017

              • timezone#stringnullable

                Time zone name. We recommend using time zones from the IANA Time Zone Database.

                Example: America/New_York

              • ip#stringnullable

                IP Address

                Example: 127.0.0.1

            • properties#objectnullable

              An object containing key/value pairs for any custom properties assigned to this profile

            • subscriptions#object
              Show 4 fields
              • email#object
                Show 3 fields
                • marketing#object
                  Show 2 fields
                  • consent#stringrequired

                    The Consent status to be set as part of the subscribe call. Currently supports "SUBSCRIBED".

                    Allowed values:
                    • SUBSCRIBED

                    Example: SUBSCRIBED

                  • consented_at#string<date-time>nullable

                    The timestamp of when the profile's consent was gathered. This should only be used when syncing over historical consent info to Klaviyo; if the historical_import flag is not included, providing any value for this field will raise an error.

                • open_tracking#object
                  Show 1 field
                  • consent#stringrequired

                    The tracking consent operation. Supports "SUBSCRIBED" and "UNSUBSCRIBED".

                    Allowed values:
                    • SUBSCRIBED
                    • UNSUBSCRIBED

                    Example: SUBSCRIBED

                • click_tracking#ClientTrackingConsentParameters

                  Same fields as the first ClientTrackingConsentParameters above.

              • sms#object
                Show 2 fields
                • marketing#SubscriptionParameters

                  Same fields as the first SubscriptionParameters above.

                • transactional#SubscriptionParameters

                  Same fields as the first SubscriptionParameters above.

              • whatsapp#object
                Show 2 fields
                • marketing#SubscriptionParameters

                  Same fields as the first SubscriptionParameters above.

                • transactional#SubscriptionParameters

                  Same fields as the first SubscriptionParameters above.

              • push#object
                Show 3 fields
                • marketing#SubscriptionParametersrequired

                  Same fields as the first SubscriptionParameters above.

                • tokens#object[]nullable

                  A list of push tokens to register for this profile.

                  Show 6 fields
                  • token#stringrequired

                    A push token from APNS or FCM.

                    Example: 1234567890abcdef

                  • platform#stringrequired

                    The platform on which the push token was created. Either "ios" or "android".

                    Allowed values:
                    • android
                    • ios
                  • vendor#stringrequired

                    The vendor of the push token. Either "apns" or "fcm".

                    Allowed values:
                    • apns
                    • fcm

                    Example: apns

                  • enablement_status#stringnullable

                    The enablement status for the push token.

                    Allowed values:
                    • AUTHORIZED
                    • DENIED
                    • NOT_DETERMINED
                    • PROVISIONAL
                    • UNAUTHORIZED

                    Example: AUTHORIZED

                  • background#stringnullable

                    The background state of the push token.

                    Allowed values:
                    • AVAILABLE
                    • DENIED
                    • RESTRICTED

                    Example: AVAILABLE

                  • device_metadata#object
                    Show 12 fields
                    • device_id#stringnullable

                      Relatively stable ID for the device. Will update on app uninstall and reinstall

                      Example: 1234567890

                    • klaviyo_sdk#stringnullable

                      The name of the SDK used to create the push token.

                      Allowed values:
                      • android
                      • flutter
                      • flutter_community
                      • react_native
                      • swift

                      Example: swift

                    • sdk_version#stringnullable

                      The version of the SDK used to create the push token

                      Example: 1.0.0

                    • device_model#stringnullable

                      The model of the device

                      Example: iPhone12,1

                    • os_name#stringnullable

                      The name of the operating system on the device.

                      Allowed values:
                      • android
                      • ios
                      • ipados
                      • macos
                      • tvos

                      Example: ios

                    • os_version#stringnullable

                      The version of the operating system on the device

                      Example: 14.0

                    • manufacturer#stringnullable

                      The manufacturer of the device

                      Example: Apple

                    • app_name#stringnullable

                      The name of the app that created the push token

                      Example: Klaviyo

                    • app_version#stringnullable

                      The version of the app that created the push token

                      Example: 1.0.0

                    • app_build#stringnullable

                      The build of the app that created the push token

                      Example: 1

                    • app_id#stringnullable

                      The ID of the app that created the push token

                      Example: com.klaviyo.app

                    • environment#stringnullable

                      The environment in which the push token was created

                      Allowed values:
                      • debug
                      • release

                      Example: release

                • anonymous_id#stringnullable

                  An anonymous identifier for push-only profiles with no email/phone.

          • meta#object
            Show 2 fields
            • patch_properties#object
              Show 3 fields
              • append#objectnullable

                Append a simple value or values to this property array

              • unappend#objectnullable

                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

            • patch_identifiers#object
              Show 2 fields
              • append#object
              • unappend#object
    • relationships#objectrequired
      Show 1 field
      • list#objectrequired
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • list
          • id#stringrequired

            The list ID to add the newly subscribed profile to.

            Example: Y6nRLr

Responses

202Success

This response has no body.

4XXClient Error

Content type: application/vnd.api+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/vnd.api+json

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