How to retrieve contact's information using inf_contact_key using Rest API

Hi there,
As part of email campaigns, users click on an email button that leads them to a website page, like https://www.itmplatform.com/en/resources/ebook-how-to-set-up-a-sustainable-pmo-with-itm-platform/?utm_source=UKPMO&utm_medium=Email&utm_content=SustainablePMO&inf_contact_key=f83845bef04f8348753345055bb987a0842e902fbefb79ab9abae13bfcb46658

That page will have javascript code that needs to identify the user with the only parameter I have available: inf_contact_key.

How can I use inf_contact_key to retrieve contact’s information (mainly the email)?

https://developer.infusionsoft.com/docs/rest/#!/Contact/getContactUsingGET only admits the contact ID. I reckon there must be a way to retrieve the contact ID using inf_contact_key

Cheers and Thanks!

If you have the inf_contact_key then you also have both the email and id of the contact (you’ll have to add it to the parameters with a merge field). Pass either the email or id and you can then use it to look up the contact with the api. You can’t use the inf_contact_key as that works internally with Infusionsoft.

In other words, you append the parameter name/value pair in the email link (add to what you have above &contactId=~Contact.Id~

Had no idea I could add merge fields in the URL.
Thanks!

1 Like