# Get an audit log entry

```http
GET https://trydimmi.com/api/v1/audit-logs/{audit_log}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:read`.

## Path parameters

- `audit_log` (string, required): Id of the audit log entry, starting with aud_, such as aud_01jx2m8k4t. Find it with GET /audit-logs.

## Response 200 (OK)

- `data` (object, required)
  - `actor` (object, required)
    - `id` (string | null, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `label` (string, required): The actor's name as it was when the entry was written, so it still reads right after a member or token is gone.
    - `type` (string, required): The kind of actor: member for a person, system for work dimmi did on its own.
    - `via` (object, required)
      - `id` (string | null, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `kind` (string, required): The kind of credential the actor used: session, app, personal_token, oauth_client or cli.
  - `changes` (any, required): What changed, as a JSON object. An empty object when the event carries no details.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `event` (string, required): The name of what happened.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `ip` (string | null, required): The IP address the change came from. Null when not known, as for work the system did.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `request_id` (string | null, required): Id of the API request that made the change, for matching against logs. Null when there was none.
  - `subject` (object, required)
    - `id` (string | null, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `label` (string | null, required): The subject's name as it was when the entry was written. Null when it has none.
    - `type` (string, required): The kind of thing the change was about, such as member, team, invitation or token.
  - `user_agent` (string | null, required): The browser or client that made the change. Null when not known.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/audit-logs/{audit_log}' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "actor": {
      "id": "<string>",
      "label": "<string>",
      "type": "<string>",
      "via": {
        "id": "<string>",
        "kind": "<string>"
      }
    },
    "changes": null,
    "created_at": "2026-11-01T09:30:00Z",
    "event": "<string>",
    "id": "<string>",
    "ip": "<string>",
    "object": "<string>",
    "request_id": "<string>",
    "subject": {
      "id": "<string>",
      "label": "<string>",
      "type": "<string>"
    },
    "user_agent": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
