Skip to main content

Security Requirement

base_url: https://demo.etranzact.com/bankit-api/antPeer/v1

Overview

AntPeer utilizes OAuth2.0 and all Application endpoints are authenticated by default and therefore require that a service maintain a valid token for access to the resource server. A raw json encoded text is sent in the body of a POST request to https://{base_url}/auth/token for both token generation and token refresh.

Token request:

ParameterTypeDescriptionRequired
username stringClient application’s usernameYes
password stringClient application’s passwordYes
POST / auth/token
curl `${base_url}/auth/token`
-H "Content-type: application/json"
-d '{
"username": "user.username",
"password" : "user.passwd"
}
-X POST

Token refresh request:

ParameterTypeDescriptionRequired
refresh_token stringRefresh token received during the initial token generation or last refresh.Yes
grant_type stringDefaults to “refresh_token”Yes
POST / auth/token
curl `${base_url}/auth/token`
-H "Content-type: application/json"
-d '{
"refresh_token": "string",
"grant_type": "refresh_token"
}
-X POST