Audit log
List the changes made in your tenant through the API, the console and MCP, and your members' sign-ins and account security changes, filtered by actor, action, account, outcome and time.
The audit log records every request that changes something in your tenant: who made it, what it targeted and how it was answered. Read it with GET /v1/audit-log, which needs the admin scope.
What is recorded
/v1calls, console actions and MCP tool calls that mutate data.- Refused requests too: an entry's
statusanderrorReasonsay how it was answered. - A change made under the
readscope is still recorded. - Your members' sign-ins and account security changes, and what your directory provisions over SCIM.
Reads are not recorded. A POST that only reads (a template render, finding free time, an AI draft) is skipped.
List entries
Entries come newest first, paged with limit and cursor like other lists.
curl "https://api.workwae.com/v1/audit-log?action=accounts.&outcome=failure&limit=50" \
-H "Authorization: Bearer $WORKWAE_API_KEY"Filters
| Parameter | Matches |
|---|---|
actorType | user, apiKey, accountToken, connectSession or scimCredential. |
actorId | The actor's id. |
action | The procedure path, such as accounts.create. Matches exactly, or as a prefix when it ends with a dot (accounts.). |
accountId | Entries that targeted this account. |
outcome | success (a 2xx status) or failure (any other status). |
from, to | createdAt range, both ends included. to before from answers invalid_range (400). |
Entry fields
| Field | Meaning |
|---|---|
actor | type, id and label: the user's email, the key's prefix or the SCIM token's id at the time, or null when there was none. |
action | Procedure path, for example accounts.delete; see sign-in events for the auth. and scim. ones. |
surface | v1, rpc (the console), mcp, or auth (sign-in, account security and SCIM requests). |
targets | Ids the request named (accountId, messageId and so on). The rest of the input is not kept. |
status | HTTP status answered. |
errorReason | The refusal's reason code, or null. |
requestId | The request's X-Request-Id, or null on entries written before request ids were stored. |
ip, userAgent | Client address and user agent. Either can be null. |
createdAt | When the request was recorded. |
requestId is the same id your own logs have if you sent the X-Request-Id header. Quote it to support. See request ids.
Sign-in and account events
Sign-in and account security changes are recorded under the surface auth, with the member as the actor (actorType user, the email as the label). ip, userAgent and requestId are those of the request. No password, code or token is kept. Filter them with action=auth. or one of the actions below.
| Action | Recorded when |
|---|---|
auth.signIn.password | A member signed in with their email and password. |
auth.signIn.passkey | A member signed in with a passkey. |
auth.signIn.google, auth.signIn.microsoft | A member signed in with Google or Microsoft. |
auth.signIn.sso | A member signed in through your organization's SSO connection. |
auth.signIn.twoFactor | A member finished a sign-in with an authenticator or backup code. The password, provider or SSO step before it is not recorded on its own. |
auth.reauthenticate | A member confirmed their password, an authenticator or backup code, or a passkey in the console before a sensitive change, such as creating an API key. |
auth.passkeys.create, auth.passkeys.delete | A passkey was added or removed. targets.passkeyId names it. |
auth.twoFactor.enable, auth.twoFactor.disable | A member turned two-factor authentication on or off. |
auth.password.change, auth.password.reset | A member changed their password, or set a new one through the emailed link. |
auth.email.change | A member's email address changed. The label is the new address. |
scim.users.create | Your directory provisioned a user, creating them or linking an existing account, as a member. targets.userId names the user. |
scim.users.update, scim.users.deactivate, scim.users.delete | Your directory changed, deactivated or deleted a provisioned user. scim.users.deactivate and scim.users.delete remove the member, except an owner, whom SCIM never removes. |
SCIM entries have the actor type scimCredential: the actor.id is stable for a token and the label is the token's id as listed in Settings, SSO & SCIM. Creating, rotating and revoking SCIM tokens and changing SSO connections are recorded as console.scim. and console.sso. entries, like other console changes.
Whose log an entry is in
A member who belongs to several organizations has their own events recorded in each organization's log, one entry apiece. An entry says nothing about the member's other organizations. A sign-in through an SSO connection is recorded only in the organization the connection belongs to, and SCIM entries only in the organization whose connection made the request. A user who belongs to no organization leaves no entries.
What is not recorded
- Failed sign-ins, wrong codes and refused changes. Only what succeeded is recorded, with
status200 (201 for a SCIM user created, 204 for one deleted) even when the request answered with a redirect. Failed attempts are not recorded because anyone can make them against a member's address, which would let outsiders fill your log. - Signing up, signing out, and changing a profile or avatar.