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

# Get an X402 session

> Get the purchased session's status and original expiry without another payment. Authenticate with managementToken, not the browser token. Connection credentials are not reissued.

Use the `managementToken` returned when purchasing the session as a bearer token.
No additional payment or Hyperbrowser API key is required. See the
[X402 session guide](/docs/integrations/x402/sessions#get-session-status-and-stop-the-browser) for cURL examples.


## OpenAPI

````yaml openapi.json GET /x402/session/{id}
openapi: 3.0.1
info:
  title: Hyperbrowser API
  version: 1.0.0
servers:
  - url: https://api.hyperbrowser.ai
    description: Production server
security: []
paths:
  /x402/session/{id}:
    get:
      summary: Get an X402 session
      description: >-
        Get the purchased session's status and original expiry without another
        payment. Authenticate with managementToken, not the browser token.
        Connection credentials are not reissued.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Purchased session ID.
      responses:
        '200':
          description: Success. No payment is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X402SessionStatus'
        '400':
          description: Invalid session ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, expired, or incorrectly scoped management token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: The token authorizes a different session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Session not found for the token's session and team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Session lookup or stop failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - X402SessionManagement: []
components:
  schemas:
    X402SessionStatus:
      type: object
      additionalProperties: false
      required:
        - id
        - status
        - startTime
        - endTime
        - timeoutMinutes
        - expiresAt
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - active
            - closed
            - error
            - close-error
        startTime:
          type: integer
          format: int64
          nullable: true
          description: Session start timestamp in Unix milliseconds, when available.
        endTime:
          type: integer
          format: int64
          nullable: true
          description: Session end timestamp in Unix milliseconds, when available.
        timeoutMinutes:
          type: integer
          minimum: 5
          maximum: 60
          description: Prepaid duration chosen at creation.
        expiresAt:
          type: string
          format: date-time
          description: >-
            Original purchased expiry, unchanged by status checks or an early
            stop.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    X402SessionManagement:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The managementToken from the X402 session purchase response. Valid for
        24 hours and scoped to that session; no API key or further payment is
        required.

````

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