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

# Get service account

`GET /api/v1/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

> 56 revisions in range; 1 not diffed.

- **2026-08-24** `0bd802afff21` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/api/v1/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-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
