Account

List Audit Logs

This endpoint lists all audit logs of user.

GET/v2/auditlogs
cURL
curl --request GET \
  --url https://api.upstash.com/v2/auditlogs \
  --header 'Authorization: Bearer <token>'
200Response
[
  {
    "log_id": "ab9744ed-f51c-4z58-a3cj-e3bs756154du",
    "customer_id": "example@example.com",
    "actor": "example@example.com",
    "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": ""
  }
]

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Response

200 — Audit logs retrieved successfully

Loading search…