---
title: "Create a workspace subscription checkout"
method: POST
path: "/workspaces/{slug}/subscriptions/checkout"
---

# Create a workspace subscription checkout

`POST /workspaces/{slug}/subscriptions/checkout`

## Request

- Base URL: `https://superskill.sh/api`
- URL: `https://superskill.sh/api/workspaces/{slug}/subscriptions/checkout`
- Auth: HTTP bearer

Requires a signed-in user. Creates an incomplete manual subscription for an active paid_subscription join policy. It does not grant membership; only the signed subscription webhook can activate or renew access.

## Path parameters

- `slug` string, required

## Request body

- object
  - `policyId` string
  - `provider` 'manual'

## Response `201`

Workspace subscription checkout

- object
  - `workspace` Workspace, required
    - `slug` string, required
    - `name` string, required
    - `type` 'company' | 'community' | 'team' | 'course' | 'agency' | 'chat', required
    - `visibility` 'private' | 'invite_only' | 'gated' | 'public' | 'unlisted', required
    - `plan` 'free' | 'team' | 'enterprise', required
    - `description` string, nullable
    - `avatarUrl` string, nullable
  - `policy` WorkspaceJoinPolicy, required: Workspace join gate metadata. No raw invite code, bot secret, token or external credential is exposed.
    - `id` string, required
    - `workspaceId` string
    - `workspaceSlug` string
    - `kind` 'invite' | 'email_domain' | 'telegram' | 'discord' | 'entitlement' | 'paid_subscription' | 'manual_approval', required
    - `status` 'active' | 'disabled', required
    - `role` 'member' | 'viewer', required
    - `title` string, nullable
    - `instructions` string, nullable
    - `config` object, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `subscription` WorkspaceSubscription, required: Read-only workspace subscription receipt and access window. Membership is granted only by webhook/sweep lifecycle, never by read endpoints.
    - `id` string, required
    - `workspaceSlug` string, required
    - `userId` string, required
    - `policyId` string, required
    - `provider` 'manual', required
    - `providerSubscriptionRef` string, required
    - `status` 'incomplete' | 'active' | 'past_due' | 'canceled' | 'expired', required
    - `currentPeriodStart` string, date-time, nullable
    - `currentPeriodEnd` string, date-time, nullable
    - `graceUntil` string, date-time, nullable
    - `accessUntil` string, date-time, nullable
    - `cancelAtPeriodEnd` boolean, required
    - `canceledAt` string, date-time, nullable
    - `checkoutUrl` string, nullable
    - `portalUrl` string, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `checkout_url` string, required
  - `next` string, required

## Other responses

- `400`: Bad request
- `401`: Authorization required
- `403`: Authorization was provided but is not allowed for this action
- `404`: Resource not found

---

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