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

# Create a new entitlement

> Creates a new entitlement definition



## OpenAPI

````yaml specs/entitlements_api_docs.json post /api/v1/entitlements
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/entitlements:
    post:
      tags:
        - Entitlements
      summary: Create a new entitlement
      description: Creates a new entitlement definition
      operationId: EntitlementController_create
      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/CreateEntitlementDto'
      responses:
        '201':
          description: Entitlement created successfully
        '400':
          description: Bad Request - Invalid input data
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '409':
          description: Conflict - Entitlement code already exists
components:
  schemas:
    CreateEntitlementDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the entitlement
          example: Premium Access
        code:
          type: string
          description: The unique code for the entitlement
          example: PREMIUM_ACCESS
        description:
          type: string
          description: A description of the entitlement
          example: Grants access to premium features
        reportable:
          type: boolean
          description: Whether the entitlement is reportable
          example: true
          default: false
      required:
        - name
        - code

````