Skip to main content
GET
/
auditlogs
List Audit Logs
curl --request GET \
  --url https://api.upstash.com/v2/auditlogs \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "log_id": "ab9744ed-f51c-4z58-a3cj-e3bs756154du",
    "customer_id": "[email protected]",
    "actor": "[email protected]",
    "timestamp": 1764587058,
    "action": 13,
    "action_string": "Delete Team",
    "source": "API_KEY - system_tests",
    "entity": "test_team",
    "secondary_entity": "NA",
    "third_entity": "",
    "readable_format": "",
    "ip": "1.2.3.4",
    "ttl": 1780311858,
    "reason": "",
    "notes": ""
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Response

200 - application/json

Audit logs retrieved successfully

log_id
string

Unique identifier for the log entry

Example:

"ab9744ed-f51c-4z58-a3cj-e3bs756154du"

customer_id
string

The ID or email of the customer associated with the log

actor
string

The user or system that performed the action

timestamp
integer<int64>

Unix timestamp of when the action occurred

Example:

1764587058

action
integer

Numeric ID representing the specific action type

Example:

13

action_string
string

Human-readable description of the action

Example:

"Delete Team"

source
string

The source method or client used to perform the action

Example:

"API_KEY - system_tests"

entity
string

The primary entity affected by the action

Example:

"test_team"

secondary_entity
string

A secondary entity affected, "" or "NA" if not applicable

Example:

"NA"

third_entity
string

A tertiary entity affected, "" or "NA" if not applicable

Example:

""

readable_format
string

formatted string for display purposes

Example:

""

ip
string<ipv4>

The IP address from which the request originated

Example:

"1.2.3.4"

ttl
integer<int64>

Time to live (expiration) timestamp for this log entry

Example:

1780311858

reason
string

The reason for the action, if provided

Example:

""

notes
string

Additional notes regarding the action

Example:

""