GET/topics/{id}

Get a topic

Retrieves a topic by its identifier. Use the topic ID to look up its name, subscription default, visibility, and other details.

1 parameter
idstringrequired
The ID of the topic to retrieve.

1 status code
200Returns the topic object, including its ID, name, description, default subscription status, visibility, and creation timestamp.
idstringoptional
The ID of the topic.
objectstringoptional
The object type.
namestringoptional
The name of the topic.
descriptionstringoptional
A description of the topic.
default_subscriptionstringoptional
The default subscription status for the topic.
Allowed:opt_inopt_out
visibilitystringoptional
The visibility of the topic.
Allowed:publicprivate
created_atstringoptional
Timestamp indicating when the topic was created.

Error handling

The id path parameter must identify the topic to retrieve.