Hello,
Is it possible to update a contact’s tag by using his email address directly (instead of its id) to avoid having to store the corresponding active campaign id on my side, or fetch it each time.
Also, is it possible to create a contact along with tags directly on the contact creation request ? (to avoid making 2 separate requests).
Thanks in advance.
2 Likes
Hello,
You can update a contact’s tag by passing in an email address using the contact_tag_add
method of the ActiveCampaign v1 API. This allows you to use the email address or the id to add tags to the contact.
Similarly, you can create a new contact with tags in a single call using the contact_add
v1 API method.
We are continuing work to add features and endpoints to the v3 API, but at the moment the only way to accomplish this would be to use the v1 endpoints that I mentioned above. I hope this helps!
Thank you,
-Matt
Have there been any updates on this? I’ve used this API for the first time to delete contacts when they are deleted from my WordPress site, and I’ve found strongly unnecessary to require 2 calls for a single action, because the endpoint only accepts the contact ID, and not its email.
Is there any reason for this endpoint to not accept email instead of ID?
Hello,
Since the endpoint that you are using is a v1 endpoint, it is very unlikely to receive new functionality. There is a v3 endpoint for deleting a Contact as well, but that one also currently requires the Contact ID rather than an email address. I will make sure that your suggestion reaches the appropriate team.
Thank you,
-Matt