---
title: "Create Checkout"
method: POST
path: "/api/billing/checkout"
tags: ["billing"]
---

# Create Checkout

`POST /api/billing/checkout`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/billing/checkout`
- Auth: HTTP bearer

Create a Stripe Checkout session for upgrading to Pro.

## Request body

- CheckoutRequest: Request to create a checkout session.
  - `success_url` string, required
  - `cancel_url` string, required

## Response `200`

Successful Response

- CheckoutResponse: Response with checkout URL.
  - `checkout_url` string, required
  - `session_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
