dbt Labs Adapter Schema API

The Adapter Schema API from dbt Labs, for adapter schema.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/v3/adapter-schema/ Retrieve adapter schema #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dbtlabs:dbtlabs-adapter-schema-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dbtlabs-adapter-schema-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dbt Cloud API v3 Adapter Schema API
  version: 3.0.0
  description: '# How to use this API


    The dbt Cloud API v3 contains endpoints for programmatic administration of your dbt Cloud account.

    With it, you can replicate resources across projects, accounts, and environments, or standardize project

    creation for business teams. For endpoints related to jobs and runs, refer to the

    Discovery API or dbt Cloud API v2.


    The API docs are generated from an openapi spec defined in the

    dbt-cloud-openapi-spec

    repository. If you find issues in these docs or have questions about using the dbt Cloud

    API, please open an issue in the dbt-cloud-openapi-spec repo or contact support@getdbt.com.


    ## Authentication


    To authenticate an application with the dbt Cloud API, navigate to the

    Account Settings page and go to Personal Tokens from the left sidebar. Create one if you don''t have one already.

    If you cannot access this page, confirm that your dbt Cloud account has access to the API,

    and that you are using the hosted version of dbt Cloud. If dbt Cloud is running inside of a VPC

    in an Enterprise account, contact your account manager for help finding your account-scoped Personal Access Token.


    Once you''ve found your Personal Access Token (PAT) for your account, use it in the Authorization header of requests to the dbt Cloud API.

    Be sure to include the `Token` prefix in the Authorization header, or the request will fail with a

    "401 Unauthorized" error.


    *Note: `Bearer` can be used in place of `Token` in the Authorization header. Both syntaxes are equivalent.*


    **Headers**

    ```

    Accept: application/json

    Authorization: Token

    ```


    ## Pagination


    All top-level API resources support bulk fetches using the "list" or `GET` API methods. These API methods accept `limit` and `offset` query parameters that you can use together to paginate results and return a subset of those results.


    * Offset: Specifies how many records to skip. Can be an integer 0 and higher.

    * Limit: Specifies the maximum records you want to retrieve in a single request. Can be an integer up to 100. This limit makes responses easier to handle for servers and people.


    Endpoints that support pagination include some useful extra information about the pagination state. For example:


    ```json

    {

    data: [...],

    extra: {

    // How the results were filtered

    filters: {...},

    // The order of the results

    order_by: "id",

    // The pagination state

    pagination: {

    // The number of records returned in this response

    count: 5,

    // The total number of available records

    total_count: 10,

    }


    }

    }

    ````


    ## Example request


    The following example uses the list projects endpoint to list the projects that your token is authorized to access.

    This request skips the first 10 projects and lists the next 10 projects.

    Be sure to replace `` in the Authorization header with your actual API token and `` with your actual account ID.


    ```bash

    curl --request GET \

    --url ''https://cloud.getdbt.com/api/v3/accounts//projects/?limit=10&offset=5'' \

    --header ''Content-Type: application/json'' \

    --header ''Authorization: Token ''

    ```'
  termsOfService: https://www.getdbt.com/terms-of-service
  contact:
    email: support@getdbt.com
servers:
- url: https://cloud.getdbt.com/
  description: Production (US)
- url: https://{account_prefix}.us1.dbt.com/
  description: Production (US)
  variables:
    account_prefix:
      default: ab123
      description: Your unique account prefix. Can be found on your account settings page.
- url: https://emea.dbt.com/
  description: Production (Europe)
- url: https://au.dbt.com/
  description: Production (AU)
tags:
- name: Adapter Schema
paths:
  /api/v3/adapter-schema/:
    get:
      operationId: RetrieveAdapterSchema
      description: '"

        Fetch the schema for a given adapter. The schema will include details on available fields for connections and credentials.


        Notes:

        - salesforce_v0 is currently in beta and not available to all users.'
      parameters:
      - in: query
        name: adapter_version
        schema:
          type: string
          enum:
          - apache_spark_v0
          - athena_v0
          - bigquery_v0
          - bigquery_v1
          - clickhouse_v0
          - databricks_spark_v0
          - databricks_v0
          - fabric_v0
          - postgres_v0
          - redshift_v0
          - salesforce_v0
          - snowflake_v0
          - synapse_v0
          - teradata_v0
          - trino_v0
        description: The adapter to fetch the schema for
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      tags:
      - Adapter Schema
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdapterSchemaResponseEnveloped'
          description: ''
      summary: Retrieve adapter schema
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Retrieve Adapter Schema
components:
  schemas:
    ConnectionTypeEnum:
      enum:
      - postgres
      - redshift
      - snowflake
      - bigquery
      - adapter
      type: string
      description: '* `postgres` - postgres

        * `redshift` - redshift

        * `snowflake` - snowflake

        * `bigquery` - bigquery

        * `adapter` - adapter'
    ResponseStatus:
      type: object
      properties:
        code:
          type: integer
          default: 200
          description: HTTP status code
        is_success:
          type: boolean
          description: Whether the request was successful or not
        user_message:
          type: string
          description: End-user friendly success or error message
        developer_message:
          type: string
          description: Developer friendly success or error message
      required:
      - developer_message
      - is_success
      - user_message
    Adapter:
      type: object
      properties:
        metadata:
          allOf:
          - $ref: '#/components/schemas/AdapterMetadata'
          description: High level information about the adapter
        connection:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of connection-level fields for this adapter
        credential:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of credential-level fields for this adapter
        platform_metadata_credentials:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of platform metadata credential-level fields for this adapter
        analytics_credentials:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of analytics credentials fields for this adapter
        semantic_layer_credentials:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of semantic layer credential-level fields for this adapter
        cost_insights_config:
          allOf:
          - $ref: '#/components/schemas/Schema'
          description: The set of cost insights configuration fields for this adapter
      required:
      - metadata
    AdapterSchemaResponseEnveloped:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AdapterSchemaResponse'
        status:
          $ref: '#/components/schemas/ResponseStatus'
      required:
      - data
      - status
    AdapterSchemaResponse:
      type: object
      properties:
        adapter:
          $ref: '#/components/schemas/Adapter'
    AdapterMetadata:
      type: object
      properties:
        title:
          type: string
          description: Brief human-facing name for the adapter
        docs_link:
          type: string
          description: Link to the dbt core docs for this adapter
        image_link:
          type: string
        private_link:
          allOf:
          - $ref: '#/components/schemas/AdapterPrivateLinkProperties'
          description: Private link properties of the adapter; None means PrivateLink is unsupported
      required:
      - docs_link
      - image_link
      - title
    Schema:
      type: object
      properties:
        field_order:
          type: array
          items:
            type: string
          description: The field order for display in the UI
        field_groups:
          type: array
          items:
            $ref: '#/components/schemas/FieldGroup'
          description: Specification of how certain fields should be grouped
    AdapterPrivateLinkProperties:
      type: object
      properties:
        endpoint_type:
          allOf:
          - $ref: '#/components/schemas/ConnectionTypeEnum'
          description: 'The type of private link endpoint eligible. Typically ["adapter"]


            * `postgres` - postgres

            * `redshift` - redshift

            * `snowflake` - snowflake

            * `bigquery` - bigquery

            * `adapter` - adapter'
        hostname_field:
          type: string
          default: host
          description: The field in the connection schema that contains the hostname
        strip_suffix:
          type: string
          description: Suffix to be stripped from the private link endpoint to obtain the hostname for the connection
      required:
      - endpoint_type
      - strip_suffix
    FieldGroup:
      type: object
      properties:
        name:
          type: string
        members:
          type: array
          items:
            type: string
      required:
      - members
      - name
  securitySchemes:
    BearerAuthentication:
      type: http
      scheme: bearer
      bearerFormat: Bearer