Query Audit Events
curl --request GET \
--url https://api.truthlocks.com/v1/audit \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_id": "<string>",
"actor_type": "USER",
"action": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"metadata": {},
"timestamp": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}Audit & Logs
Query Audit Events
Returns audit events for the authenticated tenant.
GET
/
v1
/
audit
Query Audit Events
curl --request GET \
--url https://api.truthlocks.com/v1/audit \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_id": "<string>",
"actor_type": "USER",
"action": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"metadata": {},
"timestamp": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}Returns audit events for the authenticated tenant. Filter by actor, action, resource type, or time range.
Responses
Authorizations
APIKeyBearerAuth
API key for machine-to-machine authentication

