dbt Labs Accounts API
The Accounts API from dbt Labs, for accounts.
The Accounts API from dbt Labs, for accounts.
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-accounts-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 Accounts 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: Accounts
paths:
/api/v3/accounts/:
get:
operationId: ListAccounts
description: List the Accounts that your API Token is authorized to access.
parameters:
- in: query
name: include_related
schema:
type: string
description: Comma-separated list of related objects to include in the response.
tags:
- Accounts
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AccountListEnveloped'
description: ''
summary: List accounts
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: List Accounts
components:
schemas:
AccountResponse:
type: object
properties:
id:
type: integer
format: int64
readOnly: true
name:
type: string
description: The name of the account
plan:
allOf:
- $ref: '#/components/schemas/PlanEnum'
readOnly: true
description: 'The active plan type for the account
* `bc_2027` - BC_2027
* `cancelled` - CANCELLED
* `cancelled_2022` - CANCELLED_2022
* `cancelled_2025` - CANCELLED_2025
* `developer` - DEVELOPER
* `developer_2022` - DEVELOPER_2022
* `enterprise` - ENTERPRISE
* `enterprise_2025` - ENTERPRISE_2025
* `enterprise_plus_2025` - ENTERPRISE_PLUS_2025
* `free` - FREE
* `starter_2025` - STARTER_2025
* `team` - TEAM
* `team_2022` - TEAM_2022
* `team_annual` - TEAM_ANNUAL
* `trial` - TRIAL
* `trial_2022` - TRIAL_2022
* `trial_2025` - TRIAL_2025
* `usage_2026` - USAGE_2026
* `usage_managed_2026` - USAGE_MANAGED_2026'
run_slots:
type: integer
readOnly: true
default: 1
description: The total number of run slots the account may use
developer_seats:
type: integer
readOnly: true
default: 0
description: The total number of developer seats the account may use
it_seats:
type: integer
readOnly: true
default: 0
description: The total number of IT seats the account may use
explorer_seats:
type: integer
readOnly: true
default: 0
description: The total number of explorer seats the account may use
analyst_seats:
type: integer
readOnly: true
default: 0
description: The total number of pre-purchased analyst seats for the account
read_only_seats:
type: integer
readOnly: true
default: 0
description: The total number of Read Only seats the account may use
locked:
type: boolean
readOnly: true
default: false
description: Whether the account is currently locked
lock_reason:
type: string
readOnly: true
description: Why the account is locked
lock_cause:
allOf:
- $ref: '#/components/schemas/LockCauseEnum'
readOnly: true
description: 'Why the account is locked
* `trial_expired` - TRIAL_EXPIRED
* `cancelled` - CANCELLED
* `unpaid` - UNPAID
* `provisioned_team_annual` - PROVISIONED_TEAM_ANNUAL
* `other` - OTHER
* `migrated` - MIGRATED
* `workshop` - WORKSHOP
* `frozen` - FROZEN'
unlocked_at:
type: string
format: date-time
readOnly: true
pending_cancel:
type: boolean
readOnly: true
default: false
description: Whether the account is pending cancellation
billing_email_address:
type: string
readOnly: true
description: The email address to send billing notifications to
pod_memory_request_mebibytes:
type: integer
readOnly: true
default: 600
description: The amount of memory (in MiB) to request for run pods
develop_pod_memory_request_mebibytes:
type: integer
readOnly: true
default: 0
description: The amount of memory (in MiB) to request for develop pods
run_duration_limit_seconds:
type: integer
readOnly: true
default: 86400
description: The maximum duration that a run may is permitted to execute for before it is terminated
queue_limit:
type: integer
readOnly: true
default: 50
description: The maximum number of runs that may be queued at once
enterprise_login_slug:
type: string
readOnly: true
description: The enterprise login URL, if available
business_critical:
type: boolean
readOnly: true
default: false
description: Whether this account is on a Business Critical plan
default_license_type:
allOf:
- $ref: '#/components/schemas/DefaultLicenseTypeEnum'
default: read_only
description: 'The license type assigned to new users provisioned onto this account when no other license type is determined (e.g. no SSO group mapping, SCIM payload, or existing invite). Analyst and IT can only be set when the account''s plan includes that license type.
* `developer` - DEVELOPER
* `read_only` - READ_ONLY
* `analyst` - ANALYST
* `it` - IT'
starter_repo_url:
type: string
readOnly: true
description: If defined, the URL used to initialize new dbt projects
git_auth_level:
type: string
readOnly: true
identifier:
type: string
readOnly: true
description: A globally unique (cross-cell) identifier
trial_end_date:
type: string
format: date-time
readOnly: true
static_subdomain:
type: string
readOnly: true
vanity_subdomain:
type: string
readOnly: true
run_locked_until:
type: string
format: date-time
readOnly: true
state:
example: 1
type: integer
default: 1
description: A value of 1 means this entity is active and a value of 2 means this entity is deleted
docs_job_id:
type: integer
format: int64
description: (Deprecated)
freshness_job_id:
type: integer
format: int64
description: (Deprecated)
copilot_locked_until:
type: string
format: date-time
readOnly: true
description: When copilot will be enabled again for the account
agent_credit_locked:
type: boolean
readOnly: true
default: false
description: True when the account's agent-credit balance is depleted and dbt-owned-key agent calls should be refused. Cleared on successful top-up.
account_migration_events:
type: array
items: {}
readOnly: true
description: (Deprecated)
groups:
type: array
items:
$ref: '#/components/schemas/Group'
readOnly: true
default: []
description: The user groups in the account
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
required:
- account_migration_events
- agent_credit_locked
- analyst_seats
- billing_email_address
- business_critical
- copilot_locked_until
- created_at
- develop_pod_memory_request_mebibytes
- developer_seats
- enterprise_login_slug
- explorer_seats
- git_auth_level
- groups
- id
- identifier
- it_seats
- lock_cause
- lock_reason
- locked
- pending_cancel
- plan
- pod_memory_request_mebibytes
- queue_limit
- read_only_seats
- run_duration_limit_seconds
- run_locked_until
- run_slots
- starter_repo_url
- static_subdomain
- trial_end_date
- unlocked_at
- updated_at
- vanity_subdomain
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
AccountListEnveloped:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AccountResponse'
extra:
$ref: '#/components/schemas/Extra'
status:
$ref: '#/components/schemas/ResponseStatus'
required:
- data
- extra
- status
LockCauseEnum:
enum:
- trial_expired
- cancelled
- unpaid
- provisioned_team_annual
- other
- migrated
- workshop
- frozen
type: string
description: '* `trial_expired` - TRIAL_EXPIRED
* `cancelled` - CANCELLED
* `unpaid` - UNPAID
* `provisioned_team_annual` - PROVISIONED_TEAM_ANNUAL
* `other` - OTHER
* `migrated` - MIGRATED
* `workshop` - WORKSHOP
* `frozen` - FROZEN'
DefaultLicenseTypeEnum:
enum:
- developer
- read_only
- analyst
- it
type: string
description: '* `developer` - DEVELOPER
* `read_only` - READ_ONLY
* `analyst` - ANALYST
* `it` - IT'
PlanEnum:
enum:
- bc_2027
- cancelled
- cancelled_2022
- cancelled_2025
- developer
- developer_2022
- enterprise
- enterprise_2025
- enterprise_plus_2025
- free
- starter_2025
- team
- team_2022
- team_annual
- trial
- trial_2022
- trial_2025
- usage_2026
- usage_managed_2026
type: string
description: '* `bc_2027` - BC_2027
* `cancelled` - CANCELLED
* `cancelled_2022` - CANCELLED_2022
* `cancelled_2025` - CANCELLED_2025
* `developer` - DEVELOPER
* `developer_2022` - DEVELOPER_2022
* `enterprise` - ENTERPRISE
* `enterprise_2025` - ENTERPRISE_2025
* `enterprise_plus_2025` - ENTERPRISE_PLUS_2025
* `free` - FREE
* `starter_2025` - STARTER_2025
* `team` - TEAM
* `team_2022` - TEAM_2022
* `team_annual` - TEAM_ANNUAL
* `trial` - TRIAL
* `trial_2022` - TRIAL_2022
* `trial_2025` - TRIAL_2025
* `usage_2026` - USAGE_2026
* `usage_managed_2026` - USAGE_MANAGED_2026'
CustomPagination:
type: object
properties:
count:
type: integer
description: Number of items in the current page
total_count:
type: integer
description: Total number of items
required:
- count
- total_count
Group:
type: object
properties:
account_id:
type: integer
format: int64
name:
type: string
state:
example: 1
type: integer
description: A value of 1 means this entity is active and a value of 2 means this entity is deleted
assign_by_default:
type: boolean
sso_mapping_groups:
type: array
items:
type: string
required:
- account_id
- assign_by_default
- name
- state
Extra:
type: object
properties:
filters:
type: object
additionalProperties: {}
description: Filters applied to the request
order_by:
type: string
description: Ordering applied to the request
pagination:
$ref: '#/components/schemas/CustomPagination'
required:
- filters
- order_by
- pagination
securitySchemes:
BearerAuthentication:
type: http
scheme: bearer
bearerFormat: Bearer