GetContextStoreAPIKey
Retrieves an API key.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetContextStoreAPIKey |
get |
*ContextStoreAPIKey
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
| contextStoreName |
string |
No |
The name of the context store. |
my-context-store |
| name |
string |
No |
The display name of the API key. |
my-api-key |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID used to locate the request during troubleshooting. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| name |
string |
The display name of the API key. |
my-api-key |
| apiKey |
string |
The masked prefix of the API key, such as sk-abcd****. The full plaintext is not returned for security reasons. |
sk-abcd**** |
| createTime |
string |
The time when the API key was created, in ISO 8601 UTC format. |
2026-01-01T00:00:00Z |
| agentSpace |
string |
The name of the AgentSpace to which the API key belongs. |
my-agent-space |
| contextStoreName |
string |
The name of the context store to which the API key belongs. |
my-context-store |
| regionId |
string |
The ID of the region where the API key resides. |
cn-hangzhou |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.