Creates an API key for a project. Save its secret value; it cannot be retrieved later.
The ID of the project the key will access.
The key name and access roles. Choose roles that match the operations the application needs.
The key details in key and the secret in value.
Errors.PineconeArgumentError when the project ID or key name is empty.
Deletes an API key, revoking its access.
The ID of the API key to delete.
Resolves when the deletion request succeeds.
Errors.PineconeArgumentError when apiKeyId is empty.
Retrieves an API key by ID. The secret value is not returned.
The API key ID returned when it was created or listed.
The API key details and assigned roles, without the secret value.
Errors.PineconeArgumentError when apiKeyId is empty.
Lists the API keys in a project.
The project whose API keys to list.
Results in data.
Errors.PineconeArgumentError when projectId is empty.
Updates an API key. Omitted fields remain unchanged.
The ID of the API key to update.
Fields to change. Providing roles replaces the existing roles.
The updated API key details.
Errors.PineconeArgumentError when apiKeyId is empty.
API keys authorize a Pinecone client to access a project. Access this resource through AdminClient.apiKeys; do not construct it directly. Use AdminClient.serviceAccounts for organization administration credentials.
Example