Export the tamper-evident hash-chained audit ledger
curl --request GET \
--url https://api.dairo.app/v1/audit-logs/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dairo.app/v1/audit-logs/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dairo.app/v1/audit-logs/export', 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.dairo.app/v1/audit-logs/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.dairo.app/v1/audit-logs/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.dairo.app/v1/audit-logs/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dairo.app/v1/audit-logs/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"rows": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"chainSeq": 123,
"prevHash": "<string>",
"rowHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resourceType": "<string>",
"resourceId": "<string>",
"metadata": {},
"actor": "<string>",
"ip": "<string>",
"agentId": "<string>"
}
],
"manifest": {
"alg": "<string>",
"kid": "<string>",
"signature": "<string>",
"type": "dairo.audit.manifest.v1",
"issuer": "<string>",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "<string>",
"fromChainSeq": 123,
"toChainSeq": 123,
"rowCount": 123,
"headRowHash": "<string>",
"headChainSeq": 123,
"exportedAt": "2023-11-07T05:31:56Z"
},
"pagination": {
"nextCursor": 123
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}Compliance
Export the tamper-evident hash-chained audit ledger
Export the tamper-evident hash-chained audit ledger
GET
/
v1
/
audit-logs
/
export
Export the tamper-evident hash-chained audit ledger
curl --request GET \
--url https://api.dairo.app/v1/audit-logs/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dairo.app/v1/audit-logs/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dairo.app/v1/audit-logs/export', 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.dairo.app/v1/audit-logs/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.dairo.app/v1/audit-logs/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.dairo.app/v1/audit-logs/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dairo.app/v1/audit-logs/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"rows": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"chainSeq": 123,
"prevHash": "<string>",
"rowHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resourceType": "<string>",
"resourceId": "<string>",
"metadata": {},
"actor": "<string>",
"ip": "<string>",
"agentId": "<string>"
}
],
"manifest": {
"alg": "<string>",
"kid": "<string>",
"signature": "<string>",
"type": "dairo.audit.manifest.v1",
"issuer": "<string>",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "<string>",
"fromChainSeq": 123,
"toChainSeq": 123,
"rowCount": 123,
"headRowHash": "<string>",
"headChainSeq": 123,
"exportedAt": "2023-11-07T05:31:56Z"
},
"pagination": {
"nextCursor": 123
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}Authorizations
Dairo API key, e.g. dairo_test_... or dairo_live_...
Query Parameters
Lower bound (inclusive) RFC3339 timestamp on created_at.
Upper bound (inclusive) RFC3339 timestamp on created_at.
Keyset cursor: the prior page's pagination.nextCursor (a chainSeq). Returns rows with a strictly greater chainSeq, draining history past the 5000-row page cap.
Reserved; only the JSON form is emitted in V1 (NDJSON streaming is a fast-follow).
Available options:
json, ndjson Response
Success
A hash-chained audit-ledger export plus its signed verification manifest.