dbt Labs Profiles API
The Profiles API from dbt Labs, for profiles.
The Profiles API from dbt Labs, for profiles.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/dbtlabs:dbtlabs-profiles-api"
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.
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: 3.2.0
info:
title: dbt Cloud API v3 Profiles 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: Profiles
paths:
/api/v3/accounts/{account_id}/projects/{project_id}/profiles/:
get:
operationId: ListProfiles
description: 'List profiles.
Profiles are the set of connection, credentials, and attributes used to connect to a data warehouse. They can be assigned to deployment environments to run jobs.'
parameters:
- in: path
name: account_id
schema:
type: integer
format: int64
required: true
- in: query
name: connection_id
schema:
type: integer
format: int64
description: The ID of the connection for the profile
- in: query
name: include_related
schema:
type: string
description: Comma-separated list of related objects to include in the response.
- in: query
name: key
schema:
type: string
description: Filter profiles whose key contains this value, case-insensitive
- in: query
name: limit
schema:
type: integer
description: The maximum number of items to return.
- in: query
name: offset
schema:
type: integer
description: The number of items to skip before starting to collect the result set.
- in: query
name: profile_ids
schema: {}
description: A list of profile IDs to fetch
- in: path
name: project_id
schema:
type: integer
format: int64
required: true
tags:
- Profiles
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileListResponse'
description: ''
summary: List profiles
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: List Profiles
post:
operationId: CreateProfile
description: 'Create a new profile.
Profiles are the set of connection, credentials, and attributes used to connect to a data warehouse. They can be assigned to deployment environments to run jobs.'
parameters:
- in: path
name: account_id
schema:
type: integer
format: int64
required: true
- in: query
name: limit
schema:
type: integer
description: The maximum number of items to return.
- in: query
name: offset
schema:
type: integer
description: The number of items to skip before starting to collect the result set.
- in: path
name: project_id
schema:
type: integer
format: int64
required: true
tags:
- Profiles
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateProfileBodyRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateProfileBodyRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateProfileBodyRequest'
required: true
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileDetailResponse'
description: ''
summary: Create profile
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Create Profile
/api/v3/accounts/{account_id}/projects/{project_id}/profiles/{id}/:
get:
operationId: RetrieveProfile
description: 'Retrieve a specific profile.
Profiles are the set of connection, credentials, and attributes used to connect to a data warehouse. They can be assigned to deployment environments to run jobs.'
parameters:
- in: path
name: account_id
schema:
type: integer
format: int64
required: true
- in: path
name: id
schema:
type: integer
format: int64
required: true
- in: query
name: include_related
schema:
type: string
description: Comma-separated list of related objects to include in the response.
- in: path
name: project_id
schema:
type: integer
format: int64
required: true
tags:
- Profiles
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileDetailResponse'
description: ''
summary: Retrieve profile
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Retrieve Profile
patch:
operationId: UpdateProfile
description: 'Update an existing profile.
Profiles are the set of connection, credentials, and attributes used to connect to a data warehouse. They can be assigned to deployment environments to run jobs.'
parameters:
- in: path
name: account_id
schema:
type: integer
format: int64
required: true
- in: path
name: id
schema:
type: integer
format: int64
required: true
- in: path
name: project_id
schema:
type: integer
format: int64
required: true
tags:
- Profiles
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateProfileBodyRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/UpdateProfileBodyRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/UpdateProfileBodyRequest'
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileDetailResponse'
description: ''
summary: Update profile
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Update Profile
delete:
operationId: DeleteProfile
description: 'Delete an existing profile. The profile must not be assigned to any deployment environments in order to be deleted.
Profiles are the set of connection, credentials, and attributes used to connect to a data warehouse. They can be assigned to deployment environments to run jobs.'
parameters:
- in: path
name: account_id
schema:
type: integer
format: int64
required: true
- in: path
name: id
schema:
type: integer
format: int64
required: true
- in: path
name: project_id
schema:
type: integer
format: int64
required: true
tags:
- Profiles
security:
- BearerAuthentication: []
responses:
'204':
description: No response body
summary: Delete profile
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Delete Profile
components:
schemas:
ProfileListResponse:
title: ProfileListResponse
type: object
properties:
status:
$ref: '#/components/schemas/Status'
data:
$ref: '#/components/schemas/ProfileList'
extra:
title: Extra
type: object
error_code:
title: Error Code
type: integer
required:
- data
ProfileEnvironmentBinding:
title: ProfileEnvironmentBinding
type: object
properties:
id:
title: Id
description: The ID of the environment binding
format: int64
type: integer
name:
title: Name
description: The name of the environment binding
type: string
type:
title: Type
description: The type of the environment binding
type: string
deployment_type:
title: Deployment Type
description: The deployment type of the environment binding
type: string
required:
- id
- name
- type
- deployment_type
Status:
title: Status
type: object
properties:
code:
title: Code
type: integer
is_success:
title: Is Success
type: boolean
user_message:
title: User Message
type: string
developer_message:
title: Developer Message
default: ''
type: string
CreateProfileBodyRequest:
title: CreateProfileBody
description: 'A profile: a connection, credentials and optional extended attributes.'
type: object
properties:
key:
title: Key
description: Unique name for the profile. The profile key must be unique per project and can only contain letters, numbers, dashes, and underscores. It must begin with a letter and end with a letter or number. It cannot contain consecutive dashes or underscores.
type: string
connection_id:
title: Connection Id
description: The ID of the connection
format: int64
type: integer
credentials_id:
title: Credentials Id
description: The ID of the credentials
format: int64
type: integer
extended_attributes_id:
title: Extended Attributes Id
description: The ID of the extended attributes
format: int64
type: integer
account_id:
title: Account Id
description: Read-only, ignored.
format: int64
type: integer
project_id:
title: Project Id
description: Read-only, ignored.
format: int64
type: integer
required:
- key
- connection_id
- credentials_id
additionalProperties: false
ProfileDetailResponse:
title: ProfileDetailResponse
type: object
properties:
status:
$ref: '#/components/schemas/Status'
data:
$ref: '#/components/schemas/ProfileDetail'
extra:
title: Extra
type: object
error_code:
title: Error Code
type: integer
required:
- data
ProfileList:
title: ProfileList
type: object
properties:
id:
title: Id
description: The ID of the profile
format: int64
type: integer
account_id:
title: Account Id
description: The ID of the account
format: int64
type: integer
project_id:
title: Project Id
description: The ID of the project
format: int64
type: integer
key:
title: Key
description: Unique name for the profile. The profile key must be unique per project and can only contain letters, numbers, dashes, and underscores. It must begin with a letter and end with a letter or number. It cannot contain consecutive dashes or underscores.
type: string
connection_id:
title: Connection Id
description: The ID of the connection. Null for profiles that have not been assigned a connection.
format: int64
type: integer
credentials_id:
title: Credentials Id
description: The ID of the credentials. Null for profiles that have not been assigned credentials.
format: int64
type: integer
extended_attributes_id:
title: Extended Attributes Id
description: The ID of the extended attributes
format: int64
type: integer
primary_bindings:
title: Primary Bindings
description: The primary bindings for the profile
type: array
items:
$ref: '#/components/schemas/ProfileEnvironmentBinding'
catalog_bindings:
title: Catalog Bindings
description: The catalog bindings for the profile (deprecated)
default: []
type: array
items:
$ref: '#/components/schemas/ProfileEnvironmentBinding'
required:
- id
- account_id
- project_id
- key
- primary_bindings
ProfileDetail:
title: ProfileDetail
type: object
properties:
id:
title: Id
description: The ID of the profile
format: int64
type: integer
account_id:
title: Account Id
description: The ID of the account
format: int64
type: integer
project_id:
title: Project Id
description: The ID of the project
format: int64
type: integer
key:
title: Key
description: Unique name for the profile. The profile key must be unique per project and can only contain letters, numbers, dashes, and underscores. It must begin with a letter and end with a letter or number. It cannot contain consecutive dashes or underscores.
type: string
connection_id:
title: Connection Id
description: The ID of the connection. Null for profiles that have not been assigned a connection.
format: int64
type: integer
credentials_id:
title: Credentials Id
description: The ID of the credentials. Null for profiles that have not been assigned credentials.
format: int64
type: integer
extended_attributes_id:
title: Extended Attributes Id
description: The ID of the extended attributes
format: int64
type: integer
primary_bindings:
title: Primary Bindings
description: The primary bindings for the profile
type: array
items:
$ref: '#/components/schemas/ProfileEnvironmentBinding'
catalog_bindings:
title: Catalog Bindings
description: The catalog bindings for the profile (deprecated)
default: []
type: array
items:
$ref: '#/components/schemas/ProfileEnvironmentBinding'
required:
- id
- account_id
- project_id
- key
- primary_bindings
UpdateProfileBodyRequest:
title: UpdateProfileBody
description: New values for a profile.
type: object
properties:
key:
title: Key
description: Unique name for the profile. The profile key must be unique per project and can only contain letters, numbers, dashes, and underscores. It must begin with a letter and end with a letter or number. It cannot contain consecutive dashes or underscores.
type: string
connection_id:
title: Connection Id
description: The ID of the connection. Null is only accepted for a profile that has no connection; a profile's connection cannot be removed once set.
format: int64
type: integer
credentials_id:
title: Credentials Id
description: The ID of the credentials. Null is only accepted for a profile that has no credentials; credentials cannot be removed once set.
format: int64
type: integer
extended_attributes_id:
title: Extended Attributes Id
description: The ID of the extended attributes. Set to null to unset.
format: int64
type: integer
id:
title: Id
description: Read-only, ignored.
format: int64
type: integer
account_id:
title: Account Id
description: Read-only, ignored.
format: int64
type: integer
project_id:
title: Project Id
description: Read-only, ignored.
format: int64
type: integer
additionalProperties: false
securitySchemes:
BearerAuthentication:
type: http
scheme: bearer
bearerFormat: Bearer