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

# 会社の通知デフォルトを一覧表示

> 有効な通知タイプについて、会社レベルのメールおよびWebhookのデフォルト設定を取得します。会社管理者権限が必要です。



## OpenAPI

````yaml /ja/api-reference/openapi.json get /notifications/company-defaults
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: Corgeaのスキャン機能および脆弱性管理機能を操作するためのAPI
servers:
  - url: https://www.corgea.app/api/v1
    description: 本番サーバー
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /notifications/company-defaults:
    get:
      tags:
        - 通知
      summary: 会社の通知デフォルトを一覧表示
      description: 有効な通知タイプについて、会社レベルのメールおよびWebhookのデフォルト設定を取得します。会社管理者権限が必要です。
      operationId: listCompanyNotificationDefaults
      responses:
        '200':
          description: 会社の通知デフォルトを正常に取得しました
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  defaults:
                    type: array
                    items:
                      $ref: '#/components/schemas/CompanyNotificationDefault'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/AdminRequired'
components:
  schemas:
    CompanyNotificationDefault:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/NotificationType'
        email_enabled:
          type: boolean
          nullable: true
          description: 会社のメールデフォルト。nullの場合はプラットフォームのデフォルトを継承します
        webhook_enabled:
          type: boolean
          nullable: true
          description: 会社のWebhookデフォルト。nullの場合はプラットフォームのデフォルトを継承します
    NotificationType:
      type: object
      properties:
        code:
          type: string
          example: scheduled_scan.daily_report
        name:
          type: string
          example: Daily Scheduled Scan Report
        description:
          type: string
          example: >-
            Summary email sent once per day with new issues discovered by
            scheduled scans.
        category:
          type: string
          example: scheduled_scans
        audience:
          type: string
          enum:
            - company_admins
            - all_users
        default_email_enabled:
          type: boolean
        default_webhook_enabled:
          type: boolean
  responses:
    BadRequest:
      description: リクエストが無効です
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Invalid JSON body
    Unauthorized:
      description: トークンが無効か、指定されていません
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
    AdminRequired:
      description: 会社管理者権限が必要です
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Admin permission required
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: 認証用のAPIキー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````