> ## 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.

# Initialize subscription entitlements from plan

> Creates entitlements for a subscription based on the plan configuration



## OpenAPI

````yaml specs/entitlements_api_docs.json post /api/v1/sub-entitlement/initialize
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/sub-entitlement/initialize:
    post:
      tags:
        - Subscription Entitlements
      summary: Initialize subscription entitlements from plan
      description: Creates entitlements for a subscription based on the plan configuration
      operationId: SubEntitlementController_initializeFromPlan
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitializeEntitlementsDto'
      responses:
        '200':
          description: Entitlements initialized successfully
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '404':
          description: Not Found - Plan or subscription not found
components:
  schemas:
    InitializeEntitlementsDto:
      type: object
      properties:
        subscriptionId:
          type: string
          description: The ID of the subscription to initialize
          example: 123e4567-e89b-12d3-a456-426614174000
        planId:
          type: string
          description: The ID of the plan to initialize from
          example: 123e4567-e89b-12d3-a456-426614174001
      required:
        - subscriptionId
        - planId

````