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
| Parameter | Means |
|---|---|
action | Only these actions, comma-separated: project.created,personal_token.revoked. An unknown one is a 422 |
actorUserId | Only what this person did: a userId as GET /v1/members lists |
cursor | The nextCursor of the page before, for the next, older page. Leave it out for the newest page |
limit | How 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
{
"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
| Status | Code | Reason | When | Channels |
|---|---|---|---|---|
| 401 | invalid_credentials | The API key or personal access token is missing, malformed, unknown, revoked or expired. | All | |
| 403 | forbidden | The credential may not make this call here. details.reason says why. | All | |
| 403 | insufficient_scope | The key or token does not carry the scope this route needs. | All | |
| 409 | project_archived | The key's project is archived. | All | |
| 422 | validation_failed | A field is wrong, and details names each one at its path. | All | |
| 429 | rate_limited | Too many requests for this route's budget. | All | |
| 500 | internal_error | Mapier failed on its side, and has been alerted. | All | |
| 503 | service_busy | Mapier is busy and did nothing with this request. details.retryAfter says how many seconds to wait. | All | |
| 503 | upstream_unavailable | The channel did not take the command, or gave no answer Mapier could use. | All |