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

# Create a Kafka topic

> Creates a topic. On a shared cluster the name must start with .customer., the namespace customer Kafka users can produce to. On a Managed Kafka cluster any name works except the cluster's own topics (Kafka's __ topics and Cruise Control's strimzi.cruisecontrol.*), and the cluster must be active (409 otherwise).

`POST /kafka-clusters/{uuid}/topics`

Creates a topic. On a shared cluster the name must start with `<companyUUID>.customer.`, the namespace customer Kafka users can produce to. On a Managed Kafka cluster any name works except the cluster's own topics (Kafka's `__` topics and Cruise Control's `strimzi.cruisecontrol.*`), and the cluster must be active (409 otherwise).

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Path parameters

* `uuid` (string, required)

## Body (application/json)

* `configEntries` (Record<string, string> | null)
* `partitionCount` (integer, required)
* `replicationFactor` (integer, required)
* `topic` (string, required)

## Example request

```bash
curl --request POST \
  --url https://api.artie.com/kafka-clusters/{uuid}/topics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "configEntries": {
    "key": "<string>"
  },
  "partitionCount": 123,
  "replicationFactor": 123,
  "topic": "<string>"
}'
```

## Responses

### 200 OK

* `topic` (string, required)

```json
{
  "topic": "<string>"
}
```

### 400 Bad Request

### 404 Not Found

### 409 Conflict

### 500 Internal Server Error

### 502 Bad Gateway