# API reference: Audit log

[Guide index](../../v1.md) · [API reference](../api-reference.md) · [Developer API](../api.md)

## `DELETE /v1/companies/{companyId}/audit`

| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
| `companyId` | path | string (uuid) | yes |  |

Answers 200 with object.

## `GET /v1/companies/{companyId}/audit`

| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
| `companyId` | path | string (uuid) | yes |  |
| `category` | query | string |  |  |
| `event` | query | string |  |  |
| `identityId` | query | string (uuid) |  |  |
| `resourceId` | query | string (uuid) |  |  |
| `from` | query | string (date-time) |  |  |
| `to` | query | string (date-time) |  |  |
| `page` | query | integer (int32) |  |  |
| `size` | query | integer (int32) |  |  |

Answers 200 with list of AuditEventResponse.

## Types

**AuditEventResponse**

| Field | Type | Required | Notes |
|---|---|---|---|
| `id` | string (uuid) | yes |  |
| `at` | string (date-time) | yes |  |
| `category` | string | yes |  |
| `event` | string | yes |  |
| `actorType` | string | yes |  |
| `actorId` | string |  |  |
| `identityId` | string (uuid) |  |  |
| `resourceId` | string (uuid) |  |  |
| `methodId` | string (uuid) |  |  |
| `threadId` | string (uuid) |  |  |
| `outcome` | string |  |  |
| `detail` | JsonNode |  |  |
| `visible` | boolean |  |  |
