Public API
Other documentationsCommunity
  • Forest Admin API
  • Authentication
  • Endpoints
    • Activity logs
    • Admin logs
    • Notes
  • Rate limit
Powered by GitBook
On this page
  1. Endpoints

Admin logs

PreviousActivity logsNextNotes

Last updated 10 months ago

This API is not available for self-service at the moment, and you will need to if you are interested in using it.

List admin logs

This endpoint allows to list admin logs on a particular project.

Records are returned sorted by createdAt date, in descending order (from most recent to least recent).

Pagination can be achieved by filtering on createdAt date.

contact us
get
Authorizations
Path parameters
projectNamestring · min: 1Required

The case sensitive project name

Query parameters
limitinteger · min: 1 · max: 100Optional

This specifies a limit on the number of objects to return, ranging between 1 and 100. Limit is set to 10 by default

Default: 10
userEmailstring · emailOptional

The administrator email

userIdinteger · min: 1Optional

The administrator id

typestring · enumOptional

The type of action performed

Possible values:
initiatorstring · enumOptional

The entity that initiated the action

Possible values:
resourcestring · enumOptional

The resource affected by the action

Possible values:
createdAt.eqstring · date-timeOptional

Value to filter by

createdAt.ltstring · date-timeOptional

Maximum value to filter by (exclusive). This filter supports date-time values in ISO 8601 format (YYYY-MM-DDTHH:MM), e.g., 2024-06-04T09:21:26.159Z.

createdAt.ltestring · date-timeOptional

Minimum value to filter by (inclusive). This filter supports date-time values in ISO 8601 format (YYYY-MM-DDTHH:MM), e.g., 2024-06-04T09:21:26.159Z.

createdAt.gtstring · date-timeOptional

Minimum value to filter by (exclusive). This filter supports date-time values in ISO 8601 format (YYYY-MM-DDTHH:MM), e.g., 2024-06-04T09:21:26.159Z.

createdAt.gtestring · date-timeOptional

Maximum value to filter by (inclusive). This filter supports date-time values in ISO 8601 format (YYYY-MM-DDTHH:MM), e.g., 2024-06-04T09:21:26.159Z.

Responses
200
List of admin logs
application/json
429
Too many requests
application/json
4XX
Client error
application/json
5XX
Unexpected error
application/json
get
GET /v1/project/{projectName}/admin-logs HTTP/1.1
Host: public-api.forestadmin.com
Authorization: Bearer JWT
Accept: */*
{
  "hasMore": false,
  "parameters": {
    "projectName": "Forest"
  },
  "data": [
    {
      "object": "adminLog",
      "id": "rbCb98wCZ1y-_zv4wrXz",
      "type": "update",
      "initiator": "administrator",
      "createdAt": "2024-03-14T15:09:26.535Z",
      "resource": "team",
      "newValue": {
        "name": "Managers UK"
      },
      "user": {
        "object": "user",
        "id": 40,
        "username": "Alice",
        "email": "alice@forestadmin.com"
      },
      "previousValue": {
        "name": "Managers"
      }
    },
    {
      "object": "adminLog",
      "id": "fHCb9IXCZ1y_Pzv4wrXz",
      "type": "add",
      "initiator": "administrator",
      "createdAt": "2024-03-14T15:11:28.148Z",
      "resource": "user-project",
      "newValue": {
        "user": {
          "object": "user",
          "id": 45,
          "username": "John",
          "email": "john@forestadmin.com"
        },
        "role": {
          "object": "role",
          "name": "everything allowed"
        },
        "teams": [
          {
            "object": "team",
            "name": "Managers UK"
          }
        ],
        "permissionLevel": "editor"
      },
      "user": {
        "object": "user",
        "id": 40,
        "username": "Alice",
        "email": "alice@forestadmin.com"
      }
    }
  ]
}
  • List admin logs
  • GET/v1/project/{projectName}/admin-logs