List user actions and configuration changes within this organization.
GET /organization/audit_logs
Authorizations
Parameters
Query Parameters
Return only events whose effective_at
(Unix seconds) is in this range.
object
Return only events whose effective_at
(Unix seconds) is greater than this value.
Return only events whose effective_at
(Unix seconds) is greater than or equal to this value.
Return only events whose effective_at
(Unix seconds) is less than this value.
Return only events whose effective_at
(Unix seconds) is less than or equal to this value.
Return only events for these projects.
Return only events with a type
in one of these values. For example, project.created
. For all options, see the documentation for the audit log object.
Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID.
Return only events performed by users with these emails.
Return only events performed on these targets. For example, a project ID updated.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
A cursor for use in pagination. after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A cursor for use in pagination. before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Responses
200
Audit logs listed successfully.
object
A log of a user action or configuration change within this organization.
object
The ID of this log.
The event type.
The Unix timestamp (in seconds) of the event.
The project that the action was scoped to. Absent for actions not scoped to projects.
object
The project ID.
The project title.
The actor who performed the audit logged action.
object
The type of actor. Is either session
or api_key
.
The session in which the audit logged action was performed.
object
The user who performed the audit logged action.
object
The user id.
The user email.
The IP address from which the action was performed.
The API Key used to perform the audit logged action.
object
The tracking id of the API key.
The type of API key. Can be either user
or service_account
.
The user who performed the audit logged action.
object
The user id.
The user email.
The service account that performed the audit logged action.
object
The service account id.
The details for events with this type
.
object
The tracking ID of the API key.
The payload used to create the API key.
object
A list of scopes allowed for the API key, e.g. ["api.model.request"]
The details for events with this type
.
object
The tracking ID of the API key.
The payload used to update the API key.
object
A list of scopes allowed for the API key, e.g. ["api.model.request"]
The details for events with this type
.
object
The tracking ID of the API key.
The details for events with this type
.
object
The ID of the invite.
The payload used to create the invite.
object
The email invited to the organization.
The role the email was invited to be. Is either owner
or member
.
The details for events with this type
.
object
The ID of the invite.
The details for events with this type
.
object
The ID of the invite.
The details for events with this type
.
object
The error code of the failure.
The error message of the failure.
The details for events with this type
.
object
The error code of the failure.
The error message of the failure.
The details for events with this type
.
object
The organization ID.
The payload used to update the organization settings.
object
The organization title.
The organization description.
The organization name.
object
Visibility of the threads page which shows messages created with the Assistants API and Playground. One of ANY_ROLE
, OWNERS
, or NONE
.
Visibility of the usage dashboard which shows activity and costs for your organization. One of ANY_ROLE
or OWNERS
.
The details for events with this type
.
object
The project ID.
The payload used to create the project.
object
The project name.
The title of the project as seen on the dashboard.
The details for events with this type
.
object
The project ID.
The payload used to update the project.
object
The title of the project as seen on the dashboard.
The details for events with this type
.
object
The project ID.
The details for events with this type
.
object
The service account ID.
The payload used to create the service account.
object
The role of the service account. Is either owner
or member
.
The details for events with this type
.
object
The service account ID.
The payload used to updated the service account.
object
The role of the service account. Is either owner
or member
.
The details for events with this type
.
object
The service account ID.
The details for events with this type
.
object
The user ID.
The payload used to add the user to the project.
object
The role of the user. Is either owner
or member
.
The details for events with this type
.
object
The project ID.
The payload used to update the user.
object
The role of the user. Is either owner
or member
.
The details for events with this type
.
object
The user ID.