Credentials API
Manage encrypted API credentials for external service connections.List connected services
GET /api/credentials
Returns the list of credential keys that have stored credentials (no values).
Save credentials
POST /api/credentials
Store encrypted credentials for a service.
Delete credentials
DELETE /api/credentials
Remove stored credentials for a service.
Test credentials
POST /api/credentials/test
Test credentials by making a lightweight API call to the service.
OAuth redirect
GET /api/auth/{provider}/redirect
Initiates the OAuth authorization flow. Redirects the user to the provider’s authorization page.
credKey: The credential store key (e.g.,github)scopes: Space-separated OAuth scopes
OAuth callback
GET /api/auth/{provider}/callback
Receives the OAuth authorization code, exchanges it for tokens, and stores them.
/settings?oauth=success or /settings?oauth=error.
Import from gws CLI (Google only)
POST /api/auth/gws-import
Import Google OAuth tokens from the
@googleworkspace/cli local config.