Audit log
Each workspace has an append-only audit log. An entry is written together with the change it describes, so a change cannot happen without its entry. Request bodies, credentials and secret values are never recorded.
GET /v1/audit
Section titled “GET /v1/audit”List entries, newest first.
Auth: scope read; not a project token (403 “a project token cannot
manage the whole workspace”).
Query parameters
| Name | Type | Description |
|---|---|---|
before |
integer | return entries with id lower than this (cursor). Non-numeric or ≤ 0: ignored |
action |
string | prefix match on action (vm. matches vm.create, vm.create.requested, …). % and _ in the value act as wildcards |
limit |
integer | default 100, max 500; values outside 1–500 use 100 |
Response 200:
{"items": [ {"id": 48213, "at": "2026-11-30T09:14:02.900Z", "actor_kind": "system", "actor_user_id": "2b8e7c41-5d0a-4f3e-8c6b-9e1f2a3d4c5b", "actor_email": "sara@acme.example", "actor_token_id": "7a8b9c0d-1e2f-4a3b-9c4d-5e6f7a8b9c0d", "action": "vm.create", "target_kind": "resource", "target_id": "3e4f5a6b-7c8d-4e9f-a0b1-c2d3e4f5a6b7", "result": "ok", "detail": {"operation_id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f", "name": "web-1"}}, {"id": 48207, "at": "2026-11-30T09:12:44.530Z", "actor_kind": "token", "actor_user_id": "2b8e7c41-5d0a-4f3e-8c6b-9e1f2a3d4c5b", "actor_email": "sara@acme.example", "actor_token_id": "7a8b9c0d-1e2f-4a3b-9c4d-5e6f7a8b9c0d", "action": "vm.create.requested", "target_kind": "resource", "target_id": "3e4f5a6b-7c8d-4e9f-a0b1-c2d3e4f5a6b7", "result": "ok", "detail": {"operation_id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f", "connection": "oci-jeddah", "name": "web-1", "region": "me-jeddah-1", "size": "small", "image": "ubuntu-24.04"}, "ip": "198.51.100.23"}]}| Field | Meaning |
|---|---|
id |
increasing integer; use as before to page |
at |
time |
actor_kind |
user (session), token, or system (Mayadyn itself, for example when an operation finishes; carries the user/token that started the operation, if any) |
actor_user_id, actor_email |
the person (for a token, its creator) |
actor_token_id |
the token used |
action |
see below |
target_kind, target_id |
what it acted on |
result |
ok, denied or error |
detail |
action-specific JSON ({} is omitted) |
ip |
client IP, when recorded |
Paging: take the smallest id of a page and pass it as before for
the next. A page shorter than limit is the last.
curl -s "$MAYADYN/v1/audit?action=connection.&limit=50" -H "Authorization: Bearer $TOKEN"curl -s "$MAYADYN/v1/audit?before=48207&limit=50" -H "Authorization: Bearer $TOKEN"Actions
Section titled “Actions”Every action Mayadyn records:
| Action | Target | Detail | Recorded by |
|---|---|---|---|
tenant.create |
tenant | sign-up, POST /v1/tenants |
|
tenant.rules |
tenant | require_mfa, require_sso |
PATCH /v1/tenant |
tenant.sso |
tenant | issuer, client_id, allowed_domains; or removed: true |
PUT / DELETE /v1/tenant/sso |
tenant.key_rewrap |
tenant_key | from, to keyring |
Mayadyn rotated the key that protects the workspace’s encryption key (actor system) |
tenant.key_recovered |
tenant_key | from, to |
Mayadyn recovered the workspace’s encryption key (actor system) |
member.invite |
role |
POST /v1/members |
|
member.join |
user | accepting an invitation | |
member.update |
user | from, to role |
PATCH /v1/members/{id} |
member.remove |
user | DELETE /v1/members/{id} |
|
project.create |
project | POST /v1/projects |
|
project.delete |
project | DELETE /v1/projects/{id} |
|
token.create |
token | scopes, name |
POST /v1/tokens |
token.revoke |
token | DELETE /v1/tokens/{id} |
|
connection.create |
connection | provider, name, region, auth_mode |
POST /v1/connections |
connection.credentials_replaced |
connection | auth_mode, previous_auth_mode |
PUT /v1/connections/{ref}/credentials |
connection.verify |
connection | status, message; result ok/error |
verify (also after create/replace) |
connection.secret_used |
connection | purpose: verify, setup, <kind> <operation id>, app.deploy <id>, app.delete <id> |
every decryption of stored credentials |
connection.delete |
connection | name |
DELETE /v1/connections/{ref} |
vm.create.requested |
resource | operation_id, connection, name, region, size, image |
POST /v1/vms |
vm.start.requested, vm.stop.requested, vm.delete.requested |
resource | operation_id, name |
VM actions |
vm.create, vm.start, vm.stop, vm.delete, connection.sync |
resource (or connection) | operation_id, name; on failure error_code, error; result ok/error |
Mayadyn, when the operation finishes |
app.create |
app | name, connection, region |
POST /v1/apps |
app.deploy.requested |
app | operation_id, release, source, image, git |
deploy and rollback |
app.delete.requested |
app | operation_id, name |
DELETE /v1/apps/{ref} |
app.deploy, app.delete |
connection | operation_id, name; on failure error_code, error |
Mayadyn, when the operation finishes |
app.secrets |
app | env_keys (names only), registry, git_token (booleans) |
PUT /v1/apps/{ref}/secrets |
app.secrets_delivered |
app | generation |
the app’s host fetched its secrets, once per desired generation (actor system) |
request.denied |
method, route (pattern, e.g. /v1/vms/{id}); result denied |
any 403 on a workspace route |
For finished app.* operations the target is the connection, because app
operations carry no resource id.