Printago API
POST /v1/audit-logs/search

POST /v1/audit-logs/search

Request Body

SearchQueryDto__type
fieldsoptional
string
Comma-separated list of fields to return
filteroptional
object
Root filter condition that can be either a logical condition (AND/OR) or field-based condition
actionoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
actorEmailoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
actorIdoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
actorTypeoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
apiKeyIdoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
changesoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
correlationIdoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
createdAtoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
detailedActionoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
entityIdoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
entityIdsoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
entityTypeoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
idoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
impersonatedByoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
ipAddressoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
metadataoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
reasonoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
sourceoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
storeIdoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
userAgentoptional
object
Available operators for filtering field values
betweenoptional
any[]
Field value is between two values (inclusive)
containsoptional
string
Field value contains the specified substring (case-insensitive)
endsWithoptional
string
Field value ends with the specified string (case-insensitive)
eqoptional
string | number | boolean
Field value equals the specified value
gtoptional
string | number
Field value is greater than the specified value
gteoptional
string | number
Field value is greater than or equal to the specified value
inoptional
string | number | boolean[]
Field value is one of the specified values
isNulloptional
boolean
Field value is null or not null
ltoptional
string | number
Field value is less than the specified value
lteoptional
string | number
Field value is less than or equal to the specified value
neoptional
string | number | boolean
Field value does not equal the specified value
notInoptional
string | number | boolean[]
Field value is not one of the specified values
startsWithoptional
string
Field value starts with the specified string (case-insensitive)
hintsoptional
boolean
If true, returns AI-friendly hints about available actions. Implies meta=true.
includeoptional
string
Comma-separated list of relations to include (max 4, max 2 levels deep). Example: "linkedParts,linkedParts.part,folder"
limitoptional
number
Maximum number of results to return (default: 100, max: 1000)
min: 1max: 1000
metaoptional
boolean
If true, returns response with metadata (total, count, hasMore, etc.)
offsetoptional
number
Number of results to skip for pagination
min: 0
sortoptional
string
Sort specification in format "field:asc,field2:desc"

Example Request

application/json
{
  "filter": {
    "and": [],
    "or": [],
    "source": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "metadata": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "id": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "storeId": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "createdAt": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "entityType": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "entityId": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "entityIds": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "action": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "detailedAction": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "changes": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "actorId": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "actorType": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "actorEmail": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "apiKeyId": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "impersonatedBy": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "correlationId": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "ipAddress": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "userAgent": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    },
    "reason": {
      "contains": "string",
      "startsWith": "string",
      "endsWith": "string",
      "in": [],
      "notIn": [],
      "isNull": true,
      "between": []
    }
  },
  "sort": "string",
  "limit": 1,
  "offset": 0,
  "fields": "string",
  "include": "string",
  "meta": true,
  "hints": true
}

Response Schema

SearchResponse
datarequired
Record<string, any>[]
Array of matching entities
metarequired
object
Pagination and result metadata
countrequired
number
Number of records returned in this response
executionTimerequired
number
Query execution time in milliseconds
hasMorerequired
boolean
Whether there are more records available
limitrequired
number
Maximum number of records requested
offsetrequired
number
Number of records skipped
totalrequired
number
Total number of matching records (before pagination)

Example Response

201 OK — application/json
{
  "data": [
    {}
  ],
  "meta": {
    "total": 1,
    "count": 1,
    "offset": 1,
    "limit": 1,
    "hasMore": true,
    "executionTime": 1
  }
}