curl --request GET \
--url https://api.context.dev/v1/logsimport requests
url = "https://api.context.dev/v1/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.context.dev/v1/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://api.context.dev/v1/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://api.context.dev/v1/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://api.context.dev/v1/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.context.dev/v1/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": [
{
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"method": "GET",
"path": "/v1/brand/retrieve",
"status_code": 500,
"error_code": "WEBSITE_ACCESS_ERROR",
"latency_ms": 123,
"credits_used": 123,
"key_id": "<string>",
"tags": [
"<string>"
],
"zdr": true
}
],
"page": 123,
"limit": 123,
"has_more": true,
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}List Request Logs
List your organization’s API requests, newest first. Defaults to the last 24 hours.
curl --request GET \
--url https://api.context.dev/v1/logsimport requests
url = "https://api.context.dev/v1/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.context.dev/v1/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://api.context.dev/v1/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://api.context.dev/v1/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://api.context.dev/v1/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.context.dev/v1/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": [
{
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"method": "GET",
"path": "/v1/brand/retrieve",
"status_code": 500,
"error_code": "WEBSITE_ACCESS_ERROR",
"latency_ms": 123,
"credits_used": 123,
"key_id": "<string>",
"tags": [
"<string>"
],
"zdr": true
}
],
"page": 123,
"limit": 123,
"has_more": true,
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91",
"message": "<string>",
"error_code": "INTERNAL_ERROR",
"key_metadata": {
"credits_consumed": 123,
"credits_remaining": 123
}
}request_id to Retrieve a Request Log for the full request input and response body. Log endpoints do not consume credits and use a separate rate limit from the rest of the API.Query Parameters
Only include requests at or after this ISO 8601 timestamp. Defaults to 24 hours before to.
"2026-09-10T00:00:00Z"
Only include requests at or before this ISO 8601 timestamp. Defaults to now.
"2026-09-11T00:00:00Z"
Filter by endpoint path, with or without the /v1 prefix.
1 - 200^\/"/brand/retrieve"
Filter by the API key that made the request.
1 - 200Filter by exact HTTP status code.
100 <= x <= 599500
Filter by the error_code returned in the response.
^[A-Z][A-Z0-9_]{1,63}$"WEBSITE_ACCESS_ERROR"
Only include requests that returned a 4xx or 5xx status.
Comma-separated request tags. Matches requests carrying any of them. Up to 20 tags, each 1-50 characters.
"nightly-import,team-alpha"
Case-insensitive substring match against the request query and body, e.g. a domain.
1 - 200"acme.com"
Page number, starting at 1.
1 <= x <= 1000Number of log entries per page.
1 <= x <= 100Response
A page of log entries
Log entries, newest first.
Show child attributes
Show child attributes
Current page number.
Entries per page.
Whether a next page exists.
Unique id of this API call, also sent in the X-Request-Id response header. Quote it when contacting support about a failed request.
"3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
Credit usage, included whenever a valid API key is provided.
Show child attributes
Show child attributes
Was this page helpful?