---
title: "Generate a picker token"
method: POST
path: "/connections/{connection_id}/picker-token"
tags: ["dataConnectors"]
---

# Generate a picker token

`POST /connections/{connection_id}/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.

## Path parameters

- `connection_id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

The picker token has been successfully generated.

- DataConnectorsCreateConnectionPickerTokenResponse200
  - `access_token` string — A short-lived, read-only access token for use with the provider's file picker.
  - `expires_in` integer — The number of seconds until the token expires.
  - `scope` string — A space-delimited list of the scopes granted to the token.
  - `app_id` string — 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_key` string — 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.

## Other responses

- `400` — The request has failed.
- `404` — The specified connection does not exist.
- `409` — The connection is not in an active state.

---

[API](https://skmtc.net/twelvelabs/apis/twelvelabs-api.md) · [All operations](https://skmtc.net/twelvelabs/apis/twelvelabs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twelvelabs/twelvelabs-api/revisions/b6d766c2c340/schema)
