---
title: "Create a service account for a team."
method: POST
path: "/team/serviceaccounts"
tags: ["team"]
---

# Create a service account for a team.

`POST /team/serviceaccounts`

Required RBAC Policy: team/serviceaccount/create

## Query parameters

- `name` string, required
- `policy_id` string, required
- `permissions` string

## Response `201`

CreateTeamServiceAccountResponse contains the created service account and its access token.

- object
  - `access_token` string — AccessToken is the access token for the created service account.
  - `service_account` ServiceAccount
    - `accountName` string
    - `createdAt` string, date-time
    - `customerId` string
    - `emailAddress` string
    - `id` string
    - `isRevoked` boolean
    - `lastUsedAt` string, date-time
    - `token` string
    - `tokenRegeneratedAt` string, date-time

## Other responses

- `400` — Returned on bad input
- `401` — Return if the caller is not authorized
- `403` — Returned if the caller does not have the needed permission
- `404` — Returned on resource not found

---

[API](https://skmtc.net/replicated/apis/vendor-api-v3.md) · [All operations](https://skmtc.net/replicated/apis/vendor-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/replicated/vendor-api-v3/revisions/6fcf9e54aba4/schema)
