Use your decision API in a Python rule This is quick overview for how to add a custom Python rule in guard. So when you are creating a rule here you can select the Python rule and you can create your own endpoint if you want a completely custom logic. We will call that endpoint while making the guard decisions for the policy which you have enabled for your agent. And here I will show you the example exactly how we have created our own endpoint you can simply select the endpoint and with different inputs you can even test the how it would work and similarly in the in the settings the guard connections you need to add a connection here you can simply just mention your endpoint and the authentication token and it should be available here and once it's working you can attach this endpoint to a particular rule.