# 403 error while making create schedule api call

**URL:** <https://devforum.zoom.us/t/403-error-while-making-create-schedule-api-call/3857>\
**Category:** API and Webhooks\
**Created:** [April 4, 2019, 5:23am UTC](https://devforum.zoom.us/t/403-error-while-making-create-schedule-api-call/3857 "2019-04-04T05:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [April 4, 2019, 5:23am UTC](https://devforum.zoom.us/t/403-error-while-making-create-schedule-api-call/3857/1 "2019-04-04T05:23:18Z")

</div>

$.ajax({  
url:url1 ,//https://api.zoom.us/v2/users/example@gmail.com/meetings"  
type: “POST”,  
data:JSON.stringify(datainfo),  
username: "example@gmail.com",  
dataType: “json”,  
beforeSend: function (xhr) { xhr.setRequestHeader(‘Authorization’, “Bearer token”);  
xhr.setRequestHeader(“Content-Type”,“application/json”)  
},  
success: function (reponse) {  
//save data into a variable  
console.log(reponse)  
}  
});

```
});

```

Here is my post call

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 4, 2019, 5:52pm UTC](https://devforum.zoom.us/t/403-error-while-making-create-schedule-api-call/3857/4 "2019-04-04T17:52:50Z")

</div>

Duplicate of [Create schedule meeting getting : 403 forbidden error and in response: Invalid CORS request](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860)

I will be following this [here](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860)
