> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contentignite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export audit log entries as CSV

> Builds a CSV of every audit log entry matching the filters and returns it inside the JSON response. Takes the same filters as listing entries, without paging. `start` and `end` are required, and the range can be up to 90 days, or 366 days when `publisher_uid` is set.

There's one row per changed field, or one row for a delete or when no field change is available. Columns: Event ID, Timestamp (UTC), User ID, User Name, User Email, Client, Action, Entity Type, Entity Table, Entity, Record ID, Record Names, Organisation ID, Related Publisher UIDs, Related Config (Ad Unit) IDs, Related Ad Stack IDs, Match Reasons, Context Label, Context Value, Field, Previous Value, New Value, Summary.



## OpenAPI

````yaml /openapi.json get /v1/audit-log/export
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality. 


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Campaign Reports
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Benchmarking
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Publisher
  - name: Publisher/Publisher Stack
  - name: Publisher/Publisher Tag
  - name: Publisher/Publisher Meta
  - name: Publisher/Experiment
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: AI
  - name: AI/Activity
  - name: Billing
  - name: Billing/Invoice
  - name: Audit Log
  - name: Integration
  - name: Integration/Mapping
  - name: User
  - name: User/Account
  - name: Mapping
  - name: public
  - name: '[IN PROGRESS] Integration/Mapping'
  - name: '[IN PROGRESS] Integration'
paths:
  /v1/audit-log/export:
    get:
      tags:
        - Audit Log
        - public
      summary: Export audit log entries as CSV
      description: >-
        Builds a CSV of every audit log entry matching the filters and returns
        it inside the JSON response. Takes the same filters as listing entries,
        without paging. `start` and `end` are required, and the range can be up
        to 90 days, or 366 days when `publisher_uid` is set.


        There's one row per changed field, or one row for a delete or when no
        field change is available. Columns: Event ID, Timestamp (UTC), User ID,
        User Name, User Email, Client, Action, Entity Type, Entity Table,
        Entity, Record ID, Record Names, Organisation ID, Related Publisher
        UIDs, Related Config (Ad Unit) IDs, Related Ad Stack IDs, Match Reasons,
        Context Label, Context Value, Field, Previous Value, New Value, Summary.
      operationId: exportAuditLog
      parameters:
        - name: start
          in: query
          description: >-
            Earliest change to include, in UTC. A date (`YYYY-MM-DD`) starts at
            midnight; a date-time (ISO 8601, for example `2026-11-20T09:30:00Z`)
            starts at that minute. A value with an offset is converted to UTC.
          required: true
          schema:
            type: string
        - name: end
          in: query
          description: >-
            Latest change to include, in UTC. A date (`YYYY-MM-DD`) includes the
            whole day; a date-time (ISO 8601) includes the whole of that minute.
          required: true
          schema:
            type: string
        - name: publisher_uid
          in: query
          description: >-
            Publisher uid, or a comma-separated list of them. Only changes
            related to these publishers, including their configs (ad units) and
            ad stacks (current and past) and their organisations' integration
            mappings. Uids that don't exist or that you can't access are
            ignored; if none are left, no changes are returned.
          required: false
          schema:
            type: string
            pattern: ^\d+(,\d+)*$
        - name: tag_impacting
          in: query
          description: >-
            Whether to only include changes that affect the publisher tag. Also
            accepts `true`, `yes` and `on` for `1`. Values: `0` = All changes,
            `1` = Only changes that affect the tag.
          required: false
          schema:
            type: string
            enum:
              - '0'
              - '1'
              - 'true'
              - 'false'
              - 'yes'
              - 'no'
              - 'on'
              - 'off'
            default: '0'
        - name: entity_types
          in: query
          description: >-
            Comma-separated entity types (table names) to include, for example
            `publisher_tag_config,ad_stack`. Values with characters other than
            letters, digits and underscores are dropped, and `all` is ignored.
            With `tag_impacting`, only the types that affect the tag are kept.
          required: false
          schema:
            type: string
        - name: entity_type
          in: query
          description: >-
            Older single-value form of `entity_types`, used only when
            `entity_types` is empty. Also accepts a comma-separated list.
          required: false
          schema:
            type: string
        - name: event_type
          in: query
          description: >-
            Type of change. Values: `all` = All changes, `insert` = Created,
            `update` = Updated, `delete` = Deleted.
          required: false
          schema:
            type: string
            enum:
              - all
              - insert
              - update
              - delete
            default: all
        - name: client
          in: query
          description: >-
            Where the change was made. Case-insensitive. Values: `all` =
            Anywhere, `direct` = Directly in the platform or the API, `mcp` =
            Through an AI client (MCP).
          required: false
          schema:
            type: string
            enum:
              - all
              - direct
              - mcp
            default: all
        - name: user_id
          in: query
          description: User id. Only changes made by this user. `0` is the system.
          required: false
          schema:
            type: integer
        - name: search
          in: query
          description: >-
            Free-text search across entity type, action, client, the record
            before and after the change, user id and organisation id.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: 'OK: The CSV export.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    description: >-
                      Number of audit log entries exported. There can be more
                      rows, one per changed field.
                  csv:
                    type: string
                    description: CSV text with a header row, one row per changed field.
                  filename:
                    type: string
                    description: >-
                      Suggested file name:
                      `audit-log-<start>-to-<end>-<today>.csv`, with times as
                      `YYYY-MM-DD-HHMM`.
                  success:
                    type: boolean
                    enum:
                      - true
                    description: Always true on success.
                required:
                  - count
                  - csv
                  - filename
                  - success
              example:
                count: 1
                csv: >
                  Event ID,Timestamp (UTC),User ID,User Name,User
                  Email,Client,Action,Entity Type,Entity Table,Entity,Record
                  ID,Record Names,Organisation ID,Related Publisher UIDs,Related
                  Config (Ad Unit) IDs,Related Ad Stack IDs,Match
                  Reasons,Context Label,Context Value,Field,Previous Value,New
                  Value,Summary

                  48211,2026-11-20 14:32:11,866,Alex
                  Example,alex@example.com,Direct,Update,Config (Ad
                  Unit),publisher_tag_config,Article MPU,"1452, 18620,
                  311","Config (ad unit): Article MPU; Publisher: example.com;
                  Ad stack: Display - Prebid",3,18620,1452,"298,
                  311",,,,Stack,298,311,Alex Example updated Article MPU
                filename: audit-log-2026-11-01-0000-to-2026-11-20-2359-2026-11-23.csv
                success: true
          headers: {}
        '400':
          description: >-
            Bad Request: `start` or `end` is missing or invalid, `end` isn't
            after `start`, the range is longer than 90 days (366 with
            `publisher_uid`), `client` isn't a known value, or `publisher_uid`
            isn't a list of whole numbers.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Audit log export date range is limited to 90 days.
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: User forbidden
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.