provider Audit Logs GET /organization/audit_logs
@utdk/openai /organization/audit_logs
List user actions and configuration changes within this organization.
effective_at query
Return only events whose `effective_at` (Unix seconds) is in this range.
object
project_ids[] query
Return only events for these projects.
array
event_types[] query
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](/docs/api-reference/audit-logs/object).
array
actor_ids[] query
Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID.
array
actor_emails[] query
Return only events performed by users with these emails.
array
resource_ids[] query
Return only events performed on these targets. For example, a project ID updated.
array
limit query
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
integer
after query
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.
string
before query
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, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
string

Try it

Authentication
Configure credentials for OpenAI API
listAuditLogs
GET/organization/audit_logs

Return only events whose `effective_at` (Unix seconds) is in this range.

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](/docs/api-reference/audit-logs/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, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import openai from '@utdk/openai';

await openai.listAuditLogs({
  "limit": 20
})