---
title: "Create a service account"
method: POST
path: "/orgs/{org_id}/service-accounts"
tags: ["service-accounts"]
---

# Create a service account

`POST /orgs/{org_id}/service-accounts`

Creates a new service account. Must be called with a user key (not a service account key).

## Path parameters

- `org_id` string, required

## Request body

- InternalApiAdminCreateServiceAccountRequest
  - `name` string
  - `team_id` string

## Response `201`

Created

- InternalApiAdminServiceAccountResponse
  - `created_at` string
  - `created_by` string
  - `deleted_at` string
  - `id` string
  - `key_count` integer
  - `name` string
  - `org_id` string
  - `team_id` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/voidmind-io/apis/untitled-api.md) · [All operations](https://skmtc.dev/voidmind-io/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voidmind-io/untitled-api/revisions/1405e7d9c155/schema)
