Login
Rainbow-APIs is based on JWT. In order to use the open APIs, login APIs provide us entries to get the JWT.
Login actions
Login actions provide users the entries to call the open APIs including Metadata, Mints, Contract, Files.
App Login
APP login API helps users to get the JWT according to app_id and app_secret. JWT can be used to access other open APIs.
Name
Meaning
Param Type
Data Type
Required
app_id
The id of the app
body
string
app_secret
The secret of the app
body
string
The returned result can be used to access other OPEN-APIs
Name
Meaning
Type
token
JWT token
String
expire
The expired time
String
Refresh JWT
Refresh JWT API helps users to get a new JWT of the specified app.
Name
Meaning
Param Type
Data Type
Authorization
Bearer Token
Header
string
Name
Meaning
Type
token
JWT token
String
expire
The expired time
String
Last updated