---
title: "List audit logs for an integration"
method: GET
path: "/integration/{integration_id}/audit-logs/"
tags: ["integrations"]
---

# List audit logs for an integration

`GET /integration/{integration_id}/audit-logs/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/integration/{integration_id}/audit-logs/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

List the configuration change history for an integration (created, updated, deleted), ordered by creation time. Credential changes are recorded without their values.

## Path parameters

- `integration_id` string, uuid, required

## Query parameters

- `limit` integer: The number of items to return.
- `order_by` 'created_at'
- `order_direction` 'asc' | 'desc'
- `cursor` string, nullable: Set the cursor to the next or previous page. You can get the cursor from the previous page's response.

## Response `200`

Successful Response

- PaginatedResponseIntegrationAuditLogReadSchema
  - `data` IntegrationAuditLogReadSchema[]: The list of ResponseItems.
    - `action` 'created' | 'updated' | 'deleted', required: Action types for integration audit logs.
    - `actor` string, required
    - `actor_display_name` string, nullable
    - `actor_type` 'user' | 'api' | 'system', required: Who authorised an action.
    - `context` union, required
      - IntegrationCreatedContextSchema: Context for integration creation.
        - `config` object
        - `integration_type` string, required
        - `name` string, required
        - `type` 'created'
      - IntegrationUpdatedContextSchema: Context for integration update.
        - `changes` FieldChangeSchema[], required
          - `field` string, required
          - `new_value` unknown, required
          - `old_value` unknown, required
        - `type` 'updated'
      - IntegrationDeletedContextSchema: Context for integration deletion.
        - `config` object
        - `integration_type` string, required
        - `name` string, required
        - `type` 'deleted'
    - `created_at` string, date-time, required
    - `id` string, uuid, required
    - `integration_id` string, uuid, required
  - `next_page_cursor` string, nullable: The cursor to the next page. If there are no more pages, this is None.
  - `previous_page_cursor` string, nullable: The cursor to the previous page. If there are no previous pages, this is None.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Integration not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
