---
title: "POST /public/v1/clusters/{clusterName}/service-accounts-aiven"
method: POST
path: "/public/v1/clusters/{clusterName}/service-accounts-aiven"
tags: ["service-accounts"]
---

# POST /public/v1/clusters/{clusterName}/service-accounts-aiven

`POST /public/v1/clusters/{clusterName}/service-accounts-aiven`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/v1/clusters/{clusterName}/service-accounts-aiven`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/v1/clusters/:clusterName/service-accounts-aiven/post.ts> (a function with typed inputs; its response is checked against the schema)

Create an Aiven service accounts

## Path parameters

- `clusterName` string, required

## Request body

- AivenServiceAccountCreateRequest
  - `username` string, required

## Response `201`

Create a service account on an Aiven cluster.

- AivenServiceAccountCreateResponse
  - `access_cert` string, required
  - `access_key` string, required
  - `password` string, required
  - `type` string, required
  - `username` string, required

## Other responses

- `400`: This cluster is not an Aiven cluster.
- `401`: The user is not authenticated
- `403`: The user doesn't have the required permission(s) "kafka.clusters.acl.create" to do this operation
- `404`: No cluster with this technical id exist
- `409`: The service account already exists
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
