获取 API Key
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
agentloop:GetContextStoreAPIKey |
get |
*ContextStoreAPIKey
|
无 | 无 |
请求语法
GET /agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey/{name} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| agentSpace |
string |
否 |
AgentSpace 名称 |
my-agent-space |
| contextStoreName |
string |
否 |
上下文库名称 |
my-context-store |
| name |
string |
否 |
API Key 的显示名称 |
my-api-key |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应数据 |
||
| requestId |
string |
请求 Id,用于排查问题时定位本次请求 |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| name |
string |
API Key 的显示名称 |
my-api-key |
| apiKey |
string |
API Key 脱敏前缀(形如 sk-abcd****),出于安全不回显完整明文 |
sk-abcd**** |
| createTime |
string |
API Key 创建时间,ISO 8601 UTC 格式 |
2026-01-01T00:00:00Z |
| agentSpace |
string |
归属的 AgentSpace 名称 |
my-agent-space |
| contextStoreName |
string |
归属的上下文库名称 |
my-context-store |
| regionId |
string |
API Key 所在地域 Id |
cn-hangzhou |
示例
正常返回示例
JSON格式
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"name": "my-api-key",
"apiKey": "sk-abcd****",
"createTime": "2026-01-01T00:00:00Z",
"agentSpace": "my-agent-space",
"contextStoreName": "my-context-store",
"regionId": "cn-hangzhou"
}