# API integration

**URL:** <https://community.hubspot.com/t/api-integration/45874>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [October 25, 2021, 11:30am UTC](https://community.hubspot.com/t/api-integration/45874 "2021-10-25T11:30:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NLokwani](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NLokwani](https://community.hubspot.com/u/NLokwani)\
**Post date:** [October 25, 2021, 11:30am UTC](https://community.hubspot.com/t/api-integration/45874/1 "2021-10-25T11:30:09Z")

</div>

How to trigger the workflows thru code (programatically)??

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 25, 2021, 4:20pm UTC](https://community.hubspot.com/t/api-integration/45874/2 "2021-10-25T16:20:53Z")

</div>

@NLokwani ,

Can you be more specific with what you are wanting to accomplish?

With more details, Community members such as @Bryantworks might be able to assist 😀

---

<div class="post-metadata">

**Author:** ![Bryantworks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bryantworks/32/94963_2.png) [@Bryantworks](https://community.hubspot.com/u/Bryantworks)\
**Post date:** [October 25, 2021, 7:08pm UTC](https://community.hubspot.com/t/api-integration/45874/3 "2021-10-25T19:08:35Z")

</div>

Thanks for the tag @dennisedson.

@NLokwani Typically you would post some variable on the record versus triggering it with code. I like doing it this way as it offers a lot more flexability and knowledge to other users in the account. For example, send a “flag” when a user is in a trial. I would update a property to “In Trial” likely along with a datestamp. But you don’t have to, as you could use workflows to automate the datestamping which saves on dev time.

Hope this helps!
