This feature is available on the Enterprise plan.
Create a service account
- Go to Settings > Access > Service accounts.
- Enter a Name for the service account.
- Choose an Organization role for the service account. The role determines the service account’s permissions within Pinecone.
- Click Create.
- Copy and save the Client secret in a secure place for future use. You’ll need the client secret to retrieve an access token.
- Click Copy and Continue.
Retrieve an access token
To access the Admin API, you must authenticate with an access token. To get one, use the client secret you received when you created the service account. This example requests an access token for a service account from thehttps://login.pinecone.io/oauth/token endpoint:
curl
access_token field, which you can use to authenticate with the Admin API.
Change a service account’s role
- Go to Settings > Access > Service accounts.
- In the row of the service account you want to update, click ellipsis (…) menu > Edit role.
- Select an Organization role for the service account.
- Click Save.
Update service account name
- Go to Settings > Access > Service accounts.
- In the row of the service account you want to update, click ellipsis (…) menu > Rename.
- Enter a new Name.
- Click Save.
Rotate a service account’s secret
- Go to Settings > Access > Service accounts.
- In the row of the service account you want to update, click ellipsis (…) menu > Rotate secret.
- Enter the service account name to confirm.
- Click Rotate secret.
- Copy and save the Client secret in a secure place for future use.
- Click Copy and Continue.
Delete a service account
Deleting a service account removes it from all projects and disrupts any applications that use it to access Pinecone.- Go to Settings > Access > Service accounts.
- In the row of the service account you want to update, click ellipsis (…) menu > Delete.
- Enter the service account name to confirm.
- Click Delete service account.