dataConnectors

Generate a picker token

Changed on

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

Request

  • Base URL: https://api.twelvelabs.io/v1.3
  • URL: https://api.twelvelabs.io/v1.3/connections/{connection_id}/picker-token
  • Auth: API key in header x-api-key

Path parameters

connection_idstring required

The unique identifier of the connection.

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.

Changes

    • warning

      deleted the header request parameter x-api-key

    • info

      the endpoint scheme security x-api-key was added to the API

    • info

      api operation id create-connection-picker-token removed and replaced with dataConnectors_create-connection-picker-token