Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a new topic for audience management.
func (s *TopicsSvcImpl) Create(params *CreateTopicRequest) (*CreateTopicResponse, error) func (s *TopicsSvcImpl) CreateWithContext(ctx context.Context, params *CreateTopicRequest) (*CreateTopicResponse, error)
"opt_in"
"opt_out"
client := resend.NewClient("re_123456789") params := &resend.CreateTopicRequest{ Name: "Product Updates", DefaultSubscription: resend.DefaultSubscriptionOptIn, Description: "Monthly product updates and announcements", } topic, err := client.Topics.Create(params) if err != nil { panic(err) } fmt.Println("Topic ID:", topic.Id)