---
title: "Create Client Back In Stock Subscription"
description: "How to call Create Client Back In Stock Subscription (POST /client/back-in-stock-subscriptions/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_back_in_stock_subscription"
revision: "2024-06-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_client_back_in_stock_subscription"
operationId: "create_client_back_in_stock_subscription"
method: "POST"
endpoint: "https://a.klaviyo.com/client/back-in-stock-subscriptions/"
authentication: "publicKey"
scopes: ["catalogs:write","profiles:write"]
rateLimits: {"burst":"350/s","steady":"3500/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2024-06-15/reference/client/llms.txt","https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_subscription.md","https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_push_token.md","https://developers.klaviyo.com/en/v2024-06-15/reference/unregister_client_push_token.md","https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_event.md","https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_profile.md","https://developers.klaviyo.com/en/v2024-06-15/reference/bulk_create_client_events.md"]
---

# Create Client Back In Stock Subscription

> This is the Markdown version of https://developers.klaviyo.com/en/v2024-06-15/reference/create_client_back_in_stock_subscription

```http
POST https://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](https://developers.klaviyo.com/en/docs/how_to_set_up_custom_back_in_stock.md) 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)](https://www.klaviyo.com/settings/account/api-keys). Never use a private API key with our client-side endpoints.

To create back in stock subscriptions from server-side applications, please use [POST /api/back-in-stock-subscriptions](https://developers.klaviyo.com/en/v2024-06-15/reference/create_back_in_stock_subscription.md).

- Revision header: `revision: 2024-06-15` (required)
- Scopes: `catalogs:write`, `profiles:write`
- Authentication: Public API key (site ID), in the `company_id` query parameter
- Rate limits: Burst: `350/s`, Steady: `3500/m`

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/client/back-in-stock-subscriptions/?company_id=PUBLIC_API_KEY' \
     --header 'accept: application/json' \
     --header 'revision: 2024-06-15' \
     --header 'content-type: application/json' \
     --data '{
  "data": {
    "type": "back-in-stock-subscription",
    "attributes": {
      "channels": [
        "EMAIL",
        "SMS"
      ],
      "profile": {
        "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
        "email": "sarah.mason@klaviyo-demo.com",
        "phone_number": "+15005550006",
        "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe"
      }
    }
  }
}'
```

## Query parameters

- `company_id` (string, required): Your Public API Key / Site ID. See [this article](https://help.klaviyo.com/hc/en-us/articles/115005062267) for more details. Example: `PUBLIC_API_KEY`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2024-06-15`

## Request body

Content type: `application/json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `back-in-stock-subscription`
  - `attributes` (object, required)
    - `channels` (string[], required): 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). Allowed values: `EMAIL`, `PUSH`, `SMS`
    - `profile` (object, required)
      - `data` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `relationships` (object)
    - `variant` (object)
      - `data` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.

### Example request body

```json
{
  "data": {
    "type": "back-in-stock-subscription",
    "attributes": {
      "channels": [
        "EMAIL",
        "SMS"
      ],
      "profile": {
        "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
        "email": "sarah.mason@klaviyo-demo.com",
        "phone_number": "+15005550006",
        "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe"
      }
    }
  }
}
```

## Responses

### 202: Success

This response has no body.

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