> ## Documentation Index
> Fetch the complete documentation index at: https://artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Kafka user

> Creates a Kafka user and returns its password once. Producer/consumer users can read every topic under the company's prefix, which includes all data Artie replicates, and write to topics under the company's customer prefix. Admin-profile users are managed under /admin-users.



## OpenAPI

````yaml https://raw.githubusercontent.com/artie-labs/artie-api-spec/refs/heads/master/openapi.yaml post /kafka-clusters/{uuid}/users
openapi: 3.1.0
info:
  description: External API endpoints for Artie
  title: Artie API
  version: v1.0.130
servers:
  - url: https://api.artie.com
security:
  - ApiKey: []
paths:
  /kafka-clusters/{uuid}/users:
    post:
      tags:
        - Kafka Clusters
      summary: Create a Kafka user
      description: >-
        Creates a Kafka user and returns its password once. Producer/consumer
        users can read every topic under the company's prefix, which includes
        all data Artie replicates, and write to topics under the company's
        customer prefix. Admin-profile users are managed under /admin-users.
      operationId: kafka_user_create
      parameters:
        - in: path
          name: uuid
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouterCreateKafkaUserRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouterKafkaUserCreateResponse'
          description: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '409':
          description: Conflict
        '500':
          description: Internal Server Error
components:
  schemas:
    RouterCreateKafkaUserRequest:
      properties:
        accessProfile:
          description: >-
            Must be producer_consumer; create admin-profile users with POST
            /kafka-clusters/{uuid}/admin-users.
          type: string
        username:
          type: string
      required:
        - username
        - accessProfile
      type: object
    RouterKafkaUserCreateResponse:
      properties:
        kafkaUser:
          $ref: '#/components/schemas/PayloadsKafkaUser'
        password:
          type: string
        warning:
          type: string
      required:
        - kafkaUser
        - password
      type: object
    PayloadsKafkaUser:
      properties:
        accessProfile:
          type: string
        consumerGroupPrefix:
          type: string
        createdAt:
          format: date-time
          type: string
        status:
          type: string
        username:
          type: string
        uuid:
          format: uuid
          type: string
      required:
        - uuid
        - username
        - accessProfile
        - status
        - createdAt
        - consumerGroupPrefix
      type: object
  securitySchemes:
    ApiKey:
      description: API key passed as a Bearer token in the Authorization header.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.