List audit log entries
curl --request GET \
--url https://api.meetcampfire.com/ca/api/v1/audit-logimport requests
url = "https://api.meetcampfire.com/ca/api/v1/audit-log"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/v1/audit-log', 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.meetcampfire.com/ca/api/v1/audit-log",
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.meetcampfire.com/ca/api/v1/audit-log"
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.meetcampfire.com/ca/api/v1/audit-log")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/v1/audit-log")
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{
"count": 123,
"results": [
{
"id": 123,
"operation": "<string>",
"model": "<string>",
"object_id": 123,
"parent_model": "<string>",
"parent_object_id": 123,
"parent_draft_queue": 123,
"created_by": 123,
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"approved_by": 123,
"approved_by_name": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"reason": "<string>",
"old_payload": null,
"new_payload": null,
"workflow_name": "<string>",
"approvers": [
{}
]
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Settings
List audit log entries
Retrieve approved audit log entries: each change to a record, with who made it, who approved it, and the record’s payload before and after. Entries are ordered newest first by (created_at, id).
Access: customer admins, or users with the “View audit logs” permission. OAuth apps also need
the audit_logs:read scope. Users restricted to some entities see only entries whose every entity
they can access.
Filtering:
created_at__gte(inclusive) andcreated_at__lt(exclusive) take an ISO 8601 date, read as 00:00 UTC, or a datetime with a UTC offset. URL-encode the+in an offset as%2B.model(asapp_label.model) returns that object type; withobject_idit returns that object’s entries and the entries of records under it, such as a bill’s payments.- Unknown parameters are rejected with a 400.
Paging:
- For a complete export, pass an empty cursor (
cursor=) on the first request and follow thenextURL until it is null. Entries written while you page don’t shift later pages. - Pass
skip_count=truewhen you don’t need the total;countstops at 10,000.
Notes:
- The entry’s
approved_byis who gave final approval. Insideapprovers,approved_byis the step’s approver type andapproved_by_useris who approved that step; it can be empty for steps approved before step approvers were recorded. - Entries recorded when data was first imported can appear later with historical
created_atdates. - Payload fields that hold secrets are stored hashed.
GET
/
ca
/
api
/
v1
/
audit-log
List audit log entries
curl --request GET \
--url https://api.meetcampfire.com/ca/api/v1/audit-logimport requests
url = "https://api.meetcampfire.com/ca/api/v1/audit-log"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/v1/audit-log', 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.meetcampfire.com/ca/api/v1/audit-log",
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.meetcampfire.com/ca/api/v1/audit-log"
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.meetcampfire.com/ca/api/v1/audit-log")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/v1/audit-log")
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{
"count": 123,
"results": [
{
"id": 123,
"operation": "<string>",
"model": "<string>",
"object_id": 123,
"parent_model": "<string>",
"parent_object_id": 123,
"parent_draft_queue": 123,
"created_by": 123,
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"approved_by": 123,
"approved_by_name": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"reason": "<string>",
"old_payload": null,
"new_payload": null,
"workflow_name": "<string>",
"approvers": [
{}
]
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}