Session

Get current session

Changed on

Returns the signed-in user for a TrucklineMP session (session cookie, or its session token as Authorization: Bearer). Developer API keys are not accepted. Responds 401 without a session and 429 after 30 requests per minute from one IP.

get/session

Request

  • Base URL
    https://api.trucklinemp.com
  • Auth
    none required

Response

OK

usernamestring required
webidnumber nullable required
idstring required
steamidstring nullable required
profilePicturestring nullable required

Changes

    • breaking

      removed the required property from the response with the status

    • info

      the endpoint scheme security bearerAuth was removed from the API

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      response property username list-of-types was narrowed by removing types null from media type application/json of response 200