---
title: "Get service account"
method: GET
path: "/service-accounts/{id}"
tags: ["service_accounts"]
---

# Get service account

`GET /service-accounts/{id}`

Get a service account by ID

## Path parameters

- `id` string, required

## Response `200`

OK

- ServiceAccount
  - `active` boolean
  - `created_at` string
  - `created_by` string
  - `description` string
  - `id` string
  - `name` string
  - `roles` Role[]
    - `description` string
    - `id` string
    - `name` string
    - `permissions` Permission[]
      - `action` string
      - `description` string
      - `id` string
      - `name` string
      - `resource_type` string
  - `updated_at` string

## Other responses

- `404` — Not Found

## Changes

- **2026-07-06** `52fc33fb1e0a` — 1 info
  - endpoint added
- **2025-06-02** `0c070796939d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/service-accounts/:id/get.md)

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marmotdata/apis/marmot-api/revisions/cadebfd78fef?raw)
