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

# Verify Notification Channel

> Send a test notification to the channel and mark it verified on success. Only verified channels can be attached to a schedule.



## OpenAPI

````yaml POST /notification-channels/{id}/verify
openapi: 3.1.0
info:
  title: Cronhost API
  description: >-
    Schedule HTTP requests with cron expressions. Cronhost allows you to
    automate HTTP requests on a schedule using familiar cron syntax.
  license:
    name: MIT
  version: 1.0.0
  contact:
    name: Cronhost Support
    email: help@cronho.st
    url: https://cronho.st
servers:
  - url: https://cronho.st/api/v1
    description: Production API
security:
  - apiKeyAuth: []
tags:
  - name: Schedules
    description: Create, manage, and control scheduled HTTP requests
  - name: Jobs
    description: Monitor and retrieve job execution details
  - name: Notification Channels
    description: Manage the destinations that receive schedule alerts
  - name: Schedule Notifications
    description: Configure which outcomes notify you per schedule
paths:
  /notification-channels/{id}/verify:
    post:
      tags:
        - Notification Channels
      summary: Verify Notification Channel
      description: >-
        Send a test notification to the channel and mark it verified on success.
        Only verified channels can be attached to a schedule.
      operationId: verifyNotificationChannel
      parameters:
        - name: id
          in: path
          required: true
          description: Unique channel identifier
          schema:
            type: string
            example: channel_123
      responses:
        '200':
          description: Channel verified
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/NotificationChannel'
                  success:
                    type: boolean
                    example: true
                required:
                  - data
                  - success
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    NotificationChannel:
      type: object
      required:
        - id
        - type
        - verified
        - label
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          description: Unique channel identifier
          example: channel_123
        type:
          type: string
          enum:
            - email
            - slack
            - discord
            - telegram
          description: Channel delivery type
          example: slack
        verified:
          type: boolean
          description: >-
            Whether the channel has passed verification. Only verified channels
            can be attached to a schedule.
          example: true
        label:
          type: string
          description: Display label (1-100 chars)
          example: Ops alerts
        createdAt:
          type: string
          format: date-time
          example: '2024-01-01T12:00:00.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2024-01-02T12:00:00.000Z'
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - code
          properties:
            message:
              type: string
              description: Human-readable error message
            code:
              type: string
              description: Error code for programmatic handling
            details:
              description: Additional error details
  responses:
    ValidationError:
      description: Validation error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            error:
              message: Validation error
              code: VALIDATION_ERROR
              details:
                fieldErrors:
                  cronExpression:
                    - Invalid cron expression
                  endpoint:
                    - Must be a valid URL
    UnauthorizedError:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            missingApiKey:
              summary: Missing API key
              value:
                error:
                  message: Missing x-api-key header
                  code: UNAUTHORIZED
            invalidApiKey:
              summary: Invalid API key
              value:
                error:
                  message: Invalid API key
                  code: UNAUTHORIZED
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            scheduleNotFound:
              summary: Schedule not found
              value:
                error:
                  message: Schedule not found
                  code: NOT_FOUND
            jobNotFound:
              summary: Job not found
              value:
                error:
                  message: Job not found
                  code: NOT_FOUND
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            error:
              message: Internal server error
              code: INTERNAL_ERROR
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get your API key from the [Cronhost
        dashboard](https://cronho.st/settings).

````