Obtain Access Token
POST
/v1/authenticationLast modified:Â 5 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
Information to send in body for authorization.
client_id
string  | nullÂ
required
client id in your Transwap account settings
client_secret
string  | nullÂ
required
client secret in your Transwap account settings
Example
{
"client_id": "string",
"client_secret": "string"
}
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
Authorized `access_token` returned once successfully authenticated.
access_token
stringÂ
optional
Authentication token returned
Example
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
Last modified: 5 months ago