Skip to main content
POST
/
v0
/
billing
/
checkout-session
curl --request POST \
  --url 'https://api.unify.ai/v0/billing/checkout-session' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "url": "string",
    "session_id": "string"
}
Create a Stripe Checkout session for the authenticated user / org. Resolves billing context from the API key, fetches user & billing data, creates a Stripe Checkout Session, and returns the redirect URL + session ID.

Authorizations

Authorization
string
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
curl --request POST \
  --url 'https://api.unify.ai/v0/billing/checkout-session' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "url": "string",
    "session_id": "string"
}