Hi,
The above API is not for cost management alerts. The API for budget alerts is this.
The above API is for Azure Monitor alerts. Keep in mind that the API is for alert instances not for alert rules, so you need actual alert instances.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.