List audit log entries

Your organization's audit log, newest first

GET/v1/audit-logs

Your organization's audit log, newest first: who did what, to what, and when. It needs the audit:read scope on the token and an admin's role now. A token whose owner stopped being an admin gets a 403 forbidden with reason: "role" until they are one again.

This route takes a personal access token only.

Query

ParameterMeans
actionOnly these actions, comma-separated: project.created,personal_token.revoked. An unknown one is a 422
actorUserIdOnly what this person did: a userId as GET /v1/members lists
cursorThe nextCursor of the page before, for the next, older page. Leave it out for the newest page
limitHow many entries a page holds, 1 to 100. 25 when left out

Pass each answer's nextCursor back until it is null.

Example request

curl "https://api.mapier.ai/v1/audit-logs?action=project.created&limit=50" \
  -H "Authorization: Bearer $MAPIER_TOKEN" \
  -H "x-mapier-version: 2026-12-01"

Response

200 OK
{
  "auditLogs": [
    {
      "id": "0192a7e1-2b3c-7d4e-9f50-6b7c8d9e0f1a",
      "action": "project.created",
      "actor": {
        "userId": "0192a7e0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
        "name": "Ada Lovelace",
        "apiKeyId": null,
        "personalTokenId": null
      },
      "targetType": "project",
      "targetId": "support-bot",
      "metadata": {},
      "createdAt": "2026-09-02T14:05:00.000Z"
    }
  ],
  "nextCursor": null
}

actor says who did it: userId is null when nobody signed in did, apiKeyId names a project key that did, and personalTokenId the personal access token a person used. metadata is what the action recorded about itself.

Errors

StatusCodeReasonWhenChannels
401invalid_credentialsThe API key or personal access token is missing, malformed, unknown, revoked or expired.All
403forbiddenThe credential may not make this call here. details.reason says why.All
403insufficient_scopeThe key or token does not carry the scope this route needs.All
409project_archivedThe key's project is archived.All
422validation_failedA field is wrong, and details names each one at its path.All
429rate_limitedToo many requests for this route's budget.All
500internal_errorMapier failed on its side, and has been alerted.All
503service_busyMapier is busy and did nothing with this request. details.retryAfter says how many seconds to wait.All
503upstream_unavailableThe channel did not take the command, or gave no answer Mapier could use.All