List audit logs
curl --request GET \
--url https://api.langdock.com/audit-logs/{workspace_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.langdock.com/audit-logs/{workspace_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.langdock.com/audit-logs/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.langdock.com/audit-logs/{workspace_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.langdock.com/audit-logs/{workspace_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.langdock.com/audit-logs/{workspace_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.langdock.com/audit-logs/{workspace_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2026-02-09T14:30:00Z",
"actor_id": "u1234567-89ab-cdef-0123-456789abcdef",
"actor_type": "USER",
"actor_name": "jane.doe@example.com",
"action": "user.updated",
"entity_type": "User",
"entity_id": "u7654321-89ab-cdef-0123-456789abcdef",
"ip_address": "203.0.113.42",
"user_agent": "Mozilla/5.0",
"changes": {
"before": {
"role": "MEMBER"
},
"after": {
"role": "ADMIN"
}
},
"snapshot": null
}
],
"next_cursor": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Audit Logs API
Audit Logs auflisten
Rufe eine paginierte Liste von Audit-Log-Einträgen für deinen Workspace ab.
GET
/
audit-logs
/
{workspace_id}
List audit logs
curl --request GET \
--url https://api.langdock.com/audit-logs/{workspace_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.langdock.com/audit-logs/{workspace_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.langdock.com/audit-logs/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.langdock.com/audit-logs/{workspace_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.langdock.com/audit-logs/{workspace_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.langdock.com/audit-logs/{workspace_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.langdock.com/audit-logs/{workspace_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2026-02-09T14:30:00Z",
"actor_id": "u1234567-89ab-cdef-0123-456789abcdef",
"actor_type": "USER",
"actor_name": "jane.doe@example.com",
"action": "user.updated",
"entity_type": "User",
"entity_id": "u7654321-89ab-cdef-0123-456789abcdef",
"ip_address": "203.0.113.42",
"user_agent": "Mozilla/5.0",
"changes": {
"before": {
"role": "MEMBER"
},
"after": {
"role": "ADMIN"
}
},
"snapshot": null
}
],
"next_cursor": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Gibt Audit-Log-Einträge für einen Workspace mit cursor-basierter Pagination zurück. Jeder Eintrag dokumentiert eine Aktion im Workspace — wer sie ausgeführt hat, was sich geändert hat und wann.
Basis-URL
https://api.langdock.com/audit-logs/{workspace_id}
Dedicated DeploymentsErsetze
api.langdock.com durch <your-deployment-url>/api/public in allen Anfragen.Parameter
Verwende die Query-Parameterfrom und to, um ein Zeitfenster festzulegen, und den cursor-Parameter, um durch die Ergebnisse zu blättern.
Rate Limits
Das Rate Limit für den Audit Logs Endpunkt beträgt 500 RPM (Anfragen pro Minute) und wird je Workspace und API-Key begrenzt. Für diesen Endpunkt gilt kein Token-Limit. Wenn du dein Rate Limit überschreitest, erhältst du eine429 Too Many Requests-Antwort.
Falls du ein höheres Rate Limit benötigst, kontaktiere uns unter support@langdock.com.
Weitere Informationen: Details zu Voraussetzungen, Pagination und Filtern findest du in der Einführung in die Audit Logs API.
Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu Best Practices für API-Schlüssel.
Autorisierungen
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Pfadparameter
Workspace UUID. Must match the workspace associated with the API key; requests with a mismatched workspace_id are rejected with 403.
Abfrageparameter
Cursor for pagination (ID of last item from previous page)
Maximum number of items to return (default 50, max 50)
Erforderlicher Bereich:
1 <= x <= 50Start of date range filter (ISO 8601)
End of date range filter (ISO 8601)
Filter by entity type (e.g. "User", "Workspace")
Filter by actor UUID
War diese Seite hilfreich?