GET
/api/v1/audit
Audit-Log mit Filtern, neueste zuerst; Weiterblättern über before_seq
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request GET \
"$ADBR_API_URL/api/v1/audit" \
-H "Authorization: Bearer $ADBR_API_TOKEN"Verwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs.
Authentifizierung und Rechte#
Authentifizierung: Bearer-Token
Scopes: audit:read
Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.
Parameter#
| Parameter | Ort | Pflicht | Beschreibung |
|---|---|---|---|
category | query | Nein | |
from | query | Nein | |
to | query | Nein | |
action | query | Nein | |
source | query | Nein | |
actor_type | query | Nein | |
entity_id | query | Nein | |
entity_no | query | Nein | |
result | query | Nein | |
search | query | Nein | |
request_id | query | Nein | |
before_seq | query | Nein | |
limit | query | Nein |
Vollständige Parameterschemas
OpenAPI JSON
[
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"profile"
]
},
{
"type": "string",
"enum": [
"startup"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"team"
]
}
]
},
"in": "query",
"name": "category",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "from",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "to",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 100
},
"in": "query",
"name": "action",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "source",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "actor_type",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 64
},
"in": "query",
"name": "entity_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "entity_no",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"ok"
]
},
{
"type": "string",
"enum": [
"denied"
]
},
{
"type": "string",
"enum": [
"error"
]
}
]
},
"in": "query",
"name": "result",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 200
},
"in": "query",
"name": "search",
"required": false
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"in": "query",
"name": "request_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "before_seq",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"in": "query",
"name": "limit",
"required": false
}
]Anfragekörper#
Kein Anfragekörper deklariert.
Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"items",
"next_before_seq"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"seq",
"id",
"ts",
"actor_type",
"actor_id",
"actor_label",
"source",
"action",
"entity_type",
"entity_id",
"entity_no",
"result",
"error_code",
"details",
"request_id"
],
"properties": {
"seq": {
"type": "integer"
},
"id": {
"type": "string"
},
"ts": {
"type": "integer"
},
"actor_type": {
"type": "string"
},
"actor_id": {
"type": [
"null",
"string"
]
},
"actor_label": {
"type": "string"
},
"source": {
"type": "string"
},
"action": {
"type": "string"
},
"entity_type": {
"type": [
"null",
"string"
]
},
"entity_id": {
"type": [
"null",
"string"
]
},
"entity_no": {
"type": [
"null",
"integer"
]
},
"result": {
"type": "string"
},
"error_code": {
"type": [
"null",
"string"
]
},
"details": {
"anyOf": [
{
"type": "object",
"properties": {},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"request_id": {
"type": [
"null",
"string"
]
}
}
}
},
"next_before_seq": {
"type": [
"null",
"integer"
]
}
}
}
}
}
}default · HTTP-Fehlerhülle. Status und error.code bezeichnen den Fehler.
OpenAPI JSON
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}Allgemeine Authentifizierungs- und Transportfehler können zusätzlich zu den dokumentierten Antworten auftreten.
OpenAPI-Definition#
Vollständige Operationsdefinition
OpenAPI JSON
{
"summary": "Audit-Log mit Filtern, neueste zuerst; Weiterblättern über before_seq",
"tags": [
"Audit-Log"
],
"parameters": [
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"profile"
]
},
{
"type": "string",
"enum": [
"startup"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"team"
]
}
]
},
"in": "query",
"name": "category",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "from",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "to",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 100
},
"in": "query",
"name": "action",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "source",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "actor_type",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 64
},
"in": "query",
"name": "entity_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "entity_no",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"ok"
]
},
{
"type": "string",
"enum": [
"denied"
]
},
{
"type": "string",
"enum": [
"error"
]
}
]
},
"in": "query",
"name": "result",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 200
},
"in": "query",
"name": "search",
"required": false
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"in": "query",
"name": "request_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "before_seq",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"in": "query",
"name": "limit",
"required": false
}
],
"x-required-scopes": [
"audit:read"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"items",
"next_before_seq"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"seq",
"id",
"ts",
"actor_type",
"actor_id",
"actor_label",
"source",
"action",
"entity_type",
"entity_id",
"entity_no",
"result",
"error_code",
"details",
"request_id"
],
"properties": {
"seq": {
"type": "integer"
},
"id": {
"type": "string"
},
"ts": {
"type": "integer"
},
"actor_type": {
"type": "string"
},
"actor_id": {
"type": [
"null",
"string"
]
},
"actor_label": {
"type": "string"
},
"source": {
"type": "string"
},
"action": {
"type": "string"
},
"entity_type": {
"type": [
"null",
"string"
]
},
"entity_id": {
"type": [
"null",
"string"
]
},
"entity_no": {
"type": [
"null",
"integer"
]
},
"result": {
"type": "string"
},
"error_code": {
"type": [
"null",
"string"
]
},
"details": {
"anyOf": [
{
"type": "object",
"properties": {},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"request_id": {
"type": [
"null",
"string"
]
}
}
}
},
"next_before_seq": {
"type": [
"null",
"integer"
]
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}