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

# POST /api/v1/subscribe

`POST /api/v1/subscribe`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/subscribe`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Create a subscription checkout URL or a billing page link only after the user confirms. The request never completes payment by itself. An account with a plan gets the dashboard billing page, where the user signs in to manage billing.

## Request body

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

## Response `200`

Billing URL

- object
  - `url` string, uri, required: Checkout URL, or the dashboard billing page for an account with a plan.
  - `status` 'checkout_created' | 'already_subscribed' | 'payment_issue', required
  - `message` string, required

## Other responses

- `401`: Unauthenticated
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `4XX`: Client error. The error code says what to fix.
- `default`: Unexpected error.

## Changes

- **2026-10-20** `45942c75fdc2`: 10 warning
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `4XX`
  - …6 more

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

---

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