---
title: "Get one audit record"
description: "Every resource the action changed."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/businesses/get-one-audit-record"
---
# Get one audit record

> Every resource the action changed.

<api-operation method="GET" path="/v1/businesses/{biz}/audit_logs/{id}">
<template v-slot:docs="">

Returns an `audit_record`: the actor, source and origin IP of ONE action, plus a `blocks` array holding a block per resource it changed. One action can change several resources (activating a subscription also raises an invoice), and the rows sharing its `trace_id` are that action. Each block carries the changed-field diff (`before`/`after`) and, when a snapshot was captured, the whole record on both sides (`before_full`/`after_full`) so the change can be read in context. `snapshot` says which: `available` (both sides), `created` (no prior state — the record was created), or `none` (no snapshot captured, or it was erased with the customer's personal data). Pass `?source=<resource_type>` to hoist that resource's block to the front; it only reorders, every block is always returned.

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        biz
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      Business id (biz_…)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      The audit log's id.
    </td>
  </tr>
</tbody>
</table>

## Query parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        source
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      Resource type whose block should lead.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      The audit record
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      No such audit log
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/businesses/biz_XXXXXXXXXXXX01/audit_logs/XXXXXXXXXXXX01" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such audit log"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
