Remote API call within Custom Protocol Mapper

Hi, I have this requirement where I need to access a remote API to inject a certain set of additional claims, but in order to access that api I need to send the access token which this state is half baked. But that would do. I was to know how to convert the AccessToken token to an atual Bearer token that can be sent through the wire.