Skip to main content

Overview

The access token serves as the authentication credential for all Duix interactive service APIs.
Each HTTP request must include the token in the Authorization Header.

How to Generate an Access Token

Prerequisites

Before generating a token, ensure you have the following:
  • appId — The unique identifier of your application.
  • appKey — The secret key associated with your application.

Steps to Generate a Token

  1. Generate a JWT signature using your appId and appKey.
  2. Pass the generated signature to the H5 SDK init method.

Signature Generation

The signature is implemented using JWT (JSON Web Token).
Use the following parameters and example code to generate a valid signature.

Parameters


Example: Java Implementation

Add Maven Dependency

Note: This token is the H5 SDK signature value (sign).

Integration

Once you have your appId, appKey, and generated token, follow the SDK and API guides to connect Duix to your application.