Using MapkitJS in golang

So my question is regarding mapkitJS and if there is any way that i can use it in my backend just for it's directions API. The URL it makes requests on is https://api.apple-mapkit.com/v1/directions Generating a signed JWT token for authorisation is fine, but the part where that token needs to be used to initialise mapkitJS is where i am having difficulty Can you please let me know if there is a way i can make requests on that url above and how to go on about the initialization using that bearer token?