Project JWT

The Project JWT is used for server-to-server communication and administrative tasks at the project level, like creating broadcasts and managing users.

Always keep the Project JWT secure. Never expose it in the browser or frontend code.

Creating a Project JWT

  1. Go to the MagicBell Dashboard.
  2. Select your project.
  3. Navigate to Settings > Access Tokens.
  4. Click "New Token"
  5. Provide a name, and choose an expiration time.
  6. Copy the Project JWT.

You can use this token directly in your requests without needing to generate it yourself. Note that we can only show the token once. We can't recover it for you.

Discarding a Project JWT

If you believe your Project JWT has been compromised, you can discard it in the MagicBell Dashboard. This will invalidate the token, and you will need to create a new one.

Based on the expiry, the project tokens can also expire automatically. If you need a long-lived token, you can set the expiry to a distant future date.