Create a new Kafka topic
POST
/topicsAuthorization
AuthorizationBearer token · headerrequiredRequest body
requiredapplication/jsontopic_namestringrequiredKafka topic name
min length 1 · max length 249
num_partitionsintegerNumber of partitions
min 1 · default: 1
replication_factorinteger | nullReplication factor (defaults to broker count)
Show propertiesHide properties
Any of:
integer
integernull
nullcleanup_policyCleanupPolicyEnum | nullTopic cleanup policy
Show propertiesHide properties
Any of:
CleanupPolicyEnum
stringnull
nullmin_insync_replicasinteger | nullMinimum in-sync replicas
Show propertiesHide properties
Any of:
integer
integernull
nullretention_msinteger | nullTime to retain data in ms (-1 for unlimited)
Show propertiesHide properties
Any of:
integer
integernull
nullretention_bytesinteger | nullMax size on disk in bytes (-1 for unlimited)
Show propertiesHide properties
Any of:
integer
integernull
nullmax_message_bytesinteger | nullMaximum message size in bytes
Show propertiesHide properties
Any of:
integer
integernull
nullcustom_configsobject | nullAdditional topic configs as key-value pairs
Show propertiesHide properties
Any of:
object
objectnull
nulltagsstring[] | nullTag IDs to assign to the topic
Show propertiesHide properties
Any of:
string[]
Array of
stringstringnull
nullResponses
201
Successful Response
idstringrequirednamestringrequiredentityTopicDetailsEntityrequiredShow propertiesHide properties
entity_typeTopicDetailsEntityTypeEnumrequiredEnum for topic entity types (producer types).
Allowed:
sourcesdestinationstransformspipelinesmanualentity_idstringrequirednamestringrequiredconnectorSourceConnectorEnum | DestinationConnectorEnum | TransformsLibraryEnum | stringrequiredShow propertiesHide properties
Any of:
SourceConnectorEnum
stringDestinationConnectorEnum
stringTransformsLibraryEnum
stringstring
stringtopic_idsstring[]requiredtopic_db_idsstring[]requireddisplay_namestringrequiredfiltered_snapshot_languagestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullprefixstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullserializationTopicSerialization | nullShow propertiesHide properties
Any of:
TopicSerialization
key_formatSerializationFormatEnumHuman-readable serialization format names for API responses.
Allowed:
avrojsonjson_schemaprotobufstringbytearrayunknownvalue_formatSerializationFormatEnumHuman-readable serialization format names for API responses.
Allowed:
avrojsonjson_schemaprotobufstringbytearrayunknownkey_converterstring | nullConverter class for message keys
Show propertiesHide properties
Any of:
string
stringnull
nullvalue_converterstring | nullConverter class for message values
Show propertiesHide properties
Any of:
string
stringnull
nullschema_registry_enabledbooleanWhether Schema Registry is used for this topic's serialization
default: false
null
nullnum_partitionsintegerrequiredreplication_factorintegerrequiredwarningsCreateTopicWarning[]default: []
Show propertiesHide properties
Array of
CreateTopicWarningmessagestringrequiredlevelstringdefault: "WARN"
422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject