Search request logs
curl --request GET \
--url https://your-kordless-instance.com/v1/request-logsimport requests
url = "https://your-kordless-instance.com/v1/request-logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-kordless-instance.com/v1/request-logs', 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://your-kordless-instance.com/v1/request-logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://your-kordless-instance.com/v1/request-logs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-kordless-instance.com/v1/request-logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/request-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "<string>",
"path": "<string>",
"statusCode": 123,
"errorCode": "<string>",
"latencyMs": 1,
"quoteIntentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"occurredAt": "2023-11-07T05:31:56Z"
}
],
"requestId": "<string>",
"nextCursor": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "forbidden",
"message": "Your Workspace role cannot perform this action.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "invalid_request",
"message": "The request failed validation.",
"requestId": "req_9f8e7d6c",
"details": {
"fields": {
"url": [
"Expected an HTTPS URL without credentials or fragments"
]
}
}
}
}Request logs
Search request logs
Metadata-only request history for API-key and anonymous public-quote
traffic — no payloads, factor values, or secrets are ever logged.
Keyset pagination, 50 rows per page. Requires the logs:read
permission.
GET
/
v1
/
request-logs
Search request logs
curl --request GET \
--url https://your-kordless-instance.com/v1/request-logsimport requests
url = "https://your-kordless-instance.com/v1/request-logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-kordless-instance.com/v1/request-logs', 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://your-kordless-instance.com/v1/request-logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://your-kordless-instance.com/v1/request-logs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-kordless-instance.com/v1/request-logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/request-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "<string>",
"path": "<string>",
"statusCode": 123,
"errorCode": "<string>",
"latencyMs": 1,
"quoteIntentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"occurredAt": "2023-11-07T05:31:56Z"
}
],
"requestId": "<string>",
"nextCursor": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "forbidden",
"message": "Your Workspace role cannot perform this action.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "invalid_request",
"message": "The request failed validation.",
"requestId": "req_9f8e7d6c",
"details": {
"fields": {
"url": [
"Expected an HTTPS URL without credentials or fragments"
]
}
}
}
}Query Parameters
Restrict to one Environment.
HTTP status class (for example 4 for client errors).
Required range:
1 <= x <= 5One exact request ID.
Every request touching one Quote Intent.
The nextCursor value from the previous page.
⌘I