# Login Logs (by Day)

Returns statistics about login logs grouped by day.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Account Operations - Team admin",
    "description": "The official SeaTable API Reference (OpenAPI 3.0).",
    "version": "6.2"
  },
  "servers": [
    {
      "url": "https://{server}",
      "variables": {
        "server": {
          "default": "cloud.seatable.io"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "metrics-enabled": false,
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Statistics",
      "description": "Retrieve statistics about system activities"
    }
  ],
  "components": {
    "securitySchemes": {
      "AccountTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This is the [Account-Token](/reference/authentication)."
      }
    },
    "parameters": {
      "page": {
        "name": "page",
        "description": "The page number you want to start showing the entries. If no value is provided, 1 will be used.",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "example": 1,
        "required": false
      },
      "per_page": {
        "name": "per_page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "The number of results that should be returned. If no value is provided, 25 results will be returned.",
        "example": 25,
        "required": false
      },
      "start": {
        "name": "start",
        "in": "query",
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "Start date in ISO format.",
        "example": "2025-11-01T06:00:00+01:00",
        "required": false
      },
      "end": {
        "name": "end",
        "in": "query",
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "End date in ISO format.",
        "example": "2025-11-30T18:00:00+01:00",
        "required": false
      },
      "org_id": {
        "name": "org_id",
        "in": "path",
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "required": true,
        "description": "The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin.",
        "example": 1
      }
    }
  },
  "paths": {
    "/api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/": {
      "get": {
        "tags": [
          "Statistics"
        ],
        "summary": "Login Logs (by Day)",
        "operationId": "getLoginLogStatisticsByDay",
        "description": "Returns statistics about login logs grouped by day.",
        "security": [
          {
            "AccountTokenAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/org_id"
          },
          {
            "$ref": "#/components/parameters/start"
          },
          {
            "$ref": "#/components/parameters/end"
          },
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/per_page"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "results": [
                    {
                      "date": "2025-11-27",
                      "number_of_attempts": 15,
                      "successful_attempts": 14,
                      "unsuccessful_attempts": 1
                    },
                    {
                      "date": "2025-11-28",
                      "number_of_attempts": 2,
                      "successful_attempts": 1,
                      "unsuccessful_attempts": 1
                    }
                  ],
                  "total_count": 2
                }
              }
            }
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 212,
      "2": 220,
      "3": 12,
      "4": 20,
      "5": 34,
      "6": 131,
      "7": 31,
      "8": 141,
      "9": 111,
      "10": 187,
      "11": 145
    }
  }
}
```