Obtain Access Token
POST
/v1/authenticationLast modified:Â 2 months ago
Maintainer:Â Not configured
To obtain an access_token
by specifying your client_id
and client_secret
. The returned token is required for every call to any Transwap API, you must include the access_token
in the HTTP header Authorization: Bearer [access_token]
.
Do note that the access_token
is only valid for 20 minutes, upon expiry you have to request for a new access token.
Request
Body Params application/json
No schema defined
Example
Not configured
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
429(429)
Server Error(500)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Authenticated Successfully
Data Schema
No schema defined
Example
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
Last modified: 2 months ago