Retrieve workspace audit logs with pagination support
Retrieve workspace audit logs with pagination support
GET
/
workspace
/
{workspace_id}
/
audit_log
Retrieve workspace audit logs with pagination support
curl --request GET \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log \
--header 'Authorization: Bearer <token>'import requests
url = "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log', 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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log",
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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log"
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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log")
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{
"items": [
{
"id": 123,
"created_at": "<string>",
"updated_at": "<string>",
"type": "<string>",
"msg": "<string>",
"label": [
"<string>"
],
"data": {},
"obj": {
"type": "<string>",
"id": 123
},
"user": {
"id": 123,
"email": "jsmith@example.com"
},
"workspace": {
"id": 123,
"name": "<string>"
},
"branch": {
"id": 123,
"label": "<string>"
}
}
],
"itemsReceived": 123,
"curPage": 123,
"nextPage": 123,
"prevPage": 123,
"offset": 123,
"perPage": 123,
"itemsTotal": 123,
"pageTotal": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Related topics
Retrieve workspace audit logs with pagination supportXano Metadata API (Instances)search audit logs across all workspaces with support for complex filtering and sortingWas this page helpful?
⌘I
Retrieve workspace audit logs with pagination support
curl --request GET \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log \
--header 'Authorization: Bearer <token>'import requests
url = "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log', 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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log",
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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log"
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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/audit_log")
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{
"items": [
{
"id": 123,
"created_at": "<string>",
"updated_at": "<string>",
"type": "<string>",
"msg": "<string>",
"label": [
"<string>"
],
"data": {},
"obj": {
"type": "<string>",
"id": 123
},
"user": {
"id": 123,
"email": "jsmith@example.com"
},
"workspace": {
"id": 123,
"name": "<string>"
},
"branch": {
"id": 123,
"label": "<string>"
}
}
],
"itemsReceived": 123,
"curPage": 123,
"nextPage": 123,
"prevPage": 123,
"offset": 123,
"perPage": 123,
"itemsTotal": 123,
"pageTotal": 123
}