Method
func (s *TopicsSvcImpl) Get(topicId string) (*Topic, error)
func (s *TopicsSvcImpl) GetWithContext(ctx context.Context, topicId string) (*Topic, error)
Parameters
The unique identifier of the topic to retrieve
Response
The unique identifier of the topic
The description of the topic
Default subscription preference. Either "opt_in" or "opt_out"
ISO 8601 timestamp of when the topic was created
Example
client := resend.NewClient("re_123456789")
topic, err := client.Topics.Get("topic_abc123")
if err != nil {
panic(err)
}
fmt.Println("Topic Name:", topic.Name)
fmt.Println("Created At:", topic.CreatedAt)