---
title: "Create Service Account"
method: POST
path: "/v1/service-accounts"
tags: ["beta.service_accounts"]
---

# Create Service Account

`POST /v1/service-accounts`

Create a service account in a workspace. Requires the Workspace admin (`workspace_admin`) role.

## Request body

- CreateServiceAccountRequest
  - `name` string, required
  - `workspace_id` string, uuid, required
  - `description` string, nullable
  - `role_ids` string[]

## Response `201`

Successful Response

- ServiceAccount
  - `id` string, uuid, required
  - `name` string, required
  - `customer_id` string, uuid, required
  - `organization_id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `description` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-23** `fa73befe1c61` — 4 breaking, 11 info
  - added the new required request property `name`
  - added the new required request property `workspace_id`
  - the request's body type changed from no type to `object`
  - the response's body type changed from no type to `object` for status `201`
  - …11 more
- **2026-09-16** `4cb0b5382d4f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mistral/apis/mistral-ai-api/changes/v1/service-accounts/post.md)

---

[API](https://skmtc.dev/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.dev/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mistral/apis/mistral-ai-api/revisions/fa73befe1c61?raw)
