My url, headers and body data are defined as:
var headers = {
\'Authorization\': \'Bearer 12345\',
\'Content-Type\': \'application/x-www-form-urlencoded\
This is, sadly, an educated guess because a MCVE was not provided.
See the documentation for axios:
By default, axios serializes JavaScript objects to JSON. To send data in the application/x-www-form-urlencoded format instead, you can use one of the following options.
You are setting a Content-Type
header which claims you are sending application/x-www-form-urlencoded
data, but you haven't done any of the things that the documentation suggests to generate data in that format.