Create a new API key for a project. Developers can use the API key to authenticate requests to Pinecone’s Data Plane and Control Plane APIs.
An access token must be provided in the Authorization header using the Bearer scheme.
Required date-based version header
Project ID
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.
API key created successfully.
The details of an API key, including the secret. Only returned on API key creation.