Audit Log

Entry list

List of Audit Log entries<br><br> To specify filters use ?filter[name]=value syntax (e.g. ?filter[type]=app.added,app.edited)<br><br> To return csv instead of json, use Accept: text/csv header

get/api/audit-log/v1/entries

Request

Query parameters

limitinteger

Limit for pagination

offsetinteger

Offset for pagination

typestring[]

Comma separated list of event types

date_fromstring date-time

Date from (ISO-8601 format)

date_tostring date-time

Date to (ISO-8601 format)

author_idstring[]

Comma separated list of UUIDs of event authors

subject_idstring[]

Comma separated list of UUIDs of event subjects (i.e. for Meta site edited it's the id of a meta site)

Filter items by provided criteria

{
  "type": [
    "app.added"
  ],
  "date_from": "2020-01-01T00:00:00Z",
  "date_to": "2020-01-03T00:00:00Z",
  "author_id": [
    "6edb1e3c-4c43-4760-ab76-682ad83146be"
  ],
  "subject_id": [
    "6edb1e3c-4c43-4760-ab76-682ad83146be"
  ]
}
sort'type' | 'email' | 'created_at' | 'ip' | 'subject_id' | '-type' | '-email' | '-created_at' | '-ip' | '-subject_id'

Sort by field

Response

OK

Example response

{
  "data": [
    {
      "id": "6edb1e3c-4c43-4760-ab76-682ad83146be",
      "attributes": {
        "type": "app.added",
        "payload": {
          "id": "4faa8732-8877-40aa-b772-7b243bf60423",
          "name": "Important name"
        },
        "author_id": "6edb1e3c-4c43-4760-ab76-682ad83146be",
        "author_email": "john@doe.com",
        "subject_id": "6edb1e3c-4c43-4760-ab76-682ad83146be"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.