Skip to main content
GET
/
v1
/
knowledge-base
/
knowledge-bases
/
{kb_id}
/
sources
/
{source_id}
/
drive
/
picker-config
Drive Picker Config
curl --request GET \
  --url https://api-sandbox.featherhq.com/v1/knowledge-base/knowledge-bases/{kb_id}/sources/{source_id}/drive/picker-config \
  --header 'x-api-key: <api-key>'
{
  "access_token": "<string>",
  "app_id": "<string>",
  "api_key": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

kb_id
string<uuid>
required
source_id
string<uuid>
required

Response

Successful Response

Short-lived config the SPA needs to open the Google Picker.

The access_token is a freshly-leased OAuth token (never persisted, never logged); app_id (GCP project number) and api_key (browser key) come from server config so they stay out of the SPA bundle. Served with Cache-Control: no-store.

access_token
string
required
app_id
string
required
api_key
string
required
expires_at
string<date-time> | null