CreateContextStoreAPIKey
Creates an API key.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateContextStoreAPIKey |
create |
*ContextStoreAPIKey
|
None | None |
Request syntax
POST /workspace/{workspace}/contextstore/{contextStoreName}/apikey HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The workspace ID. |
workspace-test |
| contextStoreName |
string |
Yes |
The context store name. |
test-context-store |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| name |
string |
Yes |
The display name of the API key, used to identify its purpose. |
Production Service Key |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
3B311FD9-A60B-55E0-A896-A0C73********* |
| apiKey |
string |
The full API key value. |
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| name |
string |
The name of the API key. |
Production Service Key |
Examples
Success response
JSON format
{
"requestId": "3B311FD9-A60B-55E0-A896-A0C73*********",
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Production Service Key"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.