---
title: "Post Event"
method: POST
path: "/audit/events"
tags: ["audit"]
---

# Post Event

`POST /audit/events`

## Request

- Base URL: `https://api.b2metric.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.b2metric.com/audit/events`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- AuditEventIn
  - `type` 'tenant.cross_access' | 'connection.use', required
  - `at` string, date-time, required
  - `app` string, required
  - `actor_sub` string, required
  - `actor_email` string, nullable
  - `actor_tenants` string[]
  - `target_workspace_id` string, uuid, required
  - `target_tenant` string, required
  - `access` 'read' | 'write', nullable
  - `resource` string, required
  - `connection_id` string, nullable
  - `request_id` string, required

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/b2metric/apis/b2metric-license-api.md) - [All operations](https://skmtc.dev/b2metric/apis/b2metric-license-api/llms.txt) - [OpenAPI document](https://skmtc.dev/b2metric/apis/b2metric-license-api/revisions/5c26e11e8b53?raw)
