v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Logs

Get all logs

GET Audit logs

This endpoint retrieves audit logs, starting from the 0th index, within a specified time range.

Request

  • Parameters

    • from (string, required): The start date and time for the logs retrieval.

    • till (string, required): The end date and time for the logs retrieval.

The response will contain an array of log objects, each with an ID, creation timestamp, user ID, message, object type, and object ID.

get/logs/limit/50;0

Query parameters

object_idstring
Example:1
object_typestring
Example:Trunks
user_idstring
Example:3
fromstring
Example:2020-01-01 00:00:00
tillstring
Example:2021-09-25 00:00:00

Response

Successful operation

Example response

{
  "logs": [
    {
      "created_at": "2021-05-02 06:53:55",
      "id": "20930",
      "message": "admin tried to login",
      "object_id": null,
      "object_type": null,
      "user_id": "1"
    },
    {
      "created_at": "2021-05-05 07:22:21",
      "id": "20950",
      "message": "agnet tried to login",
      "object_id": null,
      "object_type": null,
      "user_id": "1"
    }
  ]
}