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/admin/projects/{project_id}/api-keys
Path parameters
project_idstring uuid required
Project ID
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Request body
Example request
{
"name": "devkey",
"roles": [
"ProjectEditor"
]
}Response
API key created successfully.
Example response
{
"key": {
"roles": [
"ProjectEditor"
]
}
}