> ## Documentation Index
> Fetch the complete documentation index at: https://docs.headwaters.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Checkout Session

> Create a Stripe Checkout session for a FIRST subscription: Connect ($17/month) or Pro
($49/month). Returns a checkout_url the client should redirect the user to.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/billing/checkout
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/billing/checkout:
    post:
      tags:
        - Billing
      summary: Create Checkout Session
      description: >-
        Create a Stripe Checkout session for a FIRST subscription: Connect
        ($17/month) or Pro

        ($49/month). Returns a checkout_url the client should redirect the user
        to.
      operationId: create_checkout_session_v1_billing_checkout_post
      parameters:
        - name: plan
          in: query
          required: true
          schema:
            type: string
            description: 'Subscription plan to subscribe to: ''connect'' or ''pro'''
            title: Plan
          description: 'Subscription plan to subscribe to: ''connect'' or ''pro'''
        - name: source
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'Client source (e.g. ''cli''): appended to Stripe success URL'
            title: Source
          description: 'Client source (e.g. ''cli''): appended to Stripe success URL'
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CheckoutResponse:
      properties:
        checkout_url:
          type: string
          title: Checkout Url
      type: object
      required:
        - checkout_url
      title: CheckoutResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.