Hedera · Example Payload

Gettopic

Returns the topic details for the given topic ID.

topics

Gettopic is an example object payload from Hedera, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersresponses

Example Payload

Raw ↑
{
  "operationId": "getTopic",
  "method": "GET",
  "path": "/api/v1/topics/{topicId}",
  "summary": "Get topic by ID",
  "description": "Returns the topic details for the given topic ID.",
  "tags": [
    "topics"
  ],
  "parameters": [
    {
      "name": "topicId",
      "in": "path",
      "description": "Topic id",
      "required": true
    }
  ],
  "responses": {
    "200": "OK",
    "400": "Invalid parameter",
    "404": "Not Found"
  }
}