v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v1
integrations

Issue a short-lived access token for a provider-hosted picker

Return the raw access token for an OAuth2 credential so the frontend can initialize a provider-hosted picker (e.g. Google Drive Picker).

GET /{provider}/credentials/{cred_id} deliberately strips secrets (see CredentialsMetaResponse + TestGetCredentialReturnsMetaOnly in router_test.py). That hardening broke the Drive picker, which needs the raw access token to call google.picker.Builder.setOAuthToken(...). This endpoint carves a narrow, explicit hole: the caller must own the credential, it must be OAuth2, and the endpoint returns only the access token + its expiry — nothing else about the credential. SDK-default credentials are excluded for the same reason as get_credential.

post/api/integrations/{provider}/credentials/{cred_id}/picker-token

Path parameters

providerstring required

Provider name for integrations. Can be any string value, including custom provider names.

cred_idstring required

Response

Successful Response

access_tokenstring required

OAuth access token suitable for the picker SDK call.

access_token_expires_atinteger nullable

Unix timestamp at which the access token expires, if known.