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

# Get Gate Status

> Check the status of an x402 payment gate — verify if payment required, received, or an access token has already been issued for this gate.

<RequestExample>
  ```bash theme={null}
  curl https://xenarch.dev/v1/gates/7f3a1b2c-9d4e-4a8b-b6f1-2c3d4e5f6a7b
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "gate_id": "7f3a1b2c-9d4e-4a8b-b6f1-2c3d4e5f6a7b",
    "status": "pending",
    "price_usd": "0.003",
    "created_at": "2026-04-10T14:30:00Z",
    "paid_at": null
  }
  ```
</ResponseExample>

## Notes

* Public endpoint — no authentication required (gate IDs are UUIDs, unguessable)
* Status values: `pending`, `paid`, `expired`
* Expired gates return status `expired` (auto-detected when `expires_at` has passed)


## OpenAPI

````yaml GET /v1/gates/{gate_id}
openapi: 3.1.0
info:
  title: Xenarch Platform
  version: 0.1.0
servers: []
security: []
paths:
  /v1/gates/{gate_id}:
    get:
      tags:
        - gates
      summary: Get Gate Status
      description: >-
        Check the status of a gate session. No auth required — gate IDs are
        unguessable UUIDs.
      operationId: get_gate_status_v1_gates__gate_id__get
      parameters:
        - name: gate_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Gate Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GateStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GateStatusResponse:
      properties:
        gate_id:
          type: string
          format: uuid
          title: Gate Id
        status:
          type: string
          title: Status
        price_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Price Usd
        created_at:
          type: string
          format: date-time
          title: Created At
        paid_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Paid At
      type: object
      required:
        - gate_id
        - status
        - price_usd
        - created_at
        - paid_at
      title: GateStatusResponse
    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

````