This api is used to authenticate user on the Lyftron Data app to get access token that is further used in subsequent requests to access the resources of the system like connections, databases, tables, pipelines etc. User needs to provide his username and password along with other required parameters to call this API which will in return provide a JSON response containing Auth token.
Request Headers
Key |
Value |
Content-Type |
application/x-www-form-urlencoded |
Request Type |
Post |
URL |
http://yourlyftrondataappurl/api/1.0/tsql/token |
*** {YourLyftronDataAppUrl} will be replaced with your Lyftron Data App url.
Example
Request Parameters
Request body will contain the following parameters as a JSON object.
Parameter |
Type |
Required |
Description |
username | String | Yes | User name of login user |
password | String | Yes | Password of login user |
grant_type | String | Yes | Define grant type which is password in this case |
Example
Response Parameters
Parameter |
Description |
access_token |
Access token returned from server |
token_type |
Type of Token. Bearer in this case |
expires_in |
Expiry time of token in milliseconds |
Example
{
"access_token": "AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAAaFG48GFekUqO3N7eUhWa0wAAAAACAAAAAAAQZgAAAAEAACAAAAB6EP5u0kvnhx6bWjxVgeYAIeLaWjEK4nGKiP-NIiOyrQAAAAAOgAAAAAIAACAAAACiofJQqVs-pgeVxGgxYQulj3G74eI1vY8XKpL9pfFKcXAAAADA1D6CEjWZLY1tbETVGMb-RH-V9wN2G8drhyFtYKwXBejjtt_qu3Wuyo2Is3YZXEkapHqgMe2hD-GtWIWPaZT9U7tudZc0-61BA2jWN-LaN9ZElQqt9KTu_OIDJq7w3BplmSTb33zc7voE7DW2fHnEQAAAALHUorPMqj9fKk0DZ3mUDzTlo8UptxavoWggi3BUwkh2Pn69Yf472NXkaPGkFTrVDF2OLgk5-zfY1w_wIWe4ZoU",
"token_type": "bearer",
"expires_in": 31535999
}