{ code: 124, message: 'Invalid access token.' }, Account-level app

hello guys i am trying to create a new Oauth2.0 and create a zoom meeting in zoom integration and i have facing issue { code: 124, message: ‘Invalid access token.’ }

when call the end point – https://api.zoom.us/v2/users/" + ‘kantshri561@gmail.com’ + "/meetings

and this is code --const create= function(req,res){
let data=req.body.access_token;

let body=req.body

var options = {

method: "POST",
uri: "https://api.zoom.us/v2/users/" + 'kantshri561@gmail.com' + "/meetings",

body: req.body,
oauth: {
  bearer: `"bearer ${data}"`,

},
headers: {
authoraization: "bearer ${data}",
“content-type”: “application/json”,
},
json: true, //Parse the JSON string in the response
};
console.log(“outside req,”)
console.log(data)
request(options, function (error, response,body) {

res.send({body,msg:“process done”})
console.log(body);
if (error){
res.send(error)
throw new Error(error,console.log(“testing”));
}else{
console.log(“in request data”)
//res.send(response)
console.log(data)
}
console.log(“testing–”)
//res.status(200).join("create meeting result: " + response);
//console.log(body.access_token)
})
}

@kantshri561,

Thank you for posting in the Developer Forum. It looks like the Access token being used in your request is not valid. Have you validated that you are generating the access token correctly?

As a test, I’d recommend using a tool like a postman to generate an access token, then using that token to make your request. Here’s a helpful guide you can reference for using OAuth with Postman: