---
title: "Retrieve a connection"
method: GET
path: "/connections/{connection_id}"
tags: ["dataConnectors"]
---

# Retrieve a connection

`GET /connections/{connection_id}`

This method retrieves details about the specified connection.

## Path parameters

- `connection_id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

The connection has been successfully retrieved.

- Connection — A connection to an external data provider. The platform never returns the refresh or access tokens of the connection.
  - `_id` string — The unique identifier of the connection.
  - `provider` 'google_drive' — The data connector provider.
  - `status` 'active' | 'expired' | 'revoked' — The status of the connection. See [The connection object](/v1.3/api-reference/data-connectors/the-connection-object#connection-statuses) for the possible values.
  - `custom_id` string — The label you supplied when you [authorized the connection](/v1.3/api-reference/data-connectors/authorize-a-connection). The platform does not interpret this value, and it does not need to be unique. Multiple connections can share the same `custom_id` value.
  - `account` ConnectionAccount — Information about the connected provider account.
    - `external_id` string — The identifier of the account at the provider. It does not change.
    - `display_name` string — A human-readable label for the account, such as an email address.
  - `scopes` string[] — The scopes granted to the connection.
  - `connected_at` string, date-time — The date and time, in the RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when the connection was established.
  - `last_used_at` string, date-time — The date and time, in the RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when the connection was last used.

## Other responses

- `400` — The request has failed.
- `404` — The specified connection does not exist.

---

[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/fd9d80e384a8/schema)
