POST
/
oauth
/
token
curl "https://login.pinecone.io/oauth/token" \ # Note: Base URL is login.pinecone.io
	-H "Content-Type: application/json" \
	-H "X-Pinecone-Api-Version: 2025-04" \
	-d '{
		"grant_type": "client_credentials",
		"client_id": "YOUR_CLIENT_ID",
		"client_secret": "YOUR_CLIENT_SECRET",
		"audience": "https://api.pinecone.io/"
	}'
{
    "access_token":"YOUR_ACCESS_TOKEN",
    "expires_in":86400,
    "token_type":"Bearer"
}
curl "https://login.pinecone.io/oauth/token" \ # Note: Base URL is login.pinecone.io
	-H "Content-Type: application/json" \
	-H "X-Pinecone-Api-Version: 2025-04" \
	-d '{
		"grant_type": "client_credentials",
		"client_id": "YOUR_CLIENT_ID",
		"client_secret": "YOUR_CLIENT_SECRET",
		"audience": "https://api.pinecone.io/"
	}'
{
    "access_token":"YOUR_ACCESS_TOKEN",
    "expires_in":86400,
    "token_type":"Bearer"
}

Body

A request to exchange client credentials for an access token.

A request to obtain an access token.

client_id
string
required

The service account's client ID.

client_secret
string
required

The service account's client secret.

grant_type
enum<string>
required

The type of grant to use.

Available options:
client_credentials
audience
enum<string>
required

The audience for the token.

Available options:
https://api.pinecone.io/

Response

200
application/json

A response that contains the access token.

access_token
string
required

The access token.

token_type
enum<string>
required

The type of token.

Available options:
Bearer
expires_in
integer
required

The number of seconds until the token expires.