Using node-fetch not able to create meeting, throwing invalid json error

Used node-fetch to make api call for creating a meeting but it throws error that body is not JSON

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>300</code><message>Request Body should be a valid JSON object.</message></error>

Which App Type (OAuth / Chatbot / JWT / Webhook)?

Which Endpoint/s?

How To Reproduce (If applicable)
const header = {

'Authorization': 'Bearer' + token,

'User-Agent': 'Zoom-api-Jwt-Request',

'content-type': 'application/json'


const bodys ={

'topic': 'Test',

‘type’: ‘2’,

'start_time': '2020-05-08T10:00:00',

'duration': '60'


fetch(“{userID}/meetings”,{ method:“POST”, headers: header, body:bodys}

).then (response => {

return response.text();

}).then((json) => {


}).catch(error => console.log(error));

I not able to find what error in JSON

Hi @krishks1234

Thanks for reaching out to the Zoom developer forum, I am happy to help here!
Have you tried testing this on Postman or insomnia to make sure this is working?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.