Overview

The Admin API provides administrative operations for the Truss platform, including audit log access, user role management with hierarchical enforcement, IP allowlist management, and data residency configuration. All endpoints require the admin or owner role.

Endpoints

MethodPathDescription
GET/admin/logList audit log entries
GET/admin/permissionsList all users and roles
PATCH/admin/users/:userId/roleChange user role (enforces hierarchy)
GET/admin/ip-allowlistList IP allowlist
POST/admin/ip-allowlistAdd an IP to the allowlist
DELETE/admin/ip-allowlist/:idRemove an IP from the allowlist
GET/admin/data-residencyGet data residency region
POST/admin/data-residencySet data residency region (eu/us/africa)

Example

curl http://localhost:4000/admin/log \
  -H "Authorization: Bearer tr_abc123"