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

# List Plans

> Get paginated list of payment plans for the current user.



## OpenAPI

````yaml GET /protocol/plans
openapi: 3.1.0
info:
  title: Nevermined API
  description: >-
    API for managing AI agents, payment plans, and x402 payments in the
    Nevermined ecosystem.


    ## Prerequisites


    You need a Nevermined API Key to authenticate. Get one at
    [nevermined.app](https://nevermined.app) under **Settings > API Keys**.


    See the [5-Minute Setup Guide](/docs/integrate/quickstart/5-minute-setup)
    for detailed instructions.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox (Testing) - Base Sepolia
  - url: https://api.live.nevermined.app/api/v1
    description: Live (Production) - Base Mainnet
security:
  - bearerAuth: []
tags:
  - name: Protocol - Agents
    description: Endpoints for registering and managing AI agents
  - name: Protocol - Plans
    description: Endpoints for creating and managing payment plans
  - name: Protocol - Credits
    description: Endpoints for minting and redeeming credits
  - name: Protocol - Access
    description: Endpoints for access tokens and request validation
  - name: X402 - Permissions
    description: Endpoints for x402 delegated permissions
paths:
  /protocol/plans:
    get:
      tags:
        - Protocol - Plans
      summary: List Plans
      description: Get paginated list of payment plans for the current user.
      operationId: listPlans
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: offset
          in: query
          schema:
            type: integer
            default: 10
        - name: sortBy
          in: query
          schema:
            type: string
            default: createdAt
        - name: sortOrder
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: List of plans
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedPlans'
        '401':
          description: Unauthorized
components:
  schemas:
    PaginatedPlans:
      type: object
      properties:
        plans:
          type: array
          items:
            $ref: '#/components/schemas/Plan'
        totalCount:
          type: integer
        page:
          type: integer
        offset:
          type: integer
    Plan:
      type: object
      properties:
        planId:
          type: string
        name:
          type: string
        description:
          type: string
        priceConfig:
          $ref: '#/components/schemas/PriceConfig'
        creditsConfig:
          $ref: '#/components/schemas/CreditsConfig'
        isListed:
          type: boolean
        owner:
          type: string
    PriceConfig:
      type: object
      properties:
        priceType:
          type: string
          enum:
            - FIXED_PRICE
            - FREE
        tokenAddress:
          type: string
          description: ERC20 token address (e.g., USDC)
        amounts:
          type: array
          items:
            type: integer
          description: Price amounts (6 decimals for USDC)
        receivers:
          type: array
          items:
            type: string
          description: Wallet addresses to receive payment
    CreditsConfig:
      type: object
      properties:
        creditsType:
          type: string
          enum:
            - FIXED
            - EXPIRABLE
        amount:
          type: integer
          description: Number of credits
        minAmount:
          type: integer
          description: Minimum credits per request
        durationOfThePlan:
          type: integer
          description: Duration in seconds (for EXPIRABLE)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Nevermined API Key (starts with 'nvm:'). Get one at
        [nevermined.app](https://nevermined.app) under **Settings > API Keys**.

````