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

# Send a budget alert test notification



## OpenAPI

````yaml /api-reference/openapi.json post /alerts-v2/budgetAlerts/sendTest
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: ''
    description: Production server
security: []
paths:
  /alerts-v2/budgetAlerts/sendTest:
    post:
      tags:
        - Alerts V2
      summary: Send a budget alert test notification
      operationId: sendBudgetAlertTestV2
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    notificationChannel:
                      type: string
                      enum:
                        - EMAIL
                    emails:
                      type: array
                      items:
                        type: string
                        format: email
                      minItems: 1
                  required:
                    - notificationChannel
                    - emails
                - type: object
                  properties:
                    notificationChannel:
                      type: string
                      enum:
                        - SLACK
                    slackChannelId:
                      type: string
                      minLength: 1
                  required:
                    - notificationChannel
                    - slackChannelId
                - type: object
                  properties:
                    notificationChannel:
                      type: string
                      enum:
                        - TEAMS
                    teamsChannelId:
                      type: string
                      minLength: 1
                  required:
                    - notificationChannel
                    - teamsChannelId
            example:
              notificationChannel: EMAIL
              emails:
                - finops@acme.com
                - platform-leads@acme.com
      responses:
        '200':
          description: Test notification sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertTestSuccess'
        '400':
          description: Destination is invalid or not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    AlertTestSuccess:
      type: object
      properties:
        message:
          type: string
          enum:
            - Test notification sent successfully
      required:
        - message
    AlertError:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````