---
title: "List service accounts"
method: GET
path: "/api/v2/org/{id}/service-account"
tags: ["service-account"]
---

# List service accounts

`GET /api/v2/org/{id}/service-account`

## Request

- Base URL: `https://central.zerotier.com`
- URL: `https://central.zerotier.com/api/v2/org/{id}/service-account`
- Auth: HTTP bearer

List all service accounts in an organization.

## Path parameters

- `id` string, required

## Response `200`

Service accounts for the organization

- ServiceAccounts
  - `items` ServiceAccountResponse[], required
    - `id` string, required
    - `name` string, required
    - `description` string, required
    - `orgId` string, required
    - `apiKeys` ApiKeyResponse[], required
      - `id` string, required
      - `serviceAccountId` string, required
      - `description` string, required
      - `expires` string, date-time: Expiration time of the API key
      - `creationTime` string, date-time, required: Time the API key was created
      - `lastModified` string, date-time, required: Time the API key was last modified
      - `lastUsed` string, date-time: Time the API key was last used
    - `creationTime` string, date-time, required: Time the service account was created
    - `lastModified` string, date-time, required: Time the service account was last modified

## Other responses

- `401`: Missing or invalid authentication token
- `403`: Insufficient permissions
- `500`: Internal server error

---

[API](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api.md) - [All operations](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zerotier/apis/zerotier-central-v2-api/revisions/b2e7468ad104?raw)
