---
title: "Provision a domain ($49/mo subscription item)"
method: POST
path: "/v1/provisioned-domains"
tags: ["provisioned-domains"]
---

# Provision a domain ($49/mo subscription item)

`POST /v1/provisioned-domains`

## Request

- Base URL: `https://api.ctindex.io`
- URL: `https://api.ctindex.io/v1/provisioned-domains`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Attaches a `$49/mo` Provisioned Domain Index subscription item to the caller's existing Stripe subscription and returns the new `subscription_id` / `subscription_item_id`. The customer is billed on their existing payment method on the next invoice; no Checkout redirect is required. The webhook keeps the local `provisioned_domains` row in sync.

## Cookies

- `ctix_session` string, nullable

## Request body

- ProvisionedDomainCreate: Body for ``POST /v1/provisioned-domains`` — request to provision one domain at the ``$49/mo`` price. The route attaches a SubscriptionItem to the customer's existing subscription (no Checkout redirect) and returns the resulting Stripe subscription and item ids. The local ``provisioned_domains`` row is upserted in the same request so a retried POST hits the route's pre-flight 409 instead of Stripe; the webhook then keeps the row in sync with subsequent Stripe events.
  - `domain` string, required

## Response `200`

Successful Response

- ProvisionedDomainCheckoutResponse: Response to a successful ``POST /v1/provisioned-domains``. The route attaches a new line item to the caller's existing Stripe subscription (no Checkout redirect needed — the customer already authorised the payment method for their tier plan), so the response surfaces the Stripe identifiers directly instead of a checkout URL.
  - `status` string
  - `domain` string, required
  - `subscription_id` string, required
  - `subscription_item_id` string, required
  - `monthly_cost_usd` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctindex/apis/certindex-api.md) · [All operations](https://skmtc.dev/ctindex/apis/certindex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ctindex/apis/certindex-api/revisions/d5bc0ec85bc9?raw)
