亮色模式
List audit logs
GET
https://api.openai.com/v1/organization/audit_logsList user actions and configuration changes within this organization.
Request
Header 参数
Authorization
string
必需
示例值:
Bearer $OPENAI_ADMIN_KEY
Content-Type
string
必需
示例值:
application/json
Body 参数text/plain
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
object
string
必需
data
array [object {6}]
必需
id
string
必需
type
string
必需
effective_at
integer
必需
actor
object
必需
project.archived
object
可选
api_key.updated
object
可选
first_id
string
必需
last_id
string
必需
has_more
boolean
必需
示例
{
"object": "list",
"data": [
{
"id": "audit_log-xxx_yyyymmdd",
"type": "project.archived",
"effective_at": 1722461446,
"actor": {
"type": "api_key",
"api_key": {
"type": "user",
"user": {
"id": "user-xxx",
"email": "user@example.com"
}
}
},
"project.archived": {
"id": "proj_abc"
},
},
{
"id": "audit_log-yyy__20240101",
"type": "api_key.updated",
"effective_at": 1720804190,
"actor": {
"type": "session",
"session": {
"user": {
"id": "user-xxx",
"email": "user@example.com"
},
"ip_address": "127.0.0.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}
},
"api_key.updated": {
"id": "key_xxxx",
"data": {
"scopes": ["resource_2.operation_2"]
}
},
}
],
"first_id": "audit_log-xxx__20240101",
"last_id": "audit_log_yyy__20240101",
"has_more": true
}
最后修改时间: 9 天前