Account
Your company's account: who is calling, its keys, its caps, what it spent and the models it may use.
GET/v1/audit-logEvery key use, settings change and approval answer, newest first.
Request2 fields
Query
limitintegerHow many items per page, 1 to 100. Default 20.
- Type
integer
cursorstringWhere to go on from: the next_cursor of the page before, unchanged. Absent: the first page.
- Type
string
Answers 2002 fields
dataobject[]The items on this page.
idstringThe entry's id.
- Type
string
object"audit_event"Always audit_event.
- Type
"audit_event"
mode"live" | "test" | nullThe mode it happened in; null for a Vestra staff action on the company account.
- Type
"live" | "test" | null
actionstringWhat was done, such as task.deleted or notebook.created.
- Example
task.deleted
actorobjectWho did it.
kindstringWho did it: key (an API key), console (a person signed in), client (a session token) or staff (Vestra).
- Type
string
idstring | nullThe key's id, the signed-in person's, or the session's; null when there is none to show.
- Type
string | null
targetobjectWhat it was done to.
typestringWhat kind of thing it was done to, such as task, notebook or interaction.
- Type
string
idstringIts id.
- Type
string
detailmap of any | nullMore about it, such as the fields that changed. It never holds a secret or a key; null when there is nothing more.
- Type
map of any | null
created_atstringWhen it happened, as an ISO 8601 date and time in UTC.
- Type
string
next_cursorstring | nullSend it as cursor for the next page; null on the last page.
- Type
string | null
No sample in your language for this route, so here it is over HTTP.
curl "$VESTRA_BASE_URL/v1/audit-log" \ -H "Authorization: Bearer $VESTRA_API_KEY"