Programmatically retrieve master token

[Problem/Question]
Our workflow is that everytime a health clinic signs up on our platform, we create a Sendbird application for them. We then allow patients to chat with the clinics.

  1. In order to create a channel, we need to supply an API token.
  2. I want to use a secondary token to generate the channel.
  3. In order for me to programmatically generate a secondary token, I need the primary token.
  4. How do I programmatically retrieve the primary token so that I can generate the secondary token?

// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?

[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.

[Frequency]
// How frequently is this issue occurring?

[Current impact]
// How is this currently impacting your implementation?

Hello @duyvo_essos,

Welcome to the Sendbird Community!

When you create the application via the Organization API, you will receive the master token in the response: https://sendbird.com/docs/chat/platform-api/v3/organization/managing-application/create-an-application