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

# List Service Accounts

`GET /service-accounts`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/service-accounts`
- Auth: HTTP bearer

This endpoint returns a list of [IAM](https://docs.scalr.io/docs/identity-and-access-management) service accounts.

## Query parameters

- `page[number]` string
- `page[size]` string
- `filter[account]` string
- `filter[service-account]` string
- `filter[email]` string
- `filter[owner]` string
- `filter[owned-by-me]` string
- `filter[has-owners]` string
- `include` string[]
- `sort` string[]
- `query` string

## Response `200`

Success.

- ServiceAccountListingDocument: JSON:API Document Listing see: https://jsonapi.org/format/#document-structure
  - `data` ServiceAccount[]
    - `attributes` object, required
      - `created-at` string, date-time
      - `description` string, nullable: The service account description.
      - `email` string: A read-only field which is generated when a service account is created. Consists of `<name>@<account-domain>.scalr.io`
      - `name` string, required: The service account name. The service account email will be created using this name.
      - `status` 'Active' | 'Inactive': The service account status. Can be: `Active`, `Inactive`.
    - `id` string
    - `links` object
      - `self` string
    - `relationships` object, required
      - `account` object, required: The account ID, the service account belongs to.
        - `data` object, required
          - `id` string, required
          - `type` 'accounts' | '', required
      - `created-by` object: The user who created the service account.
        - `data` object, nullable, required
          - `id` string, required
          - `type` 'users' | '', required
      - `owners` object: The teams, the service account belongs to.
        - `data` object[], nullable, required
          - `id` string, required
          - `type` 'teams' | '', required
    - `type` 'service-accounts', required
  - `included` object[]
  - `links` object
  - `meta` object

## Other responses

- `403`: User unauthorized to perform this action.
- `4XX`: Client error.
- `5XX`: Server error.

---

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