I'm a little confused on how to go about using the GO API with the Authentication header. How does one go about authenticating and getting a Bearer or ApiKey for the GO API. The documentation here seems only to describe the API calls but stops short of explaining how to retrieve a token.
The REST API 2.0 documentation indicates to use this POST method to /v1.0/services/authentication/login and this returns a valid session, example here:
{
"sessionId": "255f9e3e-2834-4cdc-9d87-f005e81465ca_XXXXX",
"userId": "1XXXXXXX-41a3-455f-9281-be8c61cXXXXX",
"organizationId": "XXXi14heq55hqokkixvpvXXXXX",
"serverTime": "2019-08-02T17:48:03.1951275Z",
"licenseType": "Full"
}
This looks fine, but doesn't get what is needed for calls to:
How does one go about using the returned sessionId to get a Bearer token to use in the GO API?