Open MCP Portaldocs
ReferenceTeams

The team's audit log (owners, admins and editors)

GET/v1/teams/{team}/audit

Path Parameters

team*string

Team slug or ID

Query Parameters

cursor?string

nextCursor from the previous page

limit?integer
Range1 <= value <= 200
Default50
action?string

An exact action (team.member_add), or a prefix ending in a dot (team.) for every action in that group.

Match^[a-z][a-z_]*\.[a-z_]*$
Lengthlength <= 100
excludeAction?string

Action groups (prefixes ending in a dot, comma-separated) to leave out: auth. hides sign-ins and sign-outs.

Match^[a-z][a-z_]*\.(,[a-z][a-z_]*\.)*$
Lengthlength <= 100
actorUserId?string

Only entries by this person (including their API keys)

Formatuuid
actorKind?"system"

Only entries by the system

Value in

  • "system"
targetType?string
Match^[a-z_]+$
Lengthlength <= 64
from?string

Entries at or after this time

Formatdate-time
to?string

Entries before this time (exclusive)

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/teams/string/audit"
{  "data": {    "items": [      {        "id": 0,        "occurredAt": "2019-08-24T14:15:22Z",        "actorKind": "user",        "actorUserId": "94141e08-adc7-44ce-bed3-45f031b9f36f",        "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",        "teamName": "string",        "teamSlug": "string",        "action": "team.member_add",        "actor": {          "kind": "user",          "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",          "displayName": "string",          "email": "string",          "apiKeyName": "string"        },        "targetType": "string",        "targetId": "string",        "targetLabel": "string",        "targetExists": true,        "before": null,        "after": null,        "metadata": {},        "requestId": "string",        "via": {          "kind": "session",          "name": "string"        },        "clientIp": "string"      }    ],    "nextCursor": "string"  }}