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

# Get payment session

> Retrieve payment session details by session ID



## OpenAPI

````yaml openapi.json get /sessions
openapi: 3.0.3
info:
  title: Warp API
  description: >-
    Comprehensive API for Warp platform including organizations, projects, ZK
    proofs, payments, and more
  version: 1.0.0
  contact:
    name: Warp Support
    email: support@usewarp.net
servers:
  - url: https://platform.usewarp.net
    description: Platform API
  - url: https://checkout.usewarp.net
    description: Checkout API
security:
  - bearerAuth: []
paths:
  /sessions:
    get:
      tags:
        - Checkout API
      summary: Get payment session
      description: Retrieve payment session details by session ID
      parameters:
        - name: session_id
          in: query
          required: true
          schema:
            type: string
          description: Payment session ID
      responses:
        '200':
          description: Payment session retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  session:
                    type: object
                    description: Payment session object
        '400':
          description: Missing session_id parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type: array
          items:
            type: object
          description: Detailed validation errors
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: JWT Bearer token authentication

````