- SDK Credentials — OAuth 2.0 client credentials for direct API access via the SDK. Best for production integrations.
- API Keys — Simple Bearer tokens for the console proxy. Include features like rerank controls. See the API Keys guide for details.
Create SDK credentials
- Visit Console → SDK Credentials.
- Click New client and provide a descriptive name per application or environment.
- Download the generated Client ID and Client Secret. Store the secret in a secure vault—never ship it to browsers or mobile apps.
Exchange credentials for an access token
Use the client credentials to request a short-lived access token.Authenticate SDK requests
Obtain an access token using the client credentials grant, then pass it to the SDK:JavaScript / TypeScript
PHP / Laravel
- JavaScript:
sdk.setAccessToken(newToken) - PHP:
$sdk->setAccessToken($newToken)
Protect secrets in production
- Scope clients per environment (staging, production) to limit blast radius.
- Rotate credentials regularly using your secrets manager.
- Audit token usage through the console activity logs.

