---
title: "Create subscription checkout"
method: POST
path: "/api/v1/subscribe"
tags: ["Subscribe"]
---

# Create subscription checkout

`POST /api/v1/subscribe`

Create a subscription checkout or billing-management URL only after the user confirms. The request never completes payment by itself.

## Request body

- object
  - `tier` 'starter' | 'pro' | 'business' — Subscription tier to pre-select.

## Response `200`

Billing URL

- object
  - `url` string, uri, required
  - `status` 'checkout_created' | 'already_subscribed' | 'payment_issue', required
  - `message` string, required

## Other responses

- `401` — Unauthenticated
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `default` — Unexpected error.

## Changes

- **2026-08-12** `5d4938bb7de3` — 54 warning
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `default`
  - …50 more
- **2026-08-12** `4da209b29df8` — 18 warning
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `default`
  - …14 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api-2/changes/api/v1/subscribe/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api-2.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-2/revisions/834c16fa45e8/schema)
