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

Help with POST coming from Zapier to Update Contact

TimS3776
Rookie
0 Votes

I feel like I’m very close to getting this working but I’m missing something. If I use the following code on Zapier I get a error saying “The app returned unauthorized”.

 

Method
POST
URL
https://api.cc.email/v3/contacts/sign_up_form
Data Pass-Through?
Data
{
"email_address": "testuser@gmail.com",
"first_name": "Test",
"last_name": "User",
"list_memberships": [
"d0f03d12-7217-11eb-9800-01010101010"
],
"street_address": {
"city": "Test City",
"state": "Test State",
"postal_code": "00000",
}
}
Unflatten
yes
Basic Auth
Headers
Authorization
Bearer 010101010101010101010101
Content-Type
application/json

 

 

I then go in and change the URL and I get a error saying “The app returned “The requested resource was not found”.”

 

Method
POST
URL
https://api.cc.email/v3/idfed?client_id=4ca4db8e-e9ee-40bb-85ad-2398972349f&redirect_uri=https://zapier.com/dashboard/auth/oauth/return/App123422CLIAPI&response_type=token&scope=contact_data
Data Pass-Through?
Data
{
"email_address": "testuser@gmail.com",
"first_name": "Test",
"last_name": "User",
"list_memberships": [
"d0f03d12-7217-11eb-9800-01010101010"
],
"street_address": {
"city": "Test City",
"state": "Test State",
"postal_code": "00000",
}
}
Unflatten
yes
Basic Auth
Headers
Authorization
Bearer 010101010101010101010101
Content-Type
application/json

 

This is about to drive me crazy, what am I missing with this? I’ve tried things about a hundred different ways without luck.

 

Thanks!

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