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

# Fetch current plans

> Returns the live Memex pricing catalog used by usage-balance purchase flows. This endpoint does not require authentication.



## OpenAPI

````yaml /api-reference/openapi.json post /get-available-plans
openapi: 3.1.0
info:
  title: Memex REST API
  description: Memex REST API endpoints.
  version: '2026-03-10'
servers:
  - url: https://memex.garden/api
    description: Public edge router
  - url: https://rubctkzqxcdgkbbcprnu.supabase.co/functions/v1
    description: Direct Supabase Edge Functions
security:
  - bearerAuth: []
paths:
  /get-available-plans:
    post:
      summary: Fetch current plans
      description: >-
        Returns the live Memex pricing catalog used by usage-balance purchase
        flows. This endpoint does not require authentication.
      operationId: getAvailablePlans
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmptyRequest'
            examples:
              default:
                summary: Fetch available plans
                value: {}
      responses:
        '200':
          description: Available plans response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailablePlansResponse'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      security:
        - {}
components:
  schemas:
    EmptyRequest:
      type: object
      additionalProperties: false
    AvailablePlansResponse:
      type: object
      required:
        - environment
        - isProduction
        - plans
        - recoveryHint
      properties:
        environment:
          type: string
          enum:
            - production
            - development
            - unknown
        isProduction:
          type: boolean
        defaultPlanId:
          type: string
        plans:
          type: array
          items:
            $ref: '#/components/schemas/AvailablePlan'
        recoveryHint:
          type: string
      additionalProperties: false
    InternalServerError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: Internal server error
        message:
          type: string
      additionalProperties: true
    AvailablePlan:
      type: object
      required:
        - id
        - tierId
        - planName
        - pricingMode
        - billingPeriod
        - variantId
        - currency
        - amount
        - usageBalanceMicrosIncluded
        - isSubscription
      properties:
        id:
          type: string
        tierId:
          type: string
          enum:
            - starter
            - reader
            - unlimited
            - analyst
            - creator
            - lifetime
        planName:
          type: string
        pricingMode:
          type: string
          enum:
            - payg
            - subscription
            - topup
        billingPeriod:
          type: string
          enum:
            - one_time
            - monthly
            - yearly
        variantId:
          oneOf:
            - type: string
            - type: number
        currency:
          type: string
          const: USD
        amount:
          type: number
        usageBalanceMicrosIncluded:
          type: number
          description: >-
            Explicit usage-balance allocation in USD micros. This is independent
            of the amount paid.
        isSubscription:
          type: boolean
        isPublic:
          type: boolean
        setsCurrentPlan:
          type: boolean
        topUpForPlanId:
          type: string
        productId:
          oneOf:
            - type: string
            - type: number
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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