ActiveCampaign Forum

Is there a way currently or planned to retrieve a contact from just the email in API v3?


#1

Currently, the NPM API module using the old API has a method to retrieve a contact based on their email address. I can’t seem to find (I might have missed it) an equivalent method in the beta API v3. Is this possible and if not, will it be possible? Also, what’s the timeline for depreciation for the old API?

Thanks.


#2

There is no way to retrieve a contact using their email address via v3 of the API yet. We’re hoping to have this available in the future but I unfortunately don’t have a specific timeline for you. At this time, we do not have a timeline for sunsetting v1 of our API. All new functionality will be built into v3 of our API.

Hope this helps!


#3

Hi tjahn, how can i update a user custom field if i not have their ID ?


#4

At this time, a contact ID is required to update a custom field for that contact via API. We hope to enable updating via email address in the future. Thanks!


#5

`Hi tjahn how can i retrieve the ID if i only have a email address?


#6

@monkeyfit You can use:

curl --request GET \
  --url https:///:account.api-us1.com/api/3/contacts?search=email@example.com

#7

You can as well use the “email” query parameter… maybe that’s faster:

curl --request GET \
  --url https:///:account.api-us1.com/api/3/contacts?email=foo@bar.com

But you will get a collection containing one contact… so you need to handle the response in another way than requesting a single contact by id