curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/logs/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"includeUsers": false,
"logsQuery": {
"from": 0,
"query": {
"filter": [
{}
],
"ignore_unmapped": false,
"minimumShouldMatch": 1,
"must": [
{}
],
"mustNot": [
{}
],
"path": "workflow.history",
"should": [
{}
]
},
"size": 100,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
},
"scroll": {
"id": "<string>",
"timeout": 30
}
}
'import requests
url = "https://sandbox.circularo.com/api/v1/logs/search?token="
payload = {
"includeUsers": False,
"logsQuery": {
"from": 0,
"query": {
"filter": [{}],
"ignore_unmapped": False,
"minimumShouldMatch": 1,
"must": [{}],
"mustNot": [{}],
"path": "workflow.history",
"should": [{}]
},
"size": 100,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
},
"scroll": {
"id": "<string>",
"timeout": 30
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
includeUsers: false,
logsQuery: {
from: 0,
query: {
filter: [{}],
ignore_unmapped: false,
minimumShouldMatch: 1,
must: [{}],
mustNot: [{}],
path: 'workflow.history',
should: [{}]
},
size: 100,
sort: [{field: 'createDate', nested: {}}]
},
scroll: {id: '<string>', timeout: 30}
})
};
fetch('https://sandbox.circularo.com/api/v1/logs/search?token=', 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://sandbox.circularo.com/api/v1/logs/search?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeUsers' => false,
'logsQuery' => [
'from' => 0,
'query' => [
'filter' => [
[
]
],
'ignore_unmapped' => false,
'minimumShouldMatch' => 1,
'must' => [
[
]
],
'mustNot' => [
[
]
],
'path' => 'workflow.history',
'should' => [
[
]
]
],
'size' => 100,
'sort' => [
[
'field' => 'createDate',
'nested' => [
]
]
]
],
'scroll' => [
'id' => '<string>',
'timeout' => 30
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/logs/search?token="
payload := strings.NewReader("{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/logs/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/logs/search?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "0e0PfpcBGFrg4D9XeKcl",
"activityTarget": "document",
"activityType": "signed",
"actorId": "john.doe@example.com",
"actorType": "user",
"authentication": {
"email": "<string>",
"factors": [
"<string>"
],
"id": "<string>",
"isSign": true,
"phone": "<string>",
"provider": "<string>",
"success": true,
"type": "internal",
"unlocked": true,
"username": "john.doe@example.com"
},
"certificate": {
"fingerprintSha256": "A13767DDACA2D1B0ACAEB7CD3145D3D1CE14E208106318968FAF9882C8423F43",
"id": "<string>",
"issuer": "<string>",
"keyUsage": [
"digitalSignature",
"nonRepudiation"
],
"qcCompliance": true,
"qcSSCD": true,
"qcTypes": [
"esign"
],
"serialNumber": "4DC32DD214A19795A2111484900663142F513989",
"subject": "<string>",
"validityFrom": "2023-11-07T05:31:56Z",
"validityTo": "2023-11-07T05:31:56Z"
},
"clonedFrom": {
"creator": "<string>",
"id": "<string>",
"organization": "<string>",
"owner": "<string>"
},
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"isDesktop": true,
"isMobile": true,
"isTablet": true,
"location": {
"city": "Pilsen",
"country": "Czech Republic",
"countryCode": "CZ",
"region": "Vysočina"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"servedType": "desktop",
"userAgent": "<string>"
},
"document": {
"alertTo": "<string>",
"attachments": {
"added": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
],
"removed": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
]
},
"creator": "<string>",
"documentTitle": "<string>",
"documentType": "d_default",
"fileChanged": true,
"folder": {
"parentFolderId": "<string>",
"username": "<string>"
},
"linkRemovable": true,
"linkTarget": "<string>",
"mainFileChecksum": "<string>",
"merge": [
{
"end": 123,
"hash": "<string>",
"start": 123
}
],
"organization": "<string>",
"originalOwner": "<string>",
"originalTitle": "<string>",
"owner": "<string>",
"reassign": {
"changedCreateName": "<string>",
"from": "<string>",
"removedFromFolder": "<string>",
"to": "<string>"
},
"reminder": {
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"reminderOn": "2026-11-30T08:00:00.000Z",
"retargetedFrom": [
"john.doe@example.com"
],
"retargetedTo": "jane.doe@example.com",
"time": "09:00",
"timeZone": "Europe/Prague"
},
"renewal": {
"from": "2026-12-31T00:00:00.000Z",
"renewedCount": 123,
"to": "2027-12-31T00:00:00.000Z"
},
"revertToRevision": 123,
"revision": 123,
"rights": {
"edit": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"<string>"
]
},
"madePrivate": true,
"madePublic": true,
"read": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"<string>"
]
}
},
"sealProvider": "company-qseal",
"shareStateName": "completed",
"signatureChecksums": [
"<string>"
],
"signatureProvider": "<string>",
"signatureProviderMetadata": "<string>",
"submittedFiles": {
"added": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
],
"removed": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
]
},
"tags": {
"global": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
},
"user": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
}
},
"term": {
"expiresOnFrom": "2026-12-31T00:00:00.000Z",
"expiresOnTo": "2027-12-31T00:00:00.000Z",
"nonFixedTermChanged": true,
"recipientsAdded": [
"jane.doe@example.com"
],
"recipientsRemoved": [
"john.doe@example.com"
],
"remindersChanged": true,
"renewalChanged": true,
"terminationCancelled": true,
"terminationInitiated": true,
"termTypeFrom": "fixed_term",
"termTypeTo": "fixed_term"
},
"titleChanged": true,
"tsaServer": "<string>",
"twoStepSigningType": "<string>",
"workflow": {
"action": 123,
"clearedComments": [
{
"author": "<string>",
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "<string>",
"historyId": "<string>",
"isPublicComment": true,
"reactions": [
"<string>"
],
"threadParentId": "<string>"
}
],
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "<string>",
"groupRecipient": [
"<string>"
],
"historyId": "<string>",
"isPublicComment": true,
"mentions": [
"<string>"
],
"name": "<string>",
"previousComment": "<string>",
"previousCommentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"previousCommentAttachment": "<string>",
"reaction": "<string>",
"shareStateName": "<string>",
"threadParentId": "<string>",
"userRecipient": [
"<string>"
],
"workflow": "<string>"
}
},
"generic": {
"addedKeys": [
"<string>"
],
"changes": [
{
"action": "added",
"new": "<string>",
"original": "<string>",
"property": "<string>",
"redacted": true
}
],
"deletedKeys": [
"<string>"
],
"editedKeys": [
"<string>"
],
"error": "INTEGRATION:RESPONSE_UPSTREAM_ERROR",
"status": "<string>",
"success": true
},
"group": {
"type": [
"<string>"
]
},
"integrityChain": "<string>",
"integrityChecksum": "<string>",
"integritySequence": 123,
"language": {
"active": true,
"addedLanguages": [
"<string>"
],
"addedTranslations": [
"<string>"
],
"deletedTranslations": [
"<string>"
],
"editedLanguages": [
"<string>"
],
"editedTranslations": [
"<string>"
],
"key": "common:name",
"languageId": "en",
"newKey": "<string>",
"overwriteFromFile": true,
"removeMissing": true,
"typographies": [
"<string>"
]
},
"llmUsage": {
"api": "responses",
"attempts": 123,
"cachedInputTokens": 123,
"cacheWriteTokens": 123,
"durationMs": 123,
"failureReason": "timeout",
"httpStatus": 429,
"inputCharacters": 123,
"inputTokens": 123,
"inputTruncated": true,
"keySource": "settings",
"maxOutputTokens": 123,
"modelRequested": "gpt-4.1-mini",
"modelServed": "gpt-4.1-mini-2025-04-14",
"outputTokens": 123,
"providerErrorCode": "insufficient_quota",
"providerHost": "api.openai.com",
"purpose": "document_analysis",
"reasoningEffort": "medium",
"reasoningOutputTokens": 123,
"requestId": "req_8f3c1a5e2b7d4c9f",
"responseId": "resp_67ccd2bed1ec8190b14f964abc054267",
"serviceTier": "default",
"timedOutAttempts": 123,
"totalTokens": 123,
"usageComplete": true
},
"notification": {
"messageId": "<string>",
"recipients": [
"<string>"
],
"response": "<string>",
"success": true,
"template": "<string>",
"type": "email"
},
"organization": "<string>",
"plan": {
"edition": "<string>",
"status": "<string>"
},
"requestId": "<string>",
"rights": {
"addedGroups": [
"<string>"
],
"addedRights": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedRights": [
"<string>"
],
"removedUsers": [
"<string>"
]
},
"settings": {
"name": "<string>",
"type": "user"
},
"share": {
"delegatedFrom": "<string>",
"delegatedTo": "<string>",
"initiatedViaPublicApi": true,
"isNafathProtected": true,
"isPasswordProtected": true,
"isPermanentViewToken": true,
"kyc": {
"checks": {
"dateOfBirth": true,
"documentNumber": true,
"nationality": true
},
"documentType": "idCard",
"fieldsMatch": true,
"provider": "identomat",
"providers": [
"<string>"
],
"sessionId": "<string>"
},
"oauth": {
"checks": {
"email": true,
"emiratesId": true,
"phoneNumber": true
},
"provider": "<string>",
"providers": [
"<string>"
]
},
"otpMail": "<string>",
"otpPhone": "<string>",
"sharedBy": "<string>",
"sharedUsername": "<string>",
"sharedWith": "<string>",
"shareId": "<string>",
"shareType": "<string>",
"validUntil": "2023-11-07T05:31:56Z",
"verifiedWith": {
"factor": "sms",
"fullname": "<string>",
"fullnameAr": "<string>",
"kycFactors": [
"idVerification"
],
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"value": "<string>"
}
},
"stamp": {
"isTemp": true,
"name": "<string>",
"organization": "<string>",
"owner": "<string>"
},
"storedText": "<string>",
"stripe": {
"amountDue": 123,
"amountPaid": 123,
"amountTotal": 123,
"cancelAtPeriodEnd": true,
"checkoutSessionId": "<string>",
"clientReferenceId": "<string>",
"currency": "eur",
"customerId": "<string>",
"eventCreated": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"eventLivemode": true,
"eventType": "invoice.paid",
"invoiceId": "<string>",
"objectId": "<string>",
"objectType": "invoice",
"paymentStatus": "<string>",
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z",
"processingNote": "<string>",
"processingResult": "applied",
"receivedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"subscriptionId": "<string>"
},
"subject": "<string>",
"subscription": {
"amount": 123,
"assignedToId": "<string>",
"assignedToType": "user",
"subVariable": "<string>",
"variable": "<string>"
},
"template": {
"attachments": {
"added": [
{
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"name": "terms.pdf",
"public": true
}
],
"removed": [
{
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"name": "terms.pdf",
"public": true
}
]
},
"bound": true,
"checked": true,
"exportFormat": "json",
"fileChanged": true,
"id": "a831e07b-fbd9-416e-9711-41b0477ecac3",
"imported": true,
"isLocked": true,
"mergedFiles": [
"<string>"
],
"name": "Employment agreement",
"originalName": "Employment contract",
"originalOwner": "john.doe@example.com",
"originalShareEdit": true,
"owner": "john.doe@example.com",
"shareEdit": true
},
"timestamp": "2023-11-07T05:31:56Z",
"user": {
"authenticationFactors": [
"<string>"
],
"delegation": {
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"delegationChanged": false,
"initialChanged": false,
"mail": "<string>",
"passwordChanged": false,
"phone": "<string>",
"reassignTo": "<string>",
"recoveryCodesChanged": false,
"signatureChanged": false,
"stampChanged": false,
"status": "active"
},
"viaPublicApi": true,
"webhook": {
"actor": "<string>",
"authMethod": "none",
"callbackUrl": "https://example.com/hooks/circularo",
"documentId": "<string>",
"event": "<string>",
"id": "<string>",
"name": "<string>",
"success": true,
"type": "<string>"
}
}
],
"scrollId": "8kZtoG59p8qvO4a5LepHCNaR7LGH7BKFIAU1rd5DAEBPi4pxxIA6NVOAd0GXKB1m",
"total": 51221,
"users": [
{
"fullname": "John Doe",
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"mail": "john.doe@example.com",
"recordType": "internal",
"role": "Head of Legal"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Search the audit log
POST /logs/search
Searches the record of what has happened in the tenant - who did what, to which object and when - which is what an audit, a security review or a usage report is built from. Entries are written for actions across the whole platform and are never changed or removed afterwards.
How much of that record a caller sees depends on who they are. An ordinary user sees only entries that concern them personally - what they did, and what was done to their documents, shares and account. An organization administrator sees those plus everything belonging to their own organization. A global administrator sees the whole tenant, and is the only one shown entries about payment. Some parts of an entry are withheld the same way, and cannot be searched on by a caller who would not be shown them.
Large results are read a page at a time: ask for paging in scroll, then send back the handle each page returns until the entries run out, and release the paging with DELETE /logs/scroll when you stop early. Note that entries are written in batches, so an action taken a moment ago may not be searchable yet.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: view_logs
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/logs/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"includeUsers": false,
"logsQuery": {
"from": 0,
"query": {
"filter": [
{}
],
"ignore_unmapped": false,
"minimumShouldMatch": 1,
"must": [
{}
],
"mustNot": [
{}
],
"path": "workflow.history",
"should": [
{}
]
},
"size": 100,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
},
"scroll": {
"id": "<string>",
"timeout": 30
}
}
'import requests
url = "https://sandbox.circularo.com/api/v1/logs/search?token="
payload = {
"includeUsers": False,
"logsQuery": {
"from": 0,
"query": {
"filter": [{}],
"ignore_unmapped": False,
"minimumShouldMatch": 1,
"must": [{}],
"mustNot": [{}],
"path": "workflow.history",
"should": [{}]
},
"size": 100,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
},
"scroll": {
"id": "<string>",
"timeout": 30
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
includeUsers: false,
logsQuery: {
from: 0,
query: {
filter: [{}],
ignore_unmapped: false,
minimumShouldMatch: 1,
must: [{}],
mustNot: [{}],
path: 'workflow.history',
should: [{}]
},
size: 100,
sort: [{field: 'createDate', nested: {}}]
},
scroll: {id: '<string>', timeout: 30}
})
};
fetch('https://sandbox.circularo.com/api/v1/logs/search?token=', 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://sandbox.circularo.com/api/v1/logs/search?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeUsers' => false,
'logsQuery' => [
'from' => 0,
'query' => [
'filter' => [
[
]
],
'ignore_unmapped' => false,
'minimumShouldMatch' => 1,
'must' => [
[
]
],
'mustNot' => [
[
]
],
'path' => 'workflow.history',
'should' => [
[
]
]
],
'size' => 100,
'sort' => [
[
'field' => 'createDate',
'nested' => [
]
]
]
],
'scroll' => [
'id' => '<string>',
'timeout' => 30
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/logs/search?token="
payload := strings.NewReader("{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/logs/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/logs/search?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeUsers\": false,\n \"logsQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 100,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n },\n \"scroll\": {\n \"id\": \"<string>\",\n \"timeout\": 30\n }\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "0e0PfpcBGFrg4D9XeKcl",
"activityTarget": "document",
"activityType": "signed",
"actorId": "john.doe@example.com",
"actorType": "user",
"authentication": {
"email": "<string>",
"factors": [
"<string>"
],
"id": "<string>",
"isSign": true,
"phone": "<string>",
"provider": "<string>",
"success": true,
"type": "internal",
"unlocked": true,
"username": "john.doe@example.com"
},
"certificate": {
"fingerprintSha256": "A13767DDACA2D1B0ACAEB7CD3145D3D1CE14E208106318968FAF9882C8423F43",
"id": "<string>",
"issuer": "<string>",
"keyUsage": [
"digitalSignature",
"nonRepudiation"
],
"qcCompliance": true,
"qcSSCD": true,
"qcTypes": [
"esign"
],
"serialNumber": "4DC32DD214A19795A2111484900663142F513989",
"subject": "<string>",
"validityFrom": "2023-11-07T05:31:56Z",
"validityTo": "2023-11-07T05:31:56Z"
},
"clonedFrom": {
"creator": "<string>",
"id": "<string>",
"organization": "<string>",
"owner": "<string>"
},
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"isDesktop": true,
"isMobile": true,
"isTablet": true,
"location": {
"city": "Pilsen",
"country": "Czech Republic",
"countryCode": "CZ",
"region": "Vysočina"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"servedType": "desktop",
"userAgent": "<string>"
},
"document": {
"alertTo": "<string>",
"attachments": {
"added": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
],
"removed": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
]
},
"creator": "<string>",
"documentTitle": "<string>",
"documentType": "d_default",
"fileChanged": true,
"folder": {
"parentFolderId": "<string>",
"username": "<string>"
},
"linkRemovable": true,
"linkTarget": "<string>",
"mainFileChecksum": "<string>",
"merge": [
{
"end": 123,
"hash": "<string>",
"start": 123
}
],
"organization": "<string>",
"originalOwner": "<string>",
"originalTitle": "<string>",
"owner": "<string>",
"reassign": {
"changedCreateName": "<string>",
"from": "<string>",
"removedFromFolder": "<string>",
"to": "<string>"
},
"reminder": {
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"reminderOn": "2026-11-30T08:00:00.000Z",
"retargetedFrom": [
"john.doe@example.com"
],
"retargetedTo": "jane.doe@example.com",
"time": "09:00",
"timeZone": "Europe/Prague"
},
"renewal": {
"from": "2026-12-31T00:00:00.000Z",
"renewedCount": 123,
"to": "2027-12-31T00:00:00.000Z"
},
"revertToRevision": 123,
"revision": 123,
"rights": {
"edit": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"<string>"
]
},
"madePrivate": true,
"madePublic": true,
"read": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"<string>"
]
}
},
"sealProvider": "company-qseal",
"shareStateName": "completed",
"signatureChecksums": [
"<string>"
],
"signatureProvider": "<string>",
"signatureProviderMetadata": "<string>",
"submittedFiles": {
"added": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
],
"removed": [
{
"content": "<string>",
"name": "evidence.pdf",
"public": true
}
]
},
"tags": {
"global": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
},
"user": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
}
},
"term": {
"expiresOnFrom": "2026-12-31T00:00:00.000Z",
"expiresOnTo": "2027-12-31T00:00:00.000Z",
"nonFixedTermChanged": true,
"recipientsAdded": [
"jane.doe@example.com"
],
"recipientsRemoved": [
"john.doe@example.com"
],
"remindersChanged": true,
"renewalChanged": true,
"terminationCancelled": true,
"terminationInitiated": true,
"termTypeFrom": "fixed_term",
"termTypeTo": "fixed_term"
},
"titleChanged": true,
"tsaServer": "<string>",
"twoStepSigningType": "<string>",
"workflow": {
"action": 123,
"clearedComments": [
{
"author": "<string>",
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "<string>",
"historyId": "<string>",
"isPublicComment": true,
"reactions": [
"<string>"
],
"threadParentId": "<string>"
}
],
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "<string>",
"groupRecipient": [
"<string>"
],
"historyId": "<string>",
"isPublicComment": true,
"mentions": [
"<string>"
],
"name": "<string>",
"previousComment": "<string>",
"previousCommentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"previousCommentAttachment": "<string>",
"reaction": "<string>",
"shareStateName": "<string>",
"threadParentId": "<string>",
"userRecipient": [
"<string>"
],
"workflow": "<string>"
}
},
"generic": {
"addedKeys": [
"<string>"
],
"changes": [
{
"action": "added",
"new": "<string>",
"original": "<string>",
"property": "<string>",
"redacted": true
}
],
"deletedKeys": [
"<string>"
],
"editedKeys": [
"<string>"
],
"error": "INTEGRATION:RESPONSE_UPSTREAM_ERROR",
"status": "<string>",
"success": true
},
"group": {
"type": [
"<string>"
]
},
"integrityChain": "<string>",
"integrityChecksum": "<string>",
"integritySequence": 123,
"language": {
"active": true,
"addedLanguages": [
"<string>"
],
"addedTranslations": [
"<string>"
],
"deletedTranslations": [
"<string>"
],
"editedLanguages": [
"<string>"
],
"editedTranslations": [
"<string>"
],
"key": "common:name",
"languageId": "en",
"newKey": "<string>",
"overwriteFromFile": true,
"removeMissing": true,
"typographies": [
"<string>"
]
},
"llmUsage": {
"api": "responses",
"attempts": 123,
"cachedInputTokens": 123,
"cacheWriteTokens": 123,
"durationMs": 123,
"failureReason": "timeout",
"httpStatus": 429,
"inputCharacters": 123,
"inputTokens": 123,
"inputTruncated": true,
"keySource": "settings",
"maxOutputTokens": 123,
"modelRequested": "gpt-4.1-mini",
"modelServed": "gpt-4.1-mini-2025-04-14",
"outputTokens": 123,
"providerErrorCode": "insufficient_quota",
"providerHost": "api.openai.com",
"purpose": "document_analysis",
"reasoningEffort": "medium",
"reasoningOutputTokens": 123,
"requestId": "req_8f3c1a5e2b7d4c9f",
"responseId": "resp_67ccd2bed1ec8190b14f964abc054267",
"serviceTier": "default",
"timedOutAttempts": 123,
"totalTokens": 123,
"usageComplete": true
},
"notification": {
"messageId": "<string>",
"recipients": [
"<string>"
],
"response": "<string>",
"success": true,
"template": "<string>",
"type": "email"
},
"organization": "<string>",
"plan": {
"edition": "<string>",
"status": "<string>"
},
"requestId": "<string>",
"rights": {
"addedGroups": [
"<string>"
],
"addedRights": [
"<string>"
],
"addedUsers": [
"<string>"
],
"removedGroups": [
"<string>"
],
"removedRights": [
"<string>"
],
"removedUsers": [
"<string>"
]
},
"settings": {
"name": "<string>",
"type": "user"
},
"share": {
"delegatedFrom": "<string>",
"delegatedTo": "<string>",
"initiatedViaPublicApi": true,
"isNafathProtected": true,
"isPasswordProtected": true,
"isPermanentViewToken": true,
"kyc": {
"checks": {
"dateOfBirth": true,
"documentNumber": true,
"nationality": true
},
"documentType": "idCard",
"fieldsMatch": true,
"provider": "identomat",
"providers": [
"<string>"
],
"sessionId": "<string>"
},
"oauth": {
"checks": {
"email": true,
"emiratesId": true,
"phoneNumber": true
},
"provider": "<string>",
"providers": [
"<string>"
]
},
"otpMail": "<string>",
"otpPhone": "<string>",
"sharedBy": "<string>",
"sharedUsername": "<string>",
"sharedWith": "<string>",
"shareId": "<string>",
"shareType": "<string>",
"validUntil": "2023-11-07T05:31:56Z",
"verifiedWith": {
"factor": "sms",
"fullname": "<string>",
"fullnameAr": "<string>",
"kycFactors": [
"idVerification"
],
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"value": "<string>"
}
},
"stamp": {
"isTemp": true,
"name": "<string>",
"organization": "<string>",
"owner": "<string>"
},
"storedText": "<string>",
"stripe": {
"amountDue": 123,
"amountPaid": 123,
"amountTotal": 123,
"cancelAtPeriodEnd": true,
"checkoutSessionId": "<string>",
"clientReferenceId": "<string>",
"currency": "eur",
"customerId": "<string>",
"eventCreated": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"eventLivemode": true,
"eventType": "invoice.paid",
"invoiceId": "<string>",
"objectId": "<string>",
"objectType": "invoice",
"paymentStatus": "<string>",
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z",
"processingNote": "<string>",
"processingResult": "applied",
"receivedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"subscriptionId": "<string>"
},
"subject": "<string>",
"subscription": {
"amount": 123,
"assignedToId": "<string>",
"assignedToType": "user",
"subVariable": "<string>",
"variable": "<string>"
},
"template": {
"attachments": {
"added": [
{
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"name": "terms.pdf",
"public": true
}
],
"removed": [
{
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"name": "terms.pdf",
"public": true
}
]
},
"bound": true,
"checked": true,
"exportFormat": "json",
"fileChanged": true,
"id": "a831e07b-fbd9-416e-9711-41b0477ecac3",
"imported": true,
"isLocked": true,
"mergedFiles": [
"<string>"
],
"name": "Employment agreement",
"originalName": "Employment contract",
"originalOwner": "john.doe@example.com",
"originalShareEdit": true,
"owner": "john.doe@example.com",
"shareEdit": true
},
"timestamp": "2023-11-07T05:31:56Z",
"user": {
"authenticationFactors": [
"<string>"
],
"delegation": {
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"delegationChanged": false,
"initialChanged": false,
"mail": "<string>",
"passwordChanged": false,
"phone": "<string>",
"reassignTo": "<string>",
"recoveryCodesChanged": false,
"signatureChanged": false,
"stampChanged": false,
"status": "active"
},
"viaPublicApi": true,
"webhook": {
"actor": "<string>",
"authMethod": "none",
"callbackUrl": "https://example.com/hooks/circularo",
"documentId": "<string>",
"event": "<string>",
"id": "<string>",
"name": "<string>",
"success": true,
"type": "<string>"
}
}
],
"scrollId": "8kZtoG59p8qvO4a5LepHCNaR7LGH7BKFIAU1rd5DAEBPi4pxxIA6NVOAd0GXKB1m",
"total": 51221,
"users": [
{
"fullname": "John Doe",
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"mail": "john.doe@example.com",
"recordType": "internal",
"role": "Head of Legal"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Query Parameters
Body
Response
Returns the matching entries and how many there are altogether. Matching nothing is a success with an empty list.