---
title: "Create one, with its first token"
method: POST
path: "/service-accounts"
---

# Create one, with its first token

`POST /service-accounts`

## Request

- Base URL: `https://clusters.soleilpictures.com/api/v1`
- URL: `https://clusters.soleilpictures.com/api/v1/service-accounts`
- Auth: HTTP bearer

## Request body

- object
  - `workspace_id` string, uuid, required
  - `name` string, required
  - `scopes` string[]
  - `ttl_days` integer
  - `rate_limit` integer

## Response `200`

Success

- object

## Other responses

- `400` (unresolved $ref)
- `403`: The token lacks the scope, or the account cannot reach that thing.
- `404`: No such thing — including things this account cannot see.

---

[API](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api.md) · [All operations](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soleilpictures/apis/soleil-clusters-api/revisions/1d426d587bf3?raw)
