Skip to main content
POST
Exchange a Pinecone API key for a session token

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.

Body

application/json

The key to exchange. May be omitted where the deployment supplies its own.

api_key
string

Pinecone API key. Optional — when absent, the server falls back to its configured key (managed) or validates the seeded credential (BYOC).

Response

Session token + identity

The session token and the identity it authenticates.

token
string
required

Session JWT. Send it as Authorization: Bearer <token> on every other call.

principal
string
required

Who the token authenticates — a user email, or the id of the API key it was exchanged for.

project_id
string
required

The Pinecone project the token is scoped to.

project_name
string
required

Human-readable label for the project the token is scoped to.