---
title: "List the service accounts you may run automations as"
method: GET
path: "/api/v0/service-accounts/run-as"
tags: ["Service Accounts"]
---

# List the service accounts you may run automations as

`GET /api/v0/service-accounts/run-as`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/service-accounts/run-as`
- Auth: HTTP bearer

Returns the service accounts the caller may run as, for an automation's run identity (`triggerConfig.serviceAccountId`), with only their ID, name, description, status, and agent profile link. Open to every human member. Service account credentials are rejected. Not available on self-hosted deployments.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListServiceAccountRunAsOptions200ResponseBody
  - `serviceAccounts` object[], required
    - `id` string, required: Service account ID
    - `name` string, required: Service account name. Immutable.
    - `description` string: Service account description
    - `status` 'active' | 'inactive' | 'deleted': Absent on an account stored without a status, which cannot authenticate. More values may be added; treat a value you do not know as unknown.
    - `agentProfileId` string: ID of the agent profile that runs as this account. Absent on a standalone account.

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-17** `54bb6cc588c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/service-accounts/run-as/get.md)

---

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