# API Key missing permission

**URL:** <https://community.hubspot.com/t/api-key-missing-permission/11469>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [September 24, 2018, 12:10pm UTC](https://community.hubspot.com/t/api-key-missing-permission/11469 "2018-09-24T12:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 24, 2018, 12:10pm UTC](https://community.hubspot.com/t/api-key-missing-permission/11469/1 "2018-09-24T12:10:53Z")

</div>

Hi there

I’m trying to use the API to create tasks but I’m getting following response:  
[https://api.hubapi.com/calendar/v1/events/task](https://api.hubapi.com/calendar/v1/events/task)  
{  
“status”: “error”,  
“message”: “This hapikey (8d574a5f-\*) does not have proper permissions! (requires all of [content-access])”,

“correlationId”: “a7ea3424-\*”,  
“requestId”: “7282bce9030164135e18984804e91cc1”  
}

My user should have all the required permissions though, because I was able to create tasks manually in the web UI.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [September 24, 2018, 1:42pm UTC](https://community.hubspot.com/t/api-key-missing-permission/11469/2 "2018-09-24T13:42:41Z")

</div>

Hi [@Dylan\_Marriott](https://community.hubspot.com/u/dylan_marriott), That endpoint looks like it’s related to the Marketing Calendar here: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/calendar/create-task), rather than an actual task associated with the CRM. You should create a task via the engagements API [here](https://developers.hubspot.com/docs/methods/engagements/engagements-overview) instead.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 24, 2018, 3:29pm UTC](https://community.hubspot.com/t/api-key-missing-permission/11469/3 "2018-09-24T15:29:13Z")

</div>

Oh I see. Thanks for your help!
