Something like so for bearer token...
*** Variables ***
${headers} Create Dictionary Authorization=“Bearer abcde”
*** Test Cases ***
Make a simple REST API call
[Tags] API
Create Session my_json
http://localhost:3000
Log ${headers}
${response} = Get Request my_json /posts headers=${headers}
Log ${response}