Is there any way to call web API on tag trigger?

In my case I would like to add Contact to my webserver Database only if Contact is applied to some tag e.g “PushToSystem”. So whenever Contact is applied tag “PushToSystem” on Infusionsoft, it should make call to public API created on my webserver e.g https://example.com/api/saveContact?contactId=ContactId

With contactId, I will pull all the contact info from Inufusionsoft and create new customer entry on my server.

Hi,

This could be handled a few ways, here are a few common ones:

A: Create a campaign that when a tag is applied sends an HTTP POST (which is to your endpoint to enter the record into your system) (sample below)

OR

B: use the API to find the contacts with certain tags. You can Query the ContactGroupAssign Table by GroupId (tag id) and find the records with your tag (more of a chron job)

OR

C: Use the API to return a saved search which has your criteria. If you set a custom field to mark that it’s synced, than the list could only show your new records.

https://developer.infusionsoft.com/docs/xml-rpc/#search-retrieve-a-complete-report-from-a-saved-
^ there might be a REST option, I still use SOAP for this. :slight_smile: ![campaign-post|690x434]

HTTP POST example:

@Rahul_Singh2,

You don’t need to manage sending anymore because there are REST webhooks that can notify you:
https://developer.infusionsoft.com/docs/rest/#!/REST_Hooks/list_hook_event_types

These send the contact id and the associated record id. In this case, you would want to hook the trigger contactgroup.applied and look for the tag id you’re watching for, “PushToSystem”. When you identify that then you know to use the contact id sent to pull the contact information and use it to update your external system.

1 Like

Nice! I’m very SOAP based still… Still waiting on a few key features to make the cutover :thinking:

You can still setup the webhook and have SOAP based responder code.