curl --request GET \
--url https://api.nekt.ai/api/v1/token-access-logs/{id}/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/token-access-logs/{id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/token-access-logs/{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.nekt.ai/api/v1/token-access-logs/{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 => [
"x-api-key: <api-key>"
],
]);
$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.nekt.ai/api/v1/token-access-logs/{id}/"
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))
}HttpResponse<String> response = Unirest.get("https://api.nekt.ai/api/v1/token-access-logs/{id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/token-access-logs/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"token_kind": "api-token",
"token_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token_description": "<string>",
"token_owner": 123,
"token_owner_email": "<string>",
"action": "<string>",
"transport": "http",
"method": "<string>",
"path": "<string>",
"status_code": 123,
"response_content_length": 123,
"duration_ms": 123,
"remote_address": "<string>",
"client_tool": "<string>",
"content": "<string>",
"content_status": "<string>"
}Get Token Access Log
One log line plus the request content recorded with it.
curl --request GET \
--url https://api.nekt.ai/api/v1/token-access-logs/{id}/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nekt.ai/api/v1/token-access-logs/{id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nekt.ai/api/v1/token-access-logs/{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.nekt.ai/api/v1/token-access-logs/{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 => [
"x-api-key: <api-key>"
],
]);
$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.nekt.ai/api/v1/token-access-logs/{id}/"
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))
}HttpResponse<String> response = Unirest.get("https://api.nekt.ai/api/v1/token-access-logs/{id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nekt.ai/api/v1/token-access-logs/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"token_kind": "api-token",
"token_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token_description": "<string>",
"token_owner": 123,
"token_owner_email": "<string>",
"action": "<string>",
"transport": "http",
"method": "<string>",
"path": "<string>",
"status_code": 123,
"response_content_length": 123,
"duration_ms": 123,
"remote_address": "<string>",
"client_tool": "<string>",
"content": "<string>",
"content_status": "<string>"
}Authorizations
API Key authentication. Format: 'x-api-key: api_key'
Path Parameters
A UUID string identifying this token access log.
Response
One access-log line plus the request and response content recorded with it.
content has no fixed shape and may gain or lose fields over time — read it as a document,
not as a fixed set of columns. It can also be absent: content_status says whether it was
available for this line.
api-token- API tokenmcp-token- MCP token
api-token, mcp-token The APIToken's or the MCPToken's id — token_kind says which. Not a foreign key because it points at two different tables. Null when authentication failed, and there is no token to name.
Client-facing action slug from the audit registry (source.create, data.sql_query, ...), derived from the resolved route — never from the raw URL. unknown is a valid value: a route nobody has mapped yet is still recorded.
http- HTTPwebsocket- WebSocket
http, websocket How much data left with this response — the size question an access audit exists to answer.
MCP tool name, when the caller declares one. Informational only — it comes from the client, so it authorises nothing.
Was this page helpful?