Activity Log

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

FIELDTYPEDESCRIPTION
filter[action]stringComma-separated action names (e.g. contact.created,contact.updated).
filter[actor_user_id]stringComma-separated user ids; only entries performed by those users.
filter[auditable_type]stringComma-separated model class names (e.g. Contact,Account).
filter[auditable_id]stringOnly entries for this specific record id.
sincestringLower bound (inclusive) on created_at. ISO 8601 date or datetime.
untilstringUpper bound (inclusive, end-of-day) on created_at. ISO 8601 date or datetime.
pageinteger1-based page number.
per_pageintegerPage 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

STATUSDESCRIPTION
200 OKa page of activity log entries
401 Unauthorizedmissing or invalid API key
403 Forbiddenthe 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

FIELDTYPEDESCRIPTION
idstring · requiredActivity 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

STATUSDESCRIPTION
200 OKthe activity log entry
401 Unauthorizedmissing or invalid API key
403 Forbiddenthe key lacks the audit_log_read scope
404 Not Foundno such entry in this team

Was this article helpful?