v3

latestOpenAPI 3.1.02026-07-3197486526.1 KB
dataConnectors

Generate a picker token

This method generates a short-lived, read-only access token that you use with the provider's file picker, such as the Google Drive Picker. The platform never returns the refresh token of the connection.

post/connections/{connection_id}/picker-token

Path parameters

connection_idstring required

The unique identifier of the connection.

Headers

x-api-keystring required

Your API key.

<Note title="Note"> You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-keys" target="_blank">API Keys</a> page. </Note>

Response

The picker token has been successfully generated.

access_tokenstring

A short-lived, read-only access token for use with the provider's file picker.

expires_ininteger

The number of seconds until the token expires.

scopestring

A space-delimited list of the scopes granted to the token.

app_idstring

The Google Cloud project number, used with the Google Picker's setAppId. May be absent if the provider does not require this value for its picker.

developer_keystring

A browser API key, used with the Google Picker's setDeveloperKey. May be absent if the provider does not require this value for its picker.