API keys
Create an API key
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.
POST
Authorizations
An access token must be provided in the Authorization
header using the Bearer
scheme.
Path Parameters
Project ID
Body
application/json
The details of the new API key.
The name of the API key. The name must be 1-80 characters long.
Required string length:
1 - 80
Example:
"devkey"
The roles to create the API key with. Default is ["ProjectEditor"]
.
A role that can be assigned to an API key.
Available options:
ProjectEditor
, ProjectViewer
, ControlPlaneEditor
, ControlPlaneViewer
, DataPlaneEditor
, DataPlaneViewer
Response
201
application/json
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.
Was this page helpful?