---
title: "Get a data source"
method: GET
path: "/{workspace}/data_sources/{data_source}"
---

# Get a data source

`GET /{workspace}/data_sources/{data_source}`

## Request

- Base URL: `https://modeanalytics.com/api`
- URL: `https://modeanalytics.com/api/{workspace}/data_sources/{data_source}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/thoughtspot/apis/mode/docs/:workspace/data_sources/:data_source/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a single `DataSource`

## Path parameters

- `workspace` string, required
- `data_source` string, required

## Response `200`

`DataSource` response

- DataSource
  - `id` integer, required
  - `name` string, required
  - `description` string, required
  - `token` string, required
  - `adapter` 'jdbc:athena' | 'jdbc:bigquery' | 'jdbc:databricks' | 'jdbc:dbtmetrics' | 'jdbc:denodo' | 'jdbc:druid' | 'jdbc:hive' | 'jdbc:impala' | 'jdbc:mysql' | 'jdbc:oracle' | 'jdbc:oracleadb' | 'jdbc:postgresql' | 'jdbc:trino' | 'jdbc:presto' | 'jdbc:clickhouse' | 'jdbc:redshift' | 'jdbc:snowflake' | 'jdbc:spark' | 'jdbc:sqlserver' | 'jdbc:treasuredata' | 'jdbc:vertica' | 'jdbc:salesforce' | 'jdbc:dbtsemanticlayer' | 'jdbc:looker' | 'jdbc:arrowflightsql' | 'jdbc:modedatasets', required
  - `created_at` string, required
  - `updated_at` string, required
  - `has_expensive_schema_updates` boolean, required
  - `public` boolean, required
  - `asleep` boolean, required
  - `queryable` boolean, required
  - `soft_deleted` boolean, required
  - `display_name` string, required
  - `account_id` integer
  - `account_username` string
  - `organization_token` string
  - `organization_plan_code` string
  - `database` string, required
  - `host` string, required
  - `port` string, required
  - `ssl` boolean, required
  - `username` string, required
  - `provider` string, required
  - `vendor` string, required
  - `ldap` boolean, required
  - `warehouse` string, required
  - `bridged` boolean, required
  - `adapter_version` string, required
  - `custom_attributes` DataSourceCustomAttributes, required
    - `standard_sql` boolean
  - `ssl_trusted_cert` string
  - `default_access_level` string
  - `_links` DataSourceLinks, required
    - `self` Link, required
      - `href` string, required
      - `templated` boolean
    - `creator` Link, required
      - `href` string, required
      - `templated` boolean
    - `account` Link, required
      - `href` string, required
      - `templated` boolean
    - `permissions` Link
      - `href` string, required
      - `templated` boolean
    - `web` Link, required
      - `href` string, required
      - `templated` boolean
    - `web_home` Link, required
      - `href` string, required
      - `templated` boolean
  - `_embedded` unknown

## Other responses

- `401`: Unauthorized
- `404`: `DataSource` not found

---

[API](https://skmtc.dev/thoughtspot/apis/mode.md) - [All operations](https://skmtc.dev/thoughtspot/apis/mode/llms.txt) - [OpenAPI document](https://skmtc.dev/thoughtspot/apis/mode/revisions/4c694c3fdeb1?raw)
