Developer Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Login

This endpoint creates an authentication session for you. You receive a bearer token and a refresh token that you use to maintain this auth session for an indefinite amount of time.

Auth Only

This is a convenience function. You can make a POST request to this endpoint and just verify that the username and password are correct. We won’t give you any tokens.

POST URL
https://api.teletracker.net/auth/login
Request Parameters
Parameter Type Usage Description
username string Required The username to authenticate against
password string Required The username’s password
account_id integer Optional If the user has access to more than one account, specify the account id to be authenticated against here. You can alternatively perform a separate masquerade operation afterwards.
auth_only integer Optional If set to 1, just verify that the username and password are correct and do not create an authentication session. Defaults to 0, verify and create an authentication session.
Response Body
{
   "success": true,
   "guid": "71067212-8141-4887-b48e-ccabcfb07196",
   "token": "c04c7ff7-5fa1-48fb-aa2a-bcf97a6b8a79",
   "tokenExpiration": "2018-04-01T21:39:12+00:00",
   "tokenLifetime": 3600,
   "refreshToken": "dff78899-ed3b-4965-8f44-474ac2bf7354",
   "refreshTokenExpiration": "2018-04-30T21:39:12+00:00",
   ...
}