# API Integration Woes

**URL:** https://community.mindstudio.ai/t/api-integration-woes/1727
**Category:** Support
**Created:** [October 6, 2025, 10:45pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727 "2025-10-06T22:45:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![StilMan25](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/stilman25/32/672_2.png) [@StilMan25](https://community.mindstudio.ai/u/StilMan25)
#### Post date: [October 6, 2025, 10:45pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/1 "2025-10-06T22:45:39Z")

</div>

Hi guys, we have no problem integrating the MindStudio API into our web apps.

However, we are experiencing numerous difficulties and constant errors trying to integrate MindStudio with the Bullhorn API.

I have lots of documentation resources for that, but to summarize, here is the picture of what the flow looks like.

 ![Bullhorn API Authentication Flow](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/1c68f1a8ff668af9e32ad77e0a732ff0dc350394.png)

Here is my agent ID: 4e74daad-0c39-4268-aece-39be2ee0cb6b

I constantly get an error that says that my variables (Global) are not set and that I need to use a set variable block:

Bullhorn authentication failed: Missing credentials. Ensure a “Set Variables” block passes BH\_CLIENT\_ID, BH\_CLIENT\_SECRET, BH\_USERNAME, and BH\_PASSWORD.

We know there is no set variable block within MindStudio.

I have been exploring this integration for weeks with no success. My colleague suggested that perhaps there is an error in the workflow that we cannot identify or there is a bug. Can you please review and let me know?

---

<div class="post-metadata">

### Author: ![StilMan25](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/stilman25/32/672_2.png) [@StilMan25](https://community.mindstudio.ai/u/StilMan25)
#### Post date: [October 6, 2025, 10:47pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/2 "2025-10-06T22:47:02Z")

</div>

Resource: [Get Started with the Bullhorn REST API](https://bullhorn.github.io/Getting-Started-with-REST/)

---

<div class="post-metadata">

### Author: ![StilMan25](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/stilman25/32/672_2.png) [@StilMan25](https://community.mindstudio.ai/u/StilMan25)
#### Post date: [October 7, 2025, 3:58pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/3 "2025-10-07T15:58:14Z")

</div>

Here is the proper authentication flow:

 ![Bullhorn API OAuth Authentication Flow](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/e2cee63206e1247c54eeb813990a1f1f78155c8e.png)

---

<div class="post-metadata">

### Author: ![StilMan25](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/stilman25/32/672_2.png) [@StilMan25](https://community.mindstudio.ai/u/StilMan25)
#### Post date: [October 8, 2025, 6:01pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/4 "2025-10-08T18:01:09Z")

</div>

I have a custom “set variables” JavaScript function working now.

However, in order to run the separate custom JavaScript authentication function, I need to use the virtual machine in order to load other packages.

However, when I set the configuration to use virtual machine and publish it, it automatically returns to sandbox, which is causing issues unless I notice that that change has happened and ensure that what I’m doing my testing in the right environment.

Is this normal behavior or is this a bug?

---

<div class="post-metadata">

### Author: ![Alex\_MindStudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/alex_mindstudio/32/27_2.png) [@Alex\_MindStudio](https://community.mindstudio.ai/u/Alex_MindStudio)
#### Post date: [October 15, 2025, 12:03pm UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/5 "2025-10-15T12:03:40Z")

</div>

Hi @StilMan25,

Thanks for the post and the details.

The Virtual Machine environment configuration shouldn’t change after publishing for existing functions. Could you record this behavior using the link below?

It would also help if you could open your browser’s Console while recording so we can see what’s happening.

> **[Click here to record your screen](https://recorder.jam.dev/yxxwX9x)**
>
> Easily record anything on your screen with Jam

---

<div class="post-metadata">

### Author: ![StilMan25](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/stilman25/32/672_2.png) [@StilMan25](https://community.mindstudio.ai/u/StilMan25)
#### Post date: [November 7, 2025, 11:54am UTC](https://community.mindstudio.ai/t/api-integration-woes/1727/6 "2025-11-07T11:54:02Z")

</div>

Hey Alex, I missed this… but the situation has resolved since our conversation. I did hear from others that they were getting the same behaviour though.

Thx
