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

# Get plan entitlement quotas by plan ID and optional entitlement code

> Retrieves quotas for a specific plan, optionally filtered by entitlement code



## OpenAPI

````yaml specs/entitlements_api_docs.json get /api/v1/plan-entitlement-quota/plan/{planId}/entitlement/{entitlementCode}
openapi: 3.1.0
info:
  title: Entitlement API
  version: 1.0.0
  description: API for managing entitlements and plan entitlement quotas.
servers:
  - url: https://dev-entitlements-api.iqraa.ai/api/v1
    description: Production server
security: []
tags: []
paths:
  /api/v1/plan-entitlement-quota/plan/{planId}/entitlement/{entitlementCode}:
    get:
      tags:
        - Plan Entitlement Quotas
      summary: Get plan entitlement quotas by plan ID and optional entitlement code
      description: >-
        Retrieves quotas for a specific plan, optionally filtered by entitlement
        code
      operationId: PlanEntitlementQuotaController_getPlanEntitlementQuota
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: planId
          required: true
          in: path
          description: ID of the plan
          example: 123e4567-e89b-12d3-a456-426614174000
          schema:
            type: string
        - name: entitlementCode
          required: false
          in: path
          description: Code of the entitlement (optional)
          example: storage_quota
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved the quotas
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PlanEntitlementQuota'
        '401':
          description: Unauthorized - Missing or invalid admin API key.
        '404':
          description: Not Found - Plan not found.
components:
  schemas:
    PlanEntitlementQuota:
      type: object
      properties: {}

````