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 | anyReplication factor (defaults to broker count)
Show propertiesHide properties
Any of:
integer
integerany
anycleanup_policyCleanupPolicyEnum | anyTopic cleanup policy
Show propertiesHide properties
Any of:
CleanupPolicyEnum
stringany
anymin_insync_replicasinteger | anyMinimum in-sync replicas
Show propertiesHide properties
Any of:
integer
integerany
anyretention_msinteger | anyTime to retain data in ms (-1 for unlimited)
Show propertiesHide properties
Any of:
integer
integerany
anyretention_bytesinteger | anyMax size on disk in bytes (-1 for unlimited)
Show propertiesHide properties
Any of:
integer
integerany
anymax_message_bytesinteger | anyMaximum message size in bytes
Show propertiesHide properties
Any of:
integer
integerany
anycustom_configsobject | anyAdditional topic configs as key-value pairs
Show propertiesHide properties
Any of:
object
objectany
anytagsstring[] | anyTag IDs to assign to the topic
Show propertiesHide properties
Any of:
string[]
Array of
stringstringany
anyResponses
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 | anyShow propertiesHide properties
Any of:
string
stringany
anyprefixstring | anyShow propertiesHide properties
Any of:
string
stringany
anyserializationTopicSerialization | anyShow 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 | anyConverter class for message keys
Show propertiesHide properties
Any of:
string
stringany
anyvalue_converterstring | anyConverter class for message values
Show propertiesHide properties
Any of:
string
stringany
anyschema_registry_enabledbooleanWhether Schema Registry is used for this topic's serialization
default: false
any
anynum_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