项目 API 密钥对象

表示项目中的单个 API 密钥。source

对象类型,始终为organization.project.api_keysource

API 密钥的隐去值source

API 密钥的名称source

创建 API 密钥时的 Unix 时间戳(以秒为单位)source

标识符,可在 API 端点中引用source

OBJECT 项目 API 密钥对象
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "object": "organization.project.api_key",
    "redacted_value": "sk-abc...def",
    "name": "My API Key",
    "created_at": 1711471533,
    "id": "key_abc",
    "owner": {
        "type": "user",
        "user": {
            "object": "organization.project.user",
            "id": "user_abc",
            "name": "First Last",
            "email": "user@example.com",
            "role": "owner",
            "created_at": 1711471533
        }
    }
}