 Hey folks, we're answering frequently asked questions from the Octa Customer Identity Cloud Community. Today we'll be walking through how to call an API from an Auth0 rule. Before watching this video, you'll need to create an API in a machine-to-machine application and have that machine-to-machine app authorized to request an access token for that API. This will be used for the next part of this example. Let's get started. For this example, I will perform the client credentials flow to get an access token for my test API, which is authorized to my test API machine-to-machine app. Now let's take a look at how we can call an API in a rule. To start, navigate to rules by clicking on the auth pipeline, then clicking on rules, then click on the create button on the top right, and select an empty rule. I will name it Get API Token. On this page, we can implement our code to request an access token for the test API. To do this, I'll use the example script found in our How Do I Call My API from a Rule FAQ. This implementation uses the Axios package to make a post request to the test API. Given the sensitive nature of the request, we can go ahead and secure sensitive information like our client ID and client secret as a global configuration object. So let's go ahead and do this. After that is complete. We can go back to our rule and use the built-in rules debugger to test the script and see the results. And here it is. We've managed to get an access token for the test API, just to recap. Today we looked at how we can call an API from Auth0 rules using an access request. Please leave us a like or comment. If you found this video helpful, subscribe to our YouTube channel and join us for more content on community.auth0.com. Thank you.