Create Client Back In Stock Subscription
POSThttps://a.klaviyo.com/client/back-in-stock-subscriptions
Subscribe a profile to receive back in stock notifications. Check out our Back in Stock API guide for more details.
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 create back in stock subscriptions from server-side applications, instead use POST /api/back-in-stock-subscriptions.
- Revision header
revision: 2025-01-15required- Scopes
catalogs:writeprofiles:write- Authentication
- Public API key (site ID), in the
company_idquery parameter - Rate limits
- Burst:
350/sSteady:3500/m
Query parameters
Your Public API Key / Site ID. See this article for more details.
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2025-01-15
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Show 2 fields
The channel(s) through which the profile would like to receive the back in stock notification. This can be leveraged within a back in stock flow to notify the subscriber through their preferred channel(s).
Show 1 field
Show 3 fields
Primary key that uniquely identifies this profile. Generated by Klaviyo.
Show 4 fields
Individual's email address
Individual's phone number in E.164 format
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.
Show 1 field
Show 1 field
Show 2 fields
The catalog variant ID for which the profile is subscribing to back in stock notifications. This ID is made up of the integration type, catalog ID, and and the external ID of the variant like so:
integrationType:::catalogId:::externalId. If the integration you are using is not set up for multi-catalog storage, the 'catalogId' will be$default. For Shopify$shopify:::$default:::33001893429341
Responses
202Success
This response has no body.
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json