====== Logging in to the T4 API ======
====== Sim Login API ======
^ Method | POST |
^ URL | https://api-sim.t4login.com/login |
^ Body | |
{
"firm" : "",
"userName" : "",
"password" : "",
"appName" : "",
"appLicense" : ""
}
==== Example Response ====
{
"token": "",
"expires":
}
**token**: This is the authentication token that your application must use for subsequent API requests. Include this token in the Authorization header as a Bearer token for each request. The format for the Authorization header should be `Authorization: Bearer `.
**expires**: This is the expiration time of the token, provided as a Unix timestamp. It indicates the time until which the token is valid. You should handle token expiration in your application and implement a mechanism to refresh the token as necessary, typically by making another login request upon token expiry.
====== Live Login API ======
All live logins are assigned to you by your clearing firm admin, not CTS
^ Method | POST |
^ URL | https://api.t4login.com/login |
^ Body | |
{
"firm" : "",
"userName" : "",
"password" : "",
"appName" : "",
"appLicense" : ""
}
==== Example Response ====
{
"token": "",
"expires":
}
**token**: This is the authentication token that your application must use for subsequent API requests. Include this token in the Authorization header as a Bearer token for each request. The format for the Authorization header should be `Authorization: Bearer `.
**expires**: This is the expiration time of the token, provided as a Unix timestamp. It indicates the time until which the token is valid. You should handle token expiration in your application and implement a mechanism to refresh the token as necessary, typically by making another login request upon token expiry.