CX app: update contact through webhook based on subscriber_id instead of email

Hi everyone!

I’m developing a CX app (kinda Active Campaign “plugin”) connected to my API.

I have two workflows: one outbound (AC to my API) that works perfectly.

One inbound (from my API to AC) that does not work the way I want to.

I need to update the contact, sometimes, the email can be updated too (because there is a typo for example).

In my outbound workflow, I’m sending the subscriber_id but I can’t find a way to include it in the mapping of my inbound workflow. (using the resource: ActiveCampaignContact.fields)

Is there a way to tell Active Campaign, through the inbound workflow to update the contact based on the subscriber_id instead of creating another contact?

Thank you.

Hey, is this the endpoint you’re looking for?

id of contact you want to update goes in the request url.

Hi @zilla,

Thanks for your answer.

Finally, I’ve found that I can request the Active Campaign API through the CX app.

Only problem if I tackle this from that side, it is to sync custom fields ids to my API.
I feel that it is a workaround and not the “right” way as there is a dedicated webhook to update a contact on the CX app side.

When I say CX app, it is not the regular API with the API key.
I want my CX app to integrate smoothly into any automation without the user providing his API key.

Here is the docs I’m relying on: Getting Started and Guides