List audit-log export reports
curl --request GET \
--url https://api.magnific.com/v1/analytics/audit-logs/reports \
--header 'x-magnific-api-key: <api-key>'import requests
url = "https://api.magnific.com/v1/analytics/audit-logs/reports"
headers = {"x-magnific-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-magnific-api-key': '<api-key>'}};
fetch('https://api.magnific.com/v1/analytics/audit-logs/reports', 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.magnific.com/v1/analytics/audit-logs/reports",
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-magnific-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://api.magnific.com/v1/analytics/audit-logs/reports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-magnific-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://api.magnific.com/v1/analytics/audit-logs/reports")
.header("x-magnific-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.magnific.com/v1/analytics/audit-logs/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-magnific-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"reference": "7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70",
"name": "Report 7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70",
"status": "pending",
"period": {
"from": "2026-10-01T00:00:00.000Z",
"to": "2026-10-31T00:00:00.000Z"
},
"requested_by": 10499812,
"filters": {
"users": [
10499812
],
"groups": [
10,
20
]
},
"file_size": null,
"error_message": null,
"created_at": "2026-11-23T09:20:03.000Z",
"completed_at": null
},
{
"reference": "0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c",
"name": "Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c",
"status": "completed",
"period": {
"from": "2026-07-01T00:00:00.000Z",
"to": "2026-09-30T00:00:00.000Z"
},
"requested_by": 10499812,
"filters": {},
"file_size": 1048576,
"error_message": null,
"created_at": "2026-11-23T09:14:52.000Z",
"completed_at": "2026-11-23T09:15:40.000Z"
}
]
}
Audit Logs API
List audit-log export reports
List your audit-log export reports with their status, period, filters and size. Poll a single report by reference until it is completed.
GET
/
v1
/
analytics
/
audit-logs
/
reports
List audit-log export reports
curl --request GET \
--url https://api.magnific.com/v1/analytics/audit-logs/reports \
--header 'x-magnific-api-key: <api-key>'import requests
url = "https://api.magnific.com/v1/analytics/audit-logs/reports"
headers = {"x-magnific-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-magnific-api-key': '<api-key>'}};
fetch('https://api.magnific.com/v1/analytics/audit-logs/reports', 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.magnific.com/v1/analytics/audit-logs/reports",
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-magnific-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://api.magnific.com/v1/analytics/audit-logs/reports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-magnific-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://api.magnific.com/v1/analytics/audit-logs/reports")
.header("x-magnific-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.magnific.com/v1/analytics/audit-logs/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-magnific-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"reference": "7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70",
"name": "Report 7d2c5b1a-93e4-4f6b-8a10-2b3c4d5e6f70",
"status": "pending",
"period": {
"from": "2026-10-01T00:00:00.000Z",
"to": "2026-10-31T00:00:00.000Z"
},
"requested_by": 10499812,
"filters": {
"users": [
10499812
],
"groups": [
10,
20
]
},
"file_size": null,
"error_message": null,
"created_at": "2026-11-23T09:20:03.000Z",
"completed_at": null
},
{
"reference": "0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c",
"name": "Report 0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c",
"status": "completed",
"period": {
"from": "2026-07-01T00:00:00.000Z",
"to": "2026-09-30T00:00:00.000Z"
},
"requested_by": 10499812,
"filters": {},
"file_size": 1048576,
"error_message": null,
"created_at": "2026-11-23T09:14:52.000Z",
"completed_at": "2026-11-23T09:15:40.000Z"
}
]
}
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Query Parameters
Was this page helpful?