---
title: "List existing Service Accounts."
method: GET
path: "/v2/organizations/{organization}/serviceaccounts"
tags: ["Teams"]
---

# List existing Service Accounts.

`GET /v2/organizations/{organization}/serviceaccounts`

## Request

- Base URL: `https://docs.tetrate.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.tetrate.io/v2/organizations/{organization}/serviceaccounts`
- Auth: none declared
- TypeScript: <https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/docs/v2/organizations/:organization/serviceaccounts/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `organization` string, required

## Query parameters

- `keyEncoding` 'PEM' | 'JWK'

## Response `200`

A successful response.

- V2ListServiceAccountsResponse: List of existing Service Accounts.
  - `serviceAccounts` Tsbv2ServiceAccount[]
    - `fqn` string
    - `displayName` string
    - `etag` string
    - `description` string: A description of the resource.
    - `keys` ServiceAccountKeyPair[]
      - `id` string
      - `publicKey` string
      - `privateKey` string
      - `encoding` 'PEM' | 'JWK'
      - `defaultToken` string

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api.md) - [All operations](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrate/apis/tetrate-service-bridge-api/revisions/2f19c3a1ae57?raw)
