Skip to main content
POST
/
billing
/
checkout
Create a Stripe checkout session
curl --request POST \
  --url https://api.spike.ac/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "interval": "month"
}
'
{
  "url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://doc.spike.ac/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication using either a Supabase JWT token or an API key (prefixed with sk_). Both token types are passed as Bearer tokens in the Authorization header.

Body

application/json
plan
enum<string>
required

The subscription plan to checkout

Available options:
pro
interval
enum<string>
default:month

Billing interval

Available options:
month,
year

Response

Checkout session created successfully

url
string<uri> | null
required

Stripe checkout session URL