v1
latestOpenAPI 3.0.22026-08-062794201004.1 KBApi Keys
Create API Key
Creates a new API key under an organization.
Organization Owners can create Organization and Project scoped API keys.
Project Owner and Project Creator can create project scoped keys.
To learn more, see Organization, Project, and Database Access Overview.
post/v4/organizations/{organizationId}/apikeys
Request body
Example request
{
"name": "Production",
"description": "API key to manage production Capella Cluster.",
"allowedCIDRs": [
"0.0.0.0/0"
],
"organizationRoles": [
"organizationMember"
],
"resources": [
{
"id": "ffffffff-aaaa-1414-eeee-000000000000",
"roles": [
"projectDataReaderWriter",
"projectManager"
]
}
]
}Response
Successfully created an API key under an organization.
Example response
{
"id": "IS9DrRsw4KWFS72Zhbj4xmhllHvPcdCL",
"token": "QktxVUtFU1dKV1FlMmxwbzJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjekJVYWZPY3lqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhAenRib3IhVQ=="
}