The audit log is PrintHeritage’s immutable record of every significant action performed on the platform. Each entry captures who did what, against which resource, and when. Access is intentionally restricted to users holding theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/joaomonteir0/printheritage/llms.txt
Use this file to discover all available pages before exploring further.
SUPER_ADMIN role — any other authenticated user will receive a 403 response. Entries are returned in descending timestamp order so that the most recent activity always appears first.
GET /audit-logs
Retrieves the complete audit log, joining each entry’suser_id to the users table to resolve the actor’s email address at query time. The result set is ordered by timestamp DESC.
Authentication
A valid Bearer token issued to aSUPER_ADMIN user must be supplied in the Authorization header.
Response
Returns a JSON array of audit log entry objects, ordered newest-first.Unique identifier of this audit log entry.
Email address of the user who performed the action, resolved from the
users table via the user_id foreign key.Identifier of the action that was performed. See the full reference table
below for all possible values.
The category of resource affected by the action. Either
"USER",
"PROJECT", or null when no specific resource type is relevant.UUID of the specific resource that was affected, or
null when not
applicable.Optional free-text context recorded alongside the action, such as the email
address of a newly registered user.
null when no extra detail was captured.UTC datetime at which the action was recorded, serialised as an ISO 8601
string, e.g.
"2024-06-01T10:32:45.123456".Action type reference
Every value that can appear in theaction field is listed below, together with the target_type it is paired with and a description of when it is written.
| Action | target_type | Description |
|---|---|---|
USER_LOGIN | USER | A user successfully authenticated via the /login endpoint. |
USER_CREATED | USER | A new user account was registered via /register. |
USER_UPDATE | USER | A user profile field was updated via PATCH /users/{user_id}. |
USER_DELETE | USER | A user account was permanently deleted. |
PROJECT_CREATE | PROJECT | A new project was created. |
PROJECT_DATA_ADD | PROJECT | A dataset was added to or updated within a project. |
PROJECT_DATA_DELETE | PROJECT | A dataset was permanently removed from a project. |
PROJECT_MEMBER_INVITE | USER | A user was invited to join a project (target is the invitee’s ID). |
PROJECT_MEMBER_REMOVE | USER | A member was removed from a project (target is the removed user’s ID). |
INVITE_ACCEPT | PROJECT | A pending invitation was accepted. |
INVITE_REJECT | PROJECT | A pending invitation was rejected. |
PASSWORD_CHANGE | USER | The authenticated user changed their own password. |
Example
Error responses
| Status | Condition |
|---|---|
403 | Authenticated user does not hold the SUPER_ADMIN role. |
401 | Missing or invalid Bearer token. |