Base URL: https://api.cornerspot.net
Authentication: requests use a bearer token, for example Authorization: Bearer YOUR_API_KEY.
List activity log entries
GET /c/api/v1/activity_log
Returns a paginated, reverse-chronological list of audit-log entries for the authenticated team. Requires the audit_log_read scope.
Entries can be filtered by action name, actor user, auditable model type, a specific auditable record id, and a time range (since / until).
Query parameters
| FIELD | TYPE | DESCRIPTION |
|---|---|---|
filter[action] | string | Comma-separated action names (e.g. contact.created,contact.updated). |
filter[actor_user_id] | string | Comma-separated user ids; only entries performed by those users. |
filter[auditable_type] | string | Comma-separated model class names (e.g. Contact,Account). |
filter[auditable_id] | string | Only entries for this specific record id. |
since | string | Lower bound (inclusive) on created_at. ISO 8601 date or datetime. |
until | string | Upper bound (inclusive, end-of-day) on created_at. ISO 8601 date or datetime. |
page | integer | 1-based page number. |
per_page | integer | Page size (1–100, default 25). |
Code samples
curl --request GET \
--url 'https://api.cornerspot.net/c/api/v1/activity_log' \
--header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch('https://api.cornerspot.net/c/api/v1/activity_log', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
// Node.js 18+ (native fetch)
const response = await fetch('https://api.cornerspot.net/c/api/v1/activity_log', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
import json
import urllib.request
url = "https://api.cornerspot.net/c/api/v1/activity_log"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
}
request = urllib.request.Request(url, headers=headers, method="GET")
with urllib.request.urlopen(request) as response:
data = json.loads(response.read().decode("utf-8"))
print(data)
require "json"
require "net/http"
uri = URI("https://api.cornerspot.net/c/api/v1/activity_log")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
puts JSON.parse(response.body)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.cornerspot.net/c/api/v1/activity_log',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
print_r($data);
Responses
| STATUS | DESCRIPTION |
|---|---|
200 OK | a page of activity log entries |
401 Unauthorized | missing or invalid API key |
403 Forbidden | the key lacks the audit_log_read scope |
Get an activity log entry
GET /c/api/v1/activity_log/{id}
Returns a single activity log entry by id. Requires audit_log_read.
Path parameters
| FIELD | TYPE | DESCRIPTION |
|---|---|---|
id | string · required | Activity log entry id. |
Code samples
curl --request GET \
--url 'https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d' \
--header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch('https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
// Node.js 18+ (native fetch)
const response = await fetch('https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
import json
import urllib.request
url = "https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
}
request = urllib.request.Request(url, headers=headers, method="GET")
with urllib.request.urlopen(request) as response:
data = json.loads(response.read().decode("utf-8"))
print(data)
require "json"
require "net/http"
uri = URI("https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
puts JSON.parse(response.body)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.cornerspot.net/c/api/v1/activity_log/1f2e3d4c-5b6a-4789-9c0d-1e2f3a4b5c6d',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
print_r($data);
Responses
| STATUS | DESCRIPTION |
|---|---|
200 OK | the activity log entry |
401 Unauthorized | missing or invalid API key |
403 Forbidden | the key lacks the audit_log_read scope |
404 Not Found | no such entry in this team |
