---
title: "Get a service account."
method: GET
path: "/v1/serviceAccounts/{id}"
tags: ["serviceAccountManagement"]
---

# Get a service account.

`GET /v1/serviceAccounts/{id}`

Get a service account with the given identifier from the organization.

## Path parameters

- `id` string, required

## Response `200`

Service account object that was requested.

- ServiceAccountModel
  - `name` string, required — Name of the service account.
  - `email` string, email, required — Email address of the service account.
  - `roleIds` string[], required — List of roleIds associated with the service account.
  - `createdAt` string, date-time, required — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
  - `createdBy` string, required — Identifier of the user who created the resource.
  - `modifiedAt` string, date-time, required — Last modification timestamp in UTC.
  - `modifiedBy` string, required — Identifier of the user who last modified the resource.
  - `id` string, required — Unique identifier for the service account.
  - `isActive` boolean — True if the service account is active.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
