How do I send a topic id just created?

How are you creating the topic? If you’re using the API, it returns a load with the topic ID.

You might also take a step back and describe your whole problem and not just this solution