APIs & Integrations

Dylan_Marriott
Member

API Key missing permission

SOLVE

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
{
"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!

0 Upvotes
1 Accepted solution
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

API Key missing permission

SOLVE

Hi @Dylan_Marriott, That endpoint looks like it's related to the Marketing Calendar here: 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 instead.

View solution in original post

0 Upvotes
2 Replies 2
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

API Key missing permission

SOLVE

Hi @Dylan_Marriott, That endpoint looks like it's related to the Marketing Calendar here: 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 instead.

0 Upvotes
Dylan_Marriott
Member

API Key missing permission

SOLVE

Oh I see. Thanks for your help!

0 Upvotes