---
title: "Create a Stripe checkout session for a project subscription."
method: POST
path: "/api/projects/{projectId}/subscribe"
tags: ["projects"]
---

# Create a Stripe checkout session for a project subscription.

`POST /api/projects/{projectId}/subscribe`

## Request

- Base URL: `https://api.spala.ai/api`
- URL: `https://api.spala.ai/api/api/projects/{projectId}/subscribe`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required

## Request body

- object
  - `planId` number

## Response `200`

Successful response

- object
  - `url` object

## Other responses

- `401`: Unauthorized - authentication required

---

[API](https://skmtc.dev/spala/apis/admin.md) · [All operations](https://skmtc.dev/spala/apis/admin/llms.txt) · [OpenAPI document](https://skmtc.dev/spala/apis/admin/revisions/723cc50571ee?raw)
