Skip to main content
GET
/
api
/
v1
/
accounts
/
{account_id}
/
audit_logs
List Audit Logs in Account
curl --request GET \
  --url https://app.chatwoot.com/api/v1/accounts/{account_id}/audit_logs \
  --header 'api_access_token: <api-key>'
{
  "per_page": 15,
  "total_entries": 150,
  "current_page": 1,
  "audit_logs": [
    {
      "id": 123,
      "auditable_id": 123,
      "auditable_type": "<string>",
      "auditable": {},
      "associated_id": 123,
      "associated_type": "<string>",
      "user_id": 123,
      "user_type": "<string>",
      "username": "<string>",
      "action": "create",
      "audited_changes": {},
      "version": 123,
      "comment": "<string>",
      "request_uuid": "<string>",
      "created_at": 123,
      "remote_address": "<string>"
    }
  ]
}

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

Query Parameters

page
integer
default:1

Page number for pagination

Response

Success

per_page
integer

Number of items per page

Example:

15

total_entries
integer

Total number of audit log entries

Example:

150

current_page
integer

Current page number

Example:

1

audit_logs
object[]

Array of audit log entries

I