Skip to main content
POST
Create a topic

Authorizations

Authorization
string
header
required

A Keycloak access token: an account token from the kafka-connect-access client, or a subaccount token from client credentials. Tokens are short-lived; request a new one when you get 401.

Body

application/json
name
string
required

Lowercase letters, digits, and hyphens; starts and ends with a letter or digit.

Required string length: 1 - 201
Pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
Example:

"orders"

Response

The topic was created.

name
string
required

Lowercase letters, digits, and hyphens; starts and ends with a letter or digit.

Required string length: 1 - 201
Pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
Example:

"orders"

access
enum<string>[]
required

What this token may do with the topic's messages through its connections: write means publish, read means subscribe to <topic ID>/out.

Available options:
read,
write