---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Returns a Stripe Checkout URL for the key owner. Give it to the user to…
    Reference for the POST /api/cli/billing/checkout endpoint in the
    BrainyShorts API.
sidebar:
  label: Get a checkout link
  badge: POST
title: Get a checkout link
type: openapi-operation
---
Returns a Stripe Checkout URL for the key owner. Give it to the user to open and pay. When the user already pays, returns a billing portal URL with `portal: true` for switching plans.

`POST /api/cli/billing/checkout`
