Authorizations
An access token must be provided in the Authorization
header using the Bearer
scheme.
Path Parameters
Project ID
Body
The details of the new API key.
The name of the API key. The name must be 1-80 characters long.
1 - 80
"devkey"
The roles to create the API key with. Default is ["ProjectEditor"]
.
A role that can be assigned to an API key.
Possible values: ProjectEditor
, ProjectViewer
, ControlPlaneEditor
, ControlPlaneViewer
, DataPlaneEditor
, or DataPlaneViewer
.
Response
API key created successfully.
The details of an API key, including the secret. Only returned on API key creation.
The details of an API key, without the secret.
The value to use as an API key. New keys will have the format "pckey_<public-label>_<unique-key>"
. The entire string should be used when authenticating.