Get API call logs
curl --request GET \
--url https://app.tryspecter.com/api/v1/logs \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/logs"
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://app.tryspecter.com/api/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://app.tryspecter.com/api/v1/logs",
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://app.tryspecter.com/api/v1/logs"
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://app.tryspecter.com/api/v1/logs")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/logs")
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{
"items": [
{
"timestamp": "2026-07-17T16:04:52.227479Z",
"path": "/api/v1/lists/people",
"url": "https://app.tryspecter.com/api/v1/lists/people",
"http_method": "GET",
"http_status": 200,
"status": "SUCCESS",
"query": {},
"credits_consumed": 123,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 123
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "<string>",
"message": "<string>"
}Account
Get API call logs
Returns a paginated log of the API calls your organisation has made, newest first.
Free. This call does not consume credits.
What you need
Nothing beyond your API key.
Behaviour
- Ordered newest first.
- Page through with
pageandlimit. - Filter by time window with
from/to(ISO 8601 datetime, minute granularity). - The response carries an
X-Total-Countheader and RFC 5988Linkpagination links. - Each entry includes
credits_consumedandrequest_id.
What you do next
- Chase a specific call. Quote a log entry’s
request_idwhen contacting API support to point them at that exact call.
GET
/
logs
Get API call logs
curl --request GET \
--url https://app.tryspecter.com/api/v1/logs \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/logs"
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://app.tryspecter.com/api/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://app.tryspecter.com/api/v1/logs",
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://app.tryspecter.com/api/v1/logs"
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://app.tryspecter.com/api/v1/logs")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/logs")
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{
"items": [
{
"timestamp": "2026-07-17T16:04:52.227479Z",
"path": "/api/v1/lists/people",
"url": "https://app.tryspecter.com/api/v1/lists/people",
"http_method": "GET",
"http_status": 200,
"status": "SUCCESS",
"query": {},
"credits_consumed": 123,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 123
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "<string>",
"message": "<string>"
}Authorizations
Query Parameters
The number of results to return per page (minimum 1, maximum 5000, default 50).
Required range:
1 <= x <= 5000The page number of results to return, base 0, default is 0.
Filter logs at or after this datetime (ISO 8601, e.g. 2024-06-01T00:00:00Z). Granularity up to the minute.
Filter logs before or at this datetime (ISO 8601, e.g. 2024-06-30T23:59:00Z). Granularity up to the minute.
Was this page helpful?