Get Request Log By ID
curl --request GET \
--url https://api.dashboard.knotapi.com/request-logs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dashboard.knotapi.com/request-logs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dashboard.knotapi.com/request-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.dashboard.knotapi.com/request-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 => [
"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://api.dashboard.knotapi.com/request-logs/{id}"
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://api.dashboard.knotapi.com/request-logs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dashboard.knotapi.com/request-logs/{id}")
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{
"id": 98231774,
"type": "webhook",
"datetime": "2026-10-15T14:32:08Z",
"method": "POST",
"path": null,
"url": "https://example.com/webhooks/knot?token=********",
"event": "AUTHENTICATED",
"status_code": 200,
"latency_ms": 184,
"session_id": "915efe72-5136-4652-9a1f-d9d48003c102",
"task_id": 7754123,
"external_user_id": "user-123",
"request_body": "{\"event\":\"AUTHENTICATED\",\"session_id\":\"915efe72-5136-4652-9a1f-d9d48003c102\",\"task_id\":7754123,\"external_user_id\":\"user-123\",\"merchant\":{\"id\":19,\"name\":\"DoorDash\"}}",
"request_body_truncated": false,
"response_body": "{\"received\":true}",
"response_body_truncated": false
}Request Logs
Get Request Log By ID
Get a request log by ID.
GET
/
request-logs
/
{id}
Get Request Log By ID
curl --request GET \
--url https://api.dashboard.knotapi.com/request-logs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dashboard.knotapi.com/request-logs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dashboard.knotapi.com/request-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.dashboard.knotapi.com/request-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 => [
"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://api.dashboard.knotapi.com/request-logs/{id}"
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://api.dashboard.knotapi.com/request-logs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dashboard.knotapi.com/request-logs/{id}")
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{
"id": 98231774,
"type": "webhook",
"datetime": "2026-10-15T14:32:08Z",
"method": "POST",
"path": null,
"url": "https://example.com/webhooks/knot?token=********",
"event": "AUTHENTICATED",
"status_code": 200,
"latency_ms": 184,
"session_id": "915efe72-5136-4652-9a1f-d9d48003c102",
"task_id": 7754123,
"external_user_id": "user-123",
"request_body": "{\"event\":\"AUTHENTICATED\",\"session_id\":\"915efe72-5136-4652-9a1f-d9d48003c102\",\"task_id\":7754123,\"external_user_id\":\"user-123\",\"merchant\":{\"id\":19,\"name\":\"DoorDash\"}}",
"request_body_truncated": false,
"response_body": "{\"received\":true}",
"response_body_truncated": false
}Authorizations
Short-lived access token from the device authorization flow. Expires after 15 minutes. Accesses only the environment of the client ID it was issued for.
Query Parameters
Response
Successful request.
The request body as a string. Card data, credentials, tokens, email addresses, phone numbers, and addresses are replaced by ********. external_user_id, merchant names, and account details are not masked. For request logs, this is the body you sent to Knot. For webhook logs, this is the webhook payload Knot sent to your endpoint.
Was this page helpful?