API to Access Notification from Automation Cloud

Hi Everyone,

I want to use Alerts API to get the automation cloud notification like failed job or failed queue transaction.
GET https://cloud.uipath.com/{organizationName}/notificationservice_/notificationserviceapi/odata/v1/Alerts

I created external app with below application scopes

OR.Folders OR.Jobs OR.Monitoring OR.Queues OR.Robots OR.Settings OR.Audit

Then, I added the external app under Tenant>Manage Access>External App and gave to role to view alerts

Then, I created OAUTH Token and sent a request, it returned 200 with empty value

Reference: Automation Cloud - Alerts

I need your help to configure or the steps to use the Alerts API

Hi @john.mari

There is already a feature available on orchestrator to enable these alerts, you can consider utilizing the same.

Steps:

  1. Click on bell icon on orchestrator.

  1. Click on gear icon on the bottom of pop-up that opens upon clicking bell icon.

image

  1. Then below window opens, navigate to the orchestrator tab in there.

  1. Post which scroll down and select below options to receive emails.

if you still want to go via API route only, then let us know. We can help figure out the API part.

Hope this helps.

Regards

Sonali

Hello @sonaliaggarwal47

I am familiar with UI to enable the alerts. But, I want to use API for alerts.

Regards,
John Mari

Hi @john.mari

Okay. Are you able share the screenshot of how you have configured the parameters for get access token?

We can help you figure this out.

Also, from the initial look at your scopes, please note that for any given scopes, 2 scopes are required. For eg, for folders, or.folders and or.folders.read will be required and if you are looking to make any updates via certain api, in that case it will be or.folders and or.folders.write