Optionalconfig: AdminClientConfiguration
Optional AdminClientConfiguration. When omitted, clientId and
clientSecret are read from the PINECONE_CLIENT_ID and PINECONE_CLIENT_SECRET environment
variables.
Errors.PineconeConfigurationError when clientId or clientSecret cannot be resolved.
ReadonlyapiOperations for managing API keys within a project.
ReadonlyinvitesOperations for managing invitations to join the organization.
ReadonlyorganizationsOperations for managing organizations.
ReadonlyprojectsOperations for managing projects.
ReadonlyroleOperations for managing role bindings.
ReadonlyserviceOperations for managing service accounts within the organization.
ReadonlyusersOperations for managing users within the organization.
The
AdminClientclass is the entrypoint for the Pinecone Admin API, which manages an organization and its resources: projects, API keys, users and invites, service accounts, and role bindings.Authentication
Unlike the Pinecone client (which authenticates with a project API key), the Admin API authenticates with a service account using the OAuth2 client-credentials flow. You must supply a
clientIdandclientSecret, either directly or via thePINECONE_CLIENT_ID/PINECONE_CLIENT_SECRETenvironment variables. Create a service account and its credentials in the Pinecone console under Organization Settings → Service Accounts.The bearer token is fetched lazily on the first admin request and cached for the lifetime of the
AdminClient, mirroring the Python and Go SDKs. It is not proactively refreshed, so a client kept alive past the token's server-side expiry (~30 minutes) should be recreated; admin operations are expected to run within a time-bounded session.Using environment variables
Using a configuration object
Bridging to the data plane
A common workflow uses
AdminClientto create a project and API key, then passes that key to the Pinecone client for data operations: