Skip to main content
GET
/
audit_logs
cURL
curl --request GET \
  --url https://production.knotapi.com/audit_logs \
  --header 'Authorization: Basic <encoded-value>'
{
"data": [
{
"datetime": "2025-12-23T15:48:58Z",
"event": {
"action": "merchant.hide",
"outcome": {
"status": "success"
}
},
"actor": {
"name": "Ada Lovelace",
"email": "[email protected]"
},
"target": {
"type": "merchant",
"name": "Amazon Prime"
},
"context": {
"ip": "208.204.24.80",
"user_agent": "Mozilla/5.0 ..."
}
}
],
"next_cursor": "eyJpZCI6MTIzNDU2LCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9",
"limit": 100
}

Logged actions

  • Authentication: Login attempts, 2FA changes, password resets
  • Users: Adding, updating, and removing Knot Dashboard users
  • Merchants: Activating, hiding, and exporting merchants
  • Webhooks: Creating, updating, and deleting webhook configurations
  • Secrets: Viewing and rotating API secrets
  • SSO: Adding, updating, enabling, and disabling SAML configurations
  • Domains: Adding and removing allowlisted domains
  • Account: Account activation and app logo updates

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.

Query Parameters

start
string<date-time>

Filter audit logs to those created on or after this timestamp. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).

Example:

"2025-01-01T00:00:00Z"

end
string<date-time>

Filter audit logs to those created on or before this timestamp. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).

Example:

"2025-12-31T23:59:59Z"

next_cursor
string

Cursor token for pagination. Use the next_cursor value from the previous response to retrieve the next page of results.

Example:

"eyJpZCI6MTIzNDU2LCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9"

Response

Successful request.

data
object[]
next_cursor
string | null

Cursor token for the next page of audit logs. Null if there are no further results.

limit
integer

Number of items per page.

Example:

100