---
title: "Create a service account"
method: POST
path: "/api/v0/service-accounts"
tags: ["Service Accounts"]
---

# Create a service account

`POST /api/v0/service-accounts`

Creates a new service account in the authenticated organization. Requires human authentication with a Manager role or higher; service account credentials are rejected.

## Request body

- CreateServiceAccountRequestBody
  - `name` string, required
  - `description` string
  - `status` 'active' | 'inactive', required

## Response `201`

Response for status 201

- CreateServiceAccount201ResponseBody
  - `serviceAccount` object, required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `status` 'active' | 'inactive' | 'deleted', required
    - `createdBy` string, required
    - `createdAt` number, required — Unix epoch milliseconds when the service account was created
    - `updatedAt` number — Unix epoch milliseconds when the service account was last updated

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `402` — Response for status 402
- `403` — Response for status 403
- `409` — Response for status 409
- `500` — Response for status 500

---

[API](https://skmtc.net/factory/apis/factory-public-api.md) · [All operations](https://skmtc.net/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factory/factory-public-api/versions/684f94d47ca9/schema)
