---
title: "Get Workspace Service Accounts"
method: GET
path: "/v1/service-accounts"
tags: ["workspace"]
---

# Get Workspace Service Accounts

`GET /v1/service-accounts`

List all service accounts in the workspace

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- WorkspaceServiceAccountListResponseModel
  - `service-accounts` WorkspaceServiceAccountResponseModel[], required
    - `service_account_user_id` string, required
    - `name` string, required
    - `created_at_unix` integer, nullable
    - `api-keys` WorkspaceApiKeyResponseModel[], required
      - `name` string, required
      - `hint` string, required
      - `key_id` string, required
      - `service_account_user_id` string, required
      - `created_at_unix` integer, nullable
      - `is_disabled` boolean
      - `permissions` PermissionType[], nullable
      - `disable_reason` 'trial_ended' | 'subscription_downgrade' | 'exposed_publicly' | 'self_disabled'
      - `character_limit` integer, nullable — Maximum number of credits allowed in the current billing period.
      - `character_count` integer, nullable — Credits already used in the current billing period.
      - `hashed_xi_api_key` string, required
      - `allowed_ips` string[], nullable
      - `third_party_disable_allowed` boolean, nullable
    - `default_sharing_groups` DefaultSharingGroupResponseModel[]
      - `group` WorkspaceGroupResponseModel, required
        - `name` string, required
        - `id` string, required
        - `members` string[], required
        - `permissions` WorkspaceGroupPermission[], nullable, required
        - `group_usage_limit` union
          - integer
          - 'unlimited'
        - `group_pvc_limit` union
          - integer
          - 'unlimited'
        - `character_count` integer, nullable
        - `is_scim_synced` boolean
        - `scim_group` ScimGroupResponseModel
          - `scim_external_id` string, nullable, required
          - `display_name` string, required
          - `created_at_unix` integer, nullable
          - `updated_at_unix` integer, nullable
          - `seat_type` 'workspace_admin' | 'workspace_member' | 'workspace_lite_member' — Seat types for workspace members.
        - `scim_frozen` boolean
      - `permission_level` 'admin' | 'editor' | 'viewer', required — The permission level to grant to the group

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/b96b80bcbb83/schema)
