curl --request GET \
--url https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events', 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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events",
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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events"
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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events")
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": "<string>",
"workspace_id": 123,
"action_batch_id": "<string>",
"proposed_action_id": "<string>",
"event_type": "<string>",
"actor_type": "<string>",
"actor_id": "<string>",
"actor_name": "<string>",
"summary": "<string>",
"payload": {},
"sequence": 123,
"previous_hash": "<string>",
"event_hash": "<string>",
"hash_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"redacted": true
}
],
"next_cursor": "<string>",
"note": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Export the workspace audit log
Download the member audit export with pseudonymous consent proof. Account-bound keys are refused. Only explicit new grants admit this read.
curl --request GET \
--url https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events', 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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events",
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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events"
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://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://plainrouter.com/api/v1/workspaces/{workspace}/admin/audit-events")
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": "<string>",
"workspace_id": 123,
"action_batch_id": "<string>",
"proposed_action_id": "<string>",
"event_type": "<string>",
"actor_type": "<string>",
"actor_id": "<string>",
"actor_name": "<string>",
"summary": "<string>",
"payload": {},
"sequence": 123,
"previous_hash": "<string>",
"event_hash": "<string>",
"hash_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"redacted": true
}
],
"next_cursor": "<string>",
"note": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Authorizations
Query Parameters
Response
Exact web export event fields, in ascending sequence order.
hash_version 2 uses SHA-256 of the canonical durable event fields. Null hash_version marks a legacy segment whose original hashes cannot be recomputed. Its single audit.legacy_checkpoint freezes a canonical snapshot digest of that segment. Verification covers the current database snapshot; detecting tail deletion requires comparing a previously saved head hash and sequence. Recognised assignments: name=value (also name[]= and parent[name]=) in URLs, fragments and form bodies; "name": value in JSON, including JSON nested in strings; name: value and name => value for compound names or quoted, bracketed or braced names; payload key names. Names are trimmed and matched case-insensitively: access_token, appsecret_proof, client_secret, refresh_token, signature, token, secret and password. Bare token, signature, secret and password colon/arrow forms require quotes, brackets or braces. The JSON object key code is preserved; code is redacted only as a parameter. Up to six rounds of JSON-escape, percent and HTML-entity decoding are applied. Recognised remaining assignments are exported whole as [redacted]; changed payload keys are renamed without overwriting other entries. Independently, substrings matching /EAA[A-Za-z0-9]{30,}/ are redacted from Meta provider response bodies before storage and hashing, and from exported payloads, actor names and summaries, without requiring a credential name. HTTP(S) URL user-info is redacted from exported payload strings, including JSON strings; an @ in a URL query or fragment does not trigger this user-info rule. This URL user-info rule does not change stored provider response bodies. thumbnail_url query strings are removed. Other encodings of non-Meta secrets are not guaranteed to be caught: the assignment rules do not recognise look-alike names, base64/base64url, name/value pairs, Authorization headers, JS hex escapes or unnamed free text. The EAA backstop covers these only where the matching token text is intact. A changed event includes redacted: true. Clients cannot recompute its event_hash and should use the verify endpoint, which checks the original stored bytes. Member export consent proof: signal.consent_decision_recorded and signal.consent_withdrawal_received payloads include visitor-linked event_id, consent_state and timestamps. event_id is pseudonymous to outsiders but may be a merchant order or Stripe identifier.