Issuing Authentication Token
In order to call API provided by Luniverse, you need to get authentication token via API Key.

How to Create API Key

  1. 1.
    Log in to ​Luniverse Console.
  2. 2.
    From the user menu, click [IAM] and go to the IAM page.
  3. 3.
    On the IAM page, click the API Key tab and [+Create API Key] at the upper right of the page.
  4. 4.
    Enter the purpose of the API Key that you would like to create and select the permission to be granted to the API Key.
  5. 5.
    Click [Create]. API Key has been created.
  6. 6.
    Check information on the created API Key on the Step 2 page and copy the Secret Key to keep it safely.
  7. 7.
    Click [Complete].
You should choose the permissions that match the API you would like to use.
The API Key of Transaction API permission can be used to call transaction-related APIs such as Tx Action, Mx API, and Tx API.
IAM User must have IAM Management permission to create an API Key. Issue an API Key with a root account or an authorized IAM user.
An API key consists of an access key and a secret key. You can check Access Key in the API Key list as a public key. However, since Secret Key is not stored in Luniverse after the creation, you must manage and keep it well. Please keep your Secret Key safe.

How to add IP Whitelists

Even if you have issued an authentication token through API Key, only calls from IPs registered in the whitelist are allowed.
  1. 1.
    Log in to ​Luniverse Console.
  2. 2.
    From the user menu, click [IAM] and go to the IAM page.
  3. 3.
    On the IAM page, click the [API Key] tab, and select your API Key from the list.
  4. 4.
    Click the [+ Register IP Whitelist] button.
  5. 5.
    Enter an IP address. (CIDR format supported)
  6. 6.
    Enter a description if necessary.
  7. 7.
    Click [Create].

Issue Autentication Tokens

You can issue authentication tokens through the corresponding API. You need the accessKey and secretKey of API Key.
Below is an example of issuing a Transaction API permission authentication token. Each service also provides an API to issue authentication tokens. Please refer to the API documentation for details.
curl -X POST 'https://api.luniverse.io/tx/v2.0/auth-tokens' \
--header 'Content-Type: application/json' \
--data '{
"accessKey": "<YOUR_ACCESS_KEY>",
"secretKey": "<YOUR_SECRET_KEY>",
"expiresIn": "<TOKEN_VALID_TIME>"
}'
You can check the authentication token in the response.
The unit of expiresIn of the authentication token issuing API is seconds, and the default value is 7 days (604800) if left blank.
We recommend that you obtain a new authentication token on a regular basis for security.
Copy link
On this page
How to Create API Key
How to add IP Whitelists
Issue Autentication Tokens