Summary

API Endpoint Address

https://api.trackrecordpro.co.uk/3.0/login

Minimum Supported API Version3.0
Supported Methods

POST

Access LevelEveryone
DescriptionThe login endpoint is used to obtain a session token for use with Impersonation. If you are not using Impersonation, this endpoint is not accessible.

POST login

POST /3.0/login HTTP/1.1

Details

The only supported HTTP VERB for this endpoint is POST. You should post both the username and password as a JSON object to this endpoint:

{"username":"myuser", "password":"PHa55W0rd@123!"}

Upon success you will be granted a token which you can attach to an Authorization header to allow access to the API:

{
    "request": {
        "url":"\/3.0\/login",
        "endpoint":"login",
        "requested_version":"3.0",
        "api_version":3,
        "request_method":"Post",
        "timestamp":1507623807,
        "session":null
    },
    "response": {
        "message":"Authentication successful",
        "user_token":"c87d2527f913f4c2c7881b04008c241d268ecef25092ae270b629771e4c3a7ac"
    }
}

If the username and/or password are not valid, you will receive an error response instead.