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

# Cancel Session

> Cancel a pending session.

Only sessions in PENDING or COLLECTING status can be cancelled.

**Authentication:** API Key (Bearer token)



## OpenAPI

````yaml /openapi.json post /v1/sessions/{session_id}/cancel
openapi: 3.1.0
info:
  title: Maven API
  description: >-
    Voice payment infrastructure — collect credit card payments securely over
    phone calls.
  version: 1.0.0
servers: []
security: []
paths:
  /v1/sessions/{session_id}/cancel:
    post:
      tags:
        - Public API (v1)
        - Sessions
      summary: Cancel Session
      description: |-
        Cancel a pending session.

        Only sessions in PENDING or COLLECTING status can be cancelled.

        **Authentication:** API Key (Bearer token)
      operationId: cancel_session_v1_sessions__session_id__cancel_post
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - API Key: []
components:
  schemas:
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    API Key:
      type: http
      description: 'Enter your API key: mvn_test_xxx or mvn_live_xxx'
      scheme: bearer

````