> ## 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 notification config

> Create a new notification config with the provided details. Note: This endpoint is restricted for internal use only.



## OpenAPI

````yaml specs/billing_api_docs.json post /api/v1/notification-configs
openapi: 3.0.1
info:
  title: Billing API
  description: Billing service for managing subscriptions, payments, and entitlements
  contact: {}
  version: '1.0'
servers:
  - url: https://dev-billing-api.iqraa.ai/api/v1
security: []
tags:
  - name: Customers
    description: Customers related endpoints
  - name: Subscriptions
    description: Subscription related endpoints
  - name: Plans
    description: Plans related endpoints
  - name: Entitlements
    description: Entitlements related endpoints
  - name: Payments
    description: Payments related endpoints
  - name: Emails
    description: Email related endpoints
paths:
  /api/v1/notification-configs:
    post:
      tags:
        - Notification Configs
      summary: Create a new notification config
      description: >-
        Create a new notification config with the provided details. Note: This
        endpoint is restricted for internal use only.
      operationId: NotificationConfigController_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/CreateNotificationConfigDto'
      responses:
        '201':
          description: Notification config created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateNotificationConfigDto'
        '400':
          description: Bad Request - Invalid notification config data
        '401':
          description: Unauthorized - Missing or invalid admin API key
components:
  schemas:
    CreateNotificationConfigDto:
      type: object
      properties:
        event:
          type: string
          example: trial_period_expiry
          description: Trial Period Expiry
        timePeriod:
          example:
            - 1
            - 2
            - 3
          description: Time period for the event
          type: array
          items:
            type: string
        unit:
          type: string
          example: seconds
          description: Unit of measurement for the time period
        templateName:
          type: string
          example: notificationservice-template-testing
          description: Name of the template
        senderEmail:
          type: string
          example: sinan@razi.ai
          description: Sender email
        senderName:
          type: string
          example: Sinan
          description: Sender Name
        supportEmail:
          type: string
          example: sinan@razi.ai
          description: Support Email
        productName:
          type: string
          example: Razi
          description: Product Name
      required:
        - event
        - timePeriod
        - unit
        - templateName
        - senderEmail
        - senderName
        - supportEmail
        - productName

````