Hi @MOHAMED BAHARDEEN S Thanks for reaching out. Alert rule scope always applies to the entire APIM service You cannot set up an alert specifically at API level. In order to fetch the API details, you can enable Diagnostic Logging to Log Analytics and then create an alert based on a query you write.
Reference:
https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-use-azure-monitor#resource-logs
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-unified-log
Query examples:
//Get the logs for all backend response code not equal to 200
// To create an alert for this query, click '+ New alert rule'
ApiManagementGatewayLogs
| where TimeGenerated > ago(1d)
| where BackendResponseCode != 200
please let me know incase of further queries, I would be glad to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.