Hi @SRa79 , good question, this part is confusing the first time you wire an app into HubSpot.
The API call from your client’s backend is one thing, and workflow custom code is another.
For your use case, the mobile app backend should talk directly to HubSpot’s CRM APIs to create or update the contact and deal when the user registers. For example, they would POST to the contacts and deals endpoints with the user’s email, app user ID, name, plan, and whatever properties you need for routing (CRM API | Contacts - HubSpot docs )
You can trigger the workflow from a CRM record creation/update, or, if it fits your integration, use HubSpot’s ‘When a webhook is received’ enrollment trigger to start a workflow from data sent by an external application. If your backend creates or updates the HubSpot record through the CRM API, configure the workflow enrollment criteria around that change, for example, record creation or a specific integration property. Alternatively, supported workflows can start when HubSpot receives a webhook from an external application (Create workflows )
Custom code actions run after a record has enrolled in the workflow and are useful when you need custom processing or API logic during the workflow. They’re separate from the API request or incoming webhook that can initiate the process. So your sequence is: mobile app backend sends data to HubSpot via API, HubSpot creates/updates the contact and deal, the workflow enrolls based on your trigger, then moves stages, sends emails, etc.
One small improvement is to add an integration flag property like source = mobile_app or integration_triggered = true so you can restrict the workflow to only those records. Do you want every new deal in that pipeline to enter this flow, or only app-driven ones?
When a mobile app and HubSpot both need to track the same lifecycle and revenue events, Stacksync keeps contacts and deals in two-way sync so your workflows always fire on clean, up-to-date data.
Moderator Note: this post was reviewed for relevancy and optimized for clarity on September 29, 2026. Thank you for your contributions to the HubSpot Community!