# API Calls

**URL:** <https://community.hubspot.com/t/api-calls/123690>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [January 10, 2025, 4:17pm UTC](https://community.hubspot.com/t/api-calls/123690 "2025-01-10T16:17:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryonschultz](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bryonschultz](https://community.hubspot.com/u/bryonschultz)\
**Post date:** [January 10, 2025, 4:17pm UTC](https://community.hubspot.com/t/api-calls/123690/1 "2025-01-10T16:17:46Z")

</div>

Hello everyone. I’m new to Hubspot. We are implementing CourseKey and have a need for a workaround. We want to make an an API call every few minutes to CourseKey to see if a student has completed a course. If they have, that respective course gets a closed date in Hubspot and in turn, Hubspot sends a text message with the course code for the next course to the student, so that the student can enter that code in their app and start the next course. Is this possible in Hubspot?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 13, 2025, 5:57pm UTC](https://community.hubspot.com/t/api-calls/123690/2 "2025-01-13T17:57:09Z")

</div>

Hey, @bryonschultz 👋 It’s likely you’ll need to develop some form of middleware to handle this. Additionally, you’ll need to make sure you have Marketing Hub Pro or Enterprise to utilize the [**SMS features**](https://knowledge.hubspot.com/sms/send-automated-sms-messages-using-workflows). Other considerations:

- create a custom property for your close dates (if you don’t already have one)
- create a custom property for your codes
- receiving the updated code from CourseKey
- using a call to update your custom properties
- test the amount of delay you need for the HubSpot back end to update and process your updated codes and dates
- sending a call to your Workflow to handle the SMS sending itself
- implement re-enrollment for your workflow

You can create a Developer Test account to test all of this so you don’t affect your production portal.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![bryonschultz](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bryonschultz](https://community.hubspot.com/u/bryonschultz)\
**Post date:** [January 14, 2025, 10:19pm UTC](https://community.hubspot.com/t/api-calls/123690/3 "2025-01-14T22:19:34Z")

</div>

Thank you very much!
