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

API Authorization issue with Zapier on custom PUT request

TimS3776
Rookie
0 Votes

I'm trying to get information from Zapier into CC using the API. I think I finally have all the code working but when I do the test from the Zapier side I'm getting "the app returned "anauthorized". It seems I'm missing the authorization portion of this code but I'm having a hard time finding any examples of what I need to do after searching. Thanks

 

Current Code:

 

{
"email_address": "{{90468520__email}}",
"first_name": "{{90468520__first_name}}",
"last_name": "{{90468520__last_name}}",
"list_memberships": [
"d0f03d12-7217-11eb-9800-fa163edc3efc"
],
"street_address": {
"city": "{{113887163__city}}",
"state": "{{113887163__state}}",
"postal_code": "{{113887163__zip_code}}",
}
}

 

1 REPLY 1
Courtney_E
Moderator
0 Votes

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

It looks like we've already followed up with you directly via email, but here is the information provided for visibility on the forum:

 

Try reformatting the URL request(s) like this:

 

Contacts Endpoint POST URL:

https://api.cc.email/v3/contacts?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirect_uri=https:/...

 

Contacts sign_up_form POST URL:

https://api.cc.email/v3/contacts/sign_up_form?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirec...

 


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
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