Highlighted
Occasional Contributor

API V3 403 Forbidden

My was working 30 days ago and now I am running into trouble.

 

I was using a GET request for the following API:

https://api.cc.email/v3/contacts?status=deleted,unsubscribed&include=custom_fields&limit=500&include...

 

I successfully retrieve the access token, but when I retrieve a Status 403:

{
"error_key": "access_denied",
"error_message": " Request forbidden due to insufficient authorization scopes."
}

 

Last time I came across a similar issue there was an issue with some fo the certificates that had to be updated. 

 

Any assistance to help trouble shoot would be greatly appreciated.

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: API V3 403 Forbidden

Hi @KenJ32,

 

Previously we only had endpoints for contacts. We recently released new endpoints for email campaigns. Since that release the scopes moved from optional to required. The release notes mention the new scope, but it does not mention they are now required. We'll work towards making our notes better going forward.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Tags (2)
2 REPLIES 2
Highlighted
Occasional Contributor

Re: API V3 403 Forbidden

After rereading the authentication workflow I discovered my error.  While in parts of the documentation describes "scope" as optional, it is now required for the token request.  Without Scope I was receiving a valid token, but it did not provide access for any data (scope).

 

Does anyone know if this was a recent change?

 

Thanks,

 

Highlighted
Moderator

Re: API V3 403 Forbidden

Hi @KenJ32,

 

Previously we only had endpoints for contacts. We recently released new endpoints for email campaigns. Since that release the scopes moved from optional to required. The release notes mention the new scope, but it does not mention they are now required. We'll work towards making our notes better going forward.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Tags (2)
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Register for our "Making Sense of Online Marketing for Education" Webinar

Join us on Thursday, August 27th at 2pm ET for a free one-hour webinar where we will be covering how to incorporate online marketing into your educational marketing strategy.

Read More
Featured