# Audit

3 endpoints at `https://api.kosa8.com`, sent with `Authorization: Bearer $KOSA8_API_KEY`. Generated from the API's own [OpenAPI description](https://api.kosa8.com/openapi.json), which a test holds to the router.

## Audit events, newest first[#]

GET`/v1/audit`scope audit:read

Parameters

`sandbox_id`query · string

sandbox_id

`actor`query · string

actor

`action`query · string

action

`since`query · string

since

`until`query · string

until

`before_seq`query · string

before_seq

`limit`query · string

limit

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/audit \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Recompute the org's hash chain[#]

GET`/v1/audit/verify`scope audit:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/audit/verify \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Audit events as NDJSON, oldest first, with hashes[#]

GET`/v1/audit/export`scope audit:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/audit/export \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

---
Source: https://docs.kosa8.com/api/audit/
