Who did what in a team, newest first: when, the account, the action, how (dashboard, API key or assistant) and the address and browser it came from, as the team keeps them. Sign-ins, failed sign-ins and two-factor changes are here too. For the team's owners and admins.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
team*stringThe team's id (team_…).
person?stringOnly what this account did (its user id), or pyo for Pyo's own.
action?stringOnly this action (member.role_changed) or kind of action (member).
from?integerFrom this time on (milliseconds).
int64to?integerUp to this time (milliseconds).
int64cursor?stringThe next of the page before.
format?stringcsv for a download of everything that matches (up to 50,000 rows).
events (each with id, at, action, title, actor {id, name, email}, via, key, ip, userAgent, target and outcome), next (the cursor for the next page, or null), people (who appears in the log), ips (what the team keeps of addresses) and days (how long entries are kept). With format=csv, a CSV file.
application/jsoncurl -X GET 'https://your-pyo.example.com/api/v1/audit-log?team=string'{}