Hello Nathan,
It looks like that for the consumed rest service you need to use a different annotation for variables/tokens.
please see also the documentation https://docs.mendix.com/refguide/consumed-rest-service/#add-headers
So instead of using $ you need to use brackets.
Hope this helps,
Good luck!
Hello Nathan Poulton,
You can simply achieve this by using constant,Variable or saved that value in any entity attribute. Please check the blank space in your defined variable.
Yes - checked using Postman too and works fine there.
It works inside the http request when I debug if I copy the value in the Bearer variable into the header (the first screenshot), but when I try and reference the variable itself then it looks like it is not reading the value in the variable.
I have recreated my Get request using the Call Rest operation rather than the Send REST Request. This then seems to undertand the variables - i.e. when you type the $ then you get intellisense of the variables loaded. This then send the request successfully and you get the expected data back.