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

# 失敗したログイン試行を取得

> ユーザーの失敗したログイン試行を取得します



## OpenAPI

````yaml /ja/api-reference/openapi.json get /auth/failed-logins
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:
  /auth/failed-logins:
    get:
      tags:
        - 認証
      summary: 失敗したログイン試行を取得
      description: ユーザーの失敗したログイン試行を取得します
      operationId: getAuthFailedLogins
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: ページネーションのページ番号
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 50
          description: 1ページあたりの結果件数
        - name: from_date
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: このISO 8601タイムスタンプより後の失敗したログインのみを含めます
        - name: to_date
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: このISO 8601タイムスタンプより前の失敗したログインのみを含めます
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: ユーザー名で絞り込みます
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: 結果の並び順
      responses:
        '200':
          description: 失敗したログイン試行を正常に取得しました
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  page:
                    type: integer
                  total_pages:
                    type: integer
                  total_failed_logins:
                    type: integer
                  failed_logins:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        timestamp:
                          type: string
                          format: date-time
                        username:
                          type: string
                        user_id:
                          type: integer
                        user_agent:
                          type: string
                        path:
                          type: string
        '401':
          description: トークンが無効か、指定されていません
        '403':
          description: 権限が不足しています
components:
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: 認証用のAPIキー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````