---
title: "GET /api/v3/accounts/{account_id}/service-tokens/"
method: GET
path: "/api/v3/accounts/{account_id}/service-tokens/"
tags: ["Service Tokens"]
---

# GET /api/v3/accounts/{account_id}/service-tokens/

`GET /api/v3/accounts/{account_id}/service-tokens/`

## Request

- Base URL: `https://cloud.getdbt.com`
- URL: `https://cloud.getdbt.com/api/v3/accounts/{account_id}/service-tokens/`
- Auth: HTTP bearer

## Path parameters

- `account_id` integer, required

## Query parameters

- `include_related` string

## Response `200`

- ListServiceTokenResponse
  - `status` Status
    - `code` integer
    - `is_success` boolean
    - `user_message` string
    - `developer_message` string
  - `data` ServiceToken[], required
    - `id` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `account_id` integer, required: The account the service token is associated with
    - `uid` string, required: The unique identifier for the service token
    - `name` string, required: The name of the service token
    - `state` integer, required: The liveness state of the service token. A value of 1 means this entity is active and a value of 2 means this entity is deleted
    - `permission_grants` ServiceTokenPermissionGrant[]: The permissions to be assigned to the service token
      - `permission_set` 'account_admin' | 'account_viewer' | 'admin' | 'analyst' | 'analyst_read' | 'billing_admin' | 'cost_insights_admin' | 'cost_insights_viewer' | 'cost_management_admin' | 'cost_management_viewer' | 'database_admin' | 'developer' | 'fusion_admin' | 'git_admin' | 'job_admin' | 'job_creator' | 'job_runner' | 'job_viewer' | 'manage_marketplace_apps' | 'member' | 'metadata_only' | 'notification_manager' | 'owner' | 'project_creator' | 'readonly' | 'scim_only' | 'security_admin' | 'semantic_layer_only' | 'stakeholder' | 'team_admin' | 'webhooks_only', required: An enumeration.
      - `project_id` integer: The project to which the permissions are scoped. If none, then the permissions apply to all projects.
      - `writable_environment_categories` string[]: Environment types the permission set can write to. Allowed values: development, other, staging, production, all. `other` is shown as General in the dbt UI.
    - `last_used` string, date-time: The time the service token was last used
    - `expires_at` string, date-time: When the token stops authenticating. Null means it never expires.
    - `semantic_layer_credentials` object[]: The semantic layer credentials associated with the service token
    - `metadata_only` boolean: Deprecated. Use the metadata_only permission set instead.
    - `webhooks_only` boolean
  - `extra` V3ResponseExtraData, required
    - `filters` V3RequestParams: Base class for all URL request parameters. It is expected that each endpoint extends this class to define its own parameters format
    - `order_by` union
      - string
      - string[]
    - `pagination` V3ResponsePagination, required
      - `count` integer, required
      - `total_count` integer, required
  - `error_code` integer

## Changes

- **2026-11-05** (v3) `2448b375ac2f`: 1 info
  - added the optional property `data/items/expires_at` to the response with the `200` status
- **2026-10-06** (v3) `7d5c1b4c8d8a`: 1 breaking
  - for the `path` request parameter `account_id`, the format changed from no format to `int64`
- **2026-05-18** (v3) `9ef47de9797a`: 1 warning
  - added the new `notification_manager` enum value to the `data/items/permission_grants/items/permission_set` response property for the response status `200`
- **2026-05-08** (v3) `82678d3ae600`: 1 warning
  - added the new `analyst_read` enum value to the `data/items/permission_grants/items/permission_set` response property for the response status `200`
- **2026-05-08** (v3) `7b88a138cf7f`: 1 warning
  - added the new `job_creator` enum value to the `data/items/permission_grants/items/permission_set` response property for the response status `200`

[Operation history](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/changes/api/v3/accounts/:account_id/service-tokens/get.md)

---

[API](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2.md) - [All operations](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/revisions/2448b375ac2f?raw)
