Join our Ask A Trainer Sessions and Chat With our Experts!

API V3 403 Forbidden

SOLVED
Go to solution
KenJ32
Campaign Collaborator
0 Votes

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
Jimmy_D
Employee

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

2 REPLIES 2
KenJ32
Campaign Collaborator
0 Votes

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,

 

Jimmy_D
Employee

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
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up