Service Center

oAuth2 Authorization

How long is the validity period of SignGlobal's Token access token?

The access token is only valid for 24 hours, and repeatedly acquiring new tokens will cause the validity period of the old tokens to be reduced to 5 minutes. For example, if you continuously acquire 100 authorization tokens (T1, T2, ..., T99, T100), then tokens T1 through T98 become invalid and cannot be used to call the API. Token T99 has a validity period of 5 minutes, while token T100 remains valid for 120 minutes. If the developer is using a distributed deployment with multiple servers calling the API simultaneously, it is necessary to centrally manage the acquisition and sharing of the access tokens to ensure that all servers use a unique access token.

 

How to Obtain a Token via OpenAPI

Step 1: Log in to the web interface using your account, then navigate to the "Settings" and go to the "Applications" page.

Step 2: Add the corresponding application and set its status to "Enabled." Then, go to the application's details page to obtain the ID and secret key. Refer to the image below for more details:

2.png
3.png

Step 3: Call the oAuth authorization interface, passing the obtained ID and secret key as values for the client_id and client_secret parameters, respectively. For more details, refer to the image below:

4.png