---
title: "Create Back In Stock Subscription"
description: "How to call Create Back In Stock Subscription (POST /api/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/reference/create_back_in_stock_subscription"
revision: "2026-10-15"
operationId: "create_back_in_stock_subscription"
method: "POST"
endpoint: "https://a.klaviyo.com/api/back-in-stock-subscriptions"
authentication: "privateKey"
scopes: ["catalogs:write","profiles:write"]
rateLimits: {"burst":"350/s","steady":"3500/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_back_in_stock_subscription.json"
related: ["https://developers.klaviyo.com/en/reference/catalogs/llms.txt"]
---

# Create Back In Stock Subscription

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_back_in_stock_subscription

```http
POST https://a.klaviyo.com/api/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 server-side applications. To create subscriptions from client-side contexts, use [POST /client/back-in-stock-subscriptions](https://developers.klaviyo.com/en/reference/create_client_back_in_stock_subscription.md).

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `catalogs:write`, `profiles:write`
- Rate limits: Burst: `350/s`, Steady: `3500/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_back_in_stock_subscription.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/back-in-stock-subscriptions' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "back-in-stock-subscription",
    "attributes": {
      "channels": [
        "EMAIL",
        "SMS"
      ],
      "profile": {
        "data": {
          "type": "profile",
          "attributes": {
            "id": "01GDDKASAP8TKDDA2GRZDSVP4H",
            "email": "sarah.mason@klaviyo-demo.com",
            "phone_number": "+15005550006",
            "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe"
          }
        }
      }
    },
    "relationships": {
      "variant": {}
    }
  }
}'
```

### CLI

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

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

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

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, CatalogsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const catalogsApi = new CatalogsApi(session)

const response = await catalogsApi.createBackInStockSubscription(
  {
    data: {
      type: 'back-in-stock-subscription',
      attributes: {
        channels: [
          'EMAIL',
          'SMS',
        ],
        profile: {
          data: {
            type: 'profile',
            attributes: {
              id: '01GDDKASAP8TKDDA2GRZDSVP4H',
              email: 'sarah.mason@klaviyo-demo.com',
              phoneNumber: '+15005550006',
              externalId: '63f64a2b-c6bf-40c7-b81f-bed08162edbe',
            },
          },
        },
      },
      relationships: {
        variant: {},
      },
    },
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Catalogs.create_back_in_stock_subscription(
  {
    data: {
      type: 'back-in-stock-subscription',
      attributes: {
        channels: [
          'EMAIL',
          'SMS',
        ],
        profile: {
          data: {
            type: 'profile',
            attributes: {
              id: '01GDDKASAP8TKDDA2GRZDSVP4H',
              email: 'sarah.mason@klaviyo-demo.com',
              phone_number: '+15005550006',
              external_id: '63f64a2b-c6bf-40c7-b81f-bed08162edbe',
            },
          },
        },
      },
      relationships: {
        variant: {},
      },
    },
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Catalogs->createBackInStockSubscription(
    [
        'data' => [
            'type' => 'back-in-stock-subscription',
            'attributes' => [
                'channels' => [
                    'EMAIL',
                    'SMS',
                ],
                'profile' => [
                    'data' => [
                        'type' => 'profile',
                        'attributes' => [
                            'id' => '01GDDKASAP8TKDDA2GRZDSVP4H',
                            'email' => 'sarah.mason@klaviyo-demo.com',
                            'phone_number' => '+15005550006',
                            'external_id' => '63f64a2b-c6bf-40c7-b81f-bed08162edbe',
                        ],
                    ],
                ],
            ],
            'relationships' => [
                'variant' => new \stdClass(),
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Headers

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

## Request body

Content type: `application/vnd.api+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`, `WHATSAPP`
    - `profile` (object, nullable)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_back_in_stock_subscription.json).
  - `relationships` (object, required)
    - `variant` (object, required)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_back_in_stock_subscription.json).

### Example request body

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

## Responses

### 202: Success

This response has no body.

### 4XX: Client Error

Content type: `application/vnd.api+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/vnd.api+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"
      }
    }
  ]
}
```
