CreateApiKey
Updated at:
Creates an API key.
Try it now
Test
RAM authorization
Request syntax
POST /pop/2026-05-09/api-keys HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | CreateApiKeyInput |
No |
The basic structure of the template. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| apiKey | ApiKey |
The API key. |
|
| requestId |
string |
Id of the request |
7ADFF8D8-D4BA-5F79-AD49-DDABFEA59B6C |
| code |
string |
The error code. |
200 |
| message |
string |
The response message. |
success |
| ipWhitelist |
array |
||
| IPConfig | |||
| ipBlacklist |
array |
||
| IPConfig |
Examples
Success response
JSON format
{
"apiKey": {
"apiKeyID": "34f6a4c4-499f-4bbd-baa0-0e699f53abcd",
"apiKeyMask": "e2b_xxxx****xxxx",
"apiKeyName": "dev",
"apiKeyValue": "e2b_xxxxxx79cd777ef8exxxxxx4ad6f1b567cxxxxxx",
"createdTime": "2023-09-13T08:27:20Z",
"expireTime": "2023-10-13T08:27:20Z",
"ipBlacklist": [
{
"description": "Fixed application egress",
"ipAddress": "203.0.113.10"
}
],
"ipWhitelist": [
{
"description": "Fixed application egress",
"ipAddress": "203.0.113.10"
}
],
"lastUsedTime": "2023-09-14T08:27:20Z",
"resourceGroupID": "rg-acfmwxqyrgwabcd",
"source": "",
"status": "active",
"teamID": "70d1c834-0383-58d8-97ac-5336eb91abcd",
"teamName": "Development team",
"teamPlan": "Pro",
"userID": "12345",
"username": "user1"
},
"requestId": "7ADFF8D8-D4BA-5F79-AD49-DDABFEA59B6C",
"code": "200",
"message": "success",
"ipWhitelist": [
{
"description": "Fixed application egress",
"ipAddress": "203.0.113.10"
}
],
"ipBlacklist": []
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?