Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2024-06-15/reference/subscribe_profiles.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2024-06-15

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

Subscribe Profiles

POSThttps://a.klaviyo.com/api/profile-subscription-bulk-create-jobs/

Subscribe one or more profiles to email marketing, SMS marketing, or both. If the provided list has double opt-in enabled, profiles will receive a message requiring their confirmation before subscribing. Otherwise, profiles will be immediately subscribed without receiving a confirmation message. Learn more about consent in this guide.

If a list is not provided, the opt-in process used will be determined by the account-level default opt-in setting.

To add someone to a list without changing their subscription status, use Add Profile to List.

This API will remove any UNSUBSCRIBE, SPAM_REPORT or USER_SUPPRESSED suppressions from the provided profiles. Learn more about suppressed profiles.

Maximum number of profiles can be submitted for subscription: 100

Revision header
revision: 2024-06-15required
Scopes
lists:writeprofiles:writesubscriptions:write
Rate limits
Burst: 75/sSteady: 700/m

Headers

  • revision#stringrequired

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

    2024-06-15

Request body

Content type: application/jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • profile-subscription-bulk-create-job
    • attributes#objectrequired
      Show 2 fields
      • custom_source#stringnullable

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

        Example: Marketing Event

      • profiles#objectrequired

        The profile(s) to subscribe

        Show 1 field
        • data#object[]required
          Show 3 fields
          • type#stringrequired
            Allowed values:
            • profile
          • id#stringnullable

            The ID of the profile to subscribe. If provided, this will be used to perform the lookup.

            Example: 01GDDKASAP8TKDDA2GRZDSVP4H

          • attributes#objectrequired
            Show 4 fields
            • email#stringnullable

              The email address to subscribe or to set on the profile if channels is specified and the email channel is omitted.

              Example: matt-kemp@klaviyo-demo.com

            • phone_number#stringnullable

              The phone number to subscribe or to set on the profile if channels is specified and the SMS channel is omitted. This must be in E.164 format.

              Example: +15005550006

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

                    The Consent status to subscribe to for the "Marketing" type. 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 not included, the current time will be used. This field is only supported for single opt-in and will be ignored for double opt-in.

              • sms#object
                Show 1 field
                • marketing#MarketingSubscriptionParametersrequired

                  Same fields as the first MarketingSubscriptionParameters above.

            • age_gated_date_of_birth#string<date>nullable

              The profile's date of birth. This field is required to update SMS consent for accounts using age-gating: https://help.klaviyo.com/hc/en-us/articles/17252552814875

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

            The list to add the newly subscribed profiles to

            Example: Y6nRLr

Responses

202Success

This response has no body.

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