Skip to content

Create HCS topic

POST
/v2/hcs/topic

Create a new HCS topic endpoint.

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
eventName
required

The event name

string
InvoiceCreated
attributes

The attributes needed to be sent to the topic

Array<object>
object
[
{
"dataType": "string",
"hash": "123e4567-e89b-12d3-a456-426614174000"
}
]

The created topic. If topicId is empty, it means the topic is not created yet, you have to use webhook to subscribe the event, or to get the topic id, you can use the getHcsTopicV2 endpoint.

object
id
required

The topic UUID

string
123e4567-e89b-12d3-a456-426614174000