GET

/api/v1/audit/export

Audit-Log als CSV oder JSONL exportieren (Filter wie bei der Liste)

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request GET \
  "$ADBR_API_URL/api/v1/audit/export" \
  -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#

ParameterOrtPflichtBeschreibung
categoryqueryNein
fromqueryNein
toqueryNein
actionqueryNein
sourcequeryNein
actor_typequeryNein
entity_idqueryNein
entity_noqueryNein
resultqueryNein
searchqueryNein
request_idqueryNein
formatqueryJa
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": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "csv"
          ]
        },
        {
          "type": "string",
          "enum": [
            "jsonl"
          ]
        }
      ]
    },
    "in": "query",
    "name": "format",
    "required": true
  }
]

Anfragekörper#

Kein Anfragekörper deklariert.

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "file_name",
          "count",
          "content_base64"
        ],
        "properties": {
          "file_name": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "content_base64": {
            "type": "string"
          }
        }
      }
    }
  }
}
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 als CSV oder JSONL exportieren (Filter wie bei der Liste)",
  "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": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "csv"
            ]
          },
          {
            "type": "string",
            "enum": [
              "jsonl"
            ]
          }
        ]
      },
      "in": "query",
      "name": "format",
      "required": true
    }
  ],
  "x-required-scopes": [
    "audit:read"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "file_name",
              "count",
              "content_base64"
            ],
            "properties": {
              "file_name": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              },
              "content_base64": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "default": {
      "description": "HTTP error envelope. The status and error.code identify the failure.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

Suche nach Headless, MCP, Cookies oder einem API-Endpunkt.

↑ ↓ NavigierenEnter ÖffnenEsc Schließen