PC Api Documentation

Discussion in 'TSW General Discussion' started by lawn.chairs, Sep 19, 2025 at 3:52 PM.

  1. lawn.chairs

    lawn.chairs Member

    Joined:
    Aug 8, 2021
    Messages:
    46
    Likes Received:
    49
    Anyone have any API docs? Would love to finally be able to write my own controller inputs. I'm assuming its some C++ tie-in to unreal but I'm definitely not familiar enough with unreal's architecture...
     
  2. BeenTrain

    BeenTrain Active Member

    Joined:
    Dec 10, 2016
    Messages:
    170
    Likes Received:
    153
    I don't think API documentation is available yet but this is a good startpoint:

    The API runs on http://localhost:31270/.

    Start by checking these endpoints using f.e Postman, don't forget to add the api key in the header called "DTGCommKey".
    When you activate the API by adding the -HTTPAPI launch parameter in Steam, you can find the api key in you user profile under Documents\My Games\TrainSimWorld5\Saved\Config\CommAPIKey.txt
    These give you insight into available nodes and endpoints, great starting points for exploring.
     
    • Helpful Helpful x 3
    • Like Like x 1

Share This Page