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

# List service accounts

`GET /v1/service-accounts`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/service-accounts`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Lists all service accounts for the organization with pagination support

## Query parameters

- `page` integer
- `pageSize` integer

## Response `200`

Service accounts retrieved successfully

- ServiceAccountsList
  - `limit` integer
  - `serviceAccounts` ItemsCollectionServiceAccountRead
    - `items` ServiceAccountRead[]
      - `clientId` string, required: OAuth2 client ID for authentication
      - `id` string, required: Unique identifier
      - `name` string, required: Display name of the service account
      - `roles` Role[], required: List of assigned roles
        - `builtin` boolean: Whether this is a built-in role
        - `createdAt` string, date-time: When the role was created (null for system roles)
        - `createdBy` string: Who created the role (null for system roles)
        - `description` string, required: Description of the role
        - `effect` string: The effect of this role's permissions: 'allow' or 'deny'. Defaults to 'allow' for standard roles.
        - `id` string, required: The id of the role.
        - `name` string, required: The user-facing name of the role.
        - `permissionIds` string[], required: Permission IDs assigned to this role (empty for system roles)
  - `start` integer

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

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