TrackRecordPro API Documentation TrackRecordPro

logout endpoint

Summary

API Endpoint Address

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

Minimum Supported API Version3.0
Supported Methods

GET

Access LevelEveryone
DescriptionWhen using impersonation, the logout endpoint logs out a user who was previously logged in using the login method.

Session Token Required

To call the logout method, you must include a valid session token with your request headers within the Authorization header.

GET logout

GET /3.0/logout HTTP/1.1

Details

Logs out a user who's session token is included in the current request's authorization header.

{
    "request": {
        "url":"\/3.0\/logout",
        "endpoint":"logout",
        "requested_version":"3.0",
        "api_version":3,
        "request_method":"Get",
        "timestamp":1507622684,
        "session": {
            "hash":"4ff0752d38655212e9a4c0546d54022c955f28c34b7b7718e1ad3aadedbedbab",
            "time":1507622684,
            "expiry":1507709084,
            "company_id":1,
            "user_id":2
        }
    },
    "response":{
        "message":"Session logged out"
    }
}