ReferenceTeams
The team's audit log (owners, admins and editors)
GET
team*stringTeam slug or ID
cursor?stringnextCursor from the previous page
limit?integerRange
1 <= value <= 200Default
50action?stringAn 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_]*$Length
length <= 100excludeAction?stringAction 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_]*\.)*$Length
length <= 100actorUserId?stringOnly entries by this person (including their API keys)
Format
uuidactorKind?"system"Only entries by the system
Value in
"system"targetType?stringMatch
^[a-z_]+$Length
length <= 64from?stringEntries at or after this time
Format
date-timeto?stringEntries before this time (exclusive)
Format
date-timeA page of audit entries, newest first
application/json- response
data*curl -X GET 'https://agents.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", "oauthClient": "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" }}