OAuth
Create an access token
Obtain an access token for a service account using the OAuth2 client credentials flow. An access token is needed to authorize requests to the Pinecone Admin API. The host domain for OAuth endpoints is login.pinecone.io.
post/oauth/token
Request
- Base URLhttps://login.pinecone.io
- Authnone declared. Required headers: X-Pinecone-Api-Version
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Request body
Example request
{
"audience": "https://api.pinecone.io/",
"client_id": "I1r8m4i6jX9JTFYk0t3q85HWzciEgcA5",
"client_secret": "EriX...j2ci",
"grant_type": "client_credentials"
}Response
A response that contains the access token.
Example response
{
"access_token": "eyJz93a...k4laUWw",
"expires_in": 1800,
"token_type": "Bearer"
}Changes
No recorded changes to this operation across all 1 revision of this API.