curl "$API_URL/ops/audit/$ID" \
-H "Authorization: Bearer $TOKEN"
req, err := http.NewRequestWithContext(ctx, http.MethodGet,
apiURL + "/ops/audit/" + id, nil)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+token)
res, err := http.DefaultClient.Do(req)
if err != nil {
return err
}
defer res.Body.Close()
const res = await fetch(`${apiUrl}/ops/audit/${id}`, {
method: "GET",
headers: {
Authorization: `Bearer ${token}`,
},
});
const data = await res.json();
{
"action": "settings.value.changed",
"actor_kind": "user",
"id": 0,
"metadata": {},
"occurred_at": "2026-09-15T12:00:00Z",
"outcome": "success",
"recorded_at": "2026-09-15T12:00:00Z",
"actor_id": "usr_mfrggzdfmztwq2lk",
"actor_label": "string",
"ip": "string",
"org_id": "string",
"request_id": "string",
"resource_id": "example.ping_message",
"resource_type": "setting",
"trace_id": "string",
"user_agent": "string"
}
{
"code": "string",
"status": 401,
"title": "Unauthorized",
"detail": "string",
"request_id": "req_9f86d081884c7d65",
"type": "string"
}
{
"code": "string",
"status": 403,
"title": "Forbidden",
"detail": "string",
"request_id": "req_9f86d081884c7d65",
"type": "string"
}
{
"code": "string",
"status": 404,
"title": "Not Found",
"detail": "string",
"request_id": "req_9f86d081884c7d65",
"type": "string"
}
{
"code": "string",
"status": 422,
"title": "Unprocessable Entity",
"detail": "string",
"errors": [
{
"message": "expected length >= 1",
"location": "body.name"
}
],
"request_id": "req_9f86d081884c7d65",
"type": "string"
}