A client has communications mining enabled, and now want to enter the service via API.
In The UiPath cloud I have created an application - confidential with client_id and client_secret.
However, when using any valid endpoint (according to UiPath documentation) the return message is always:
{ "status": "error", "message": "Invalid authentication token in request"}
So most likely I’m missing some authorization option.
In the application registration I can add scopes, but there are no specific scopes available for communication mining.
Try using instead of access_token from an external application your Personal Access Token from an user which has the necessary permissions on the target UiPath Application.
I’ll give it a try, but I also want to know how to connect from an application instead of a user account with a PAT. Users come and go, and the goal is to intergrate CM with an external application.
Ok, so safe to conclude it needs to be an access token from within the CM module, and not a registered application with client/secret, making it impossible to create system access.
If I were to use this API token to integrate CM with an external app, it is completely dependent on my existence or whichever user account is used) for the integration. Offboarding a user kills the integration then.
Nonetheless, thanks for this input. I can at least proceed.
But @UiPath: this is hardly a sustainable setup. Please combine the API sets with the regular access ones for all other service. Something to do with consistency. I’m aware CM was ‘aquired’ and still leans on non-UiPath interfaces but put it on a backlog somwhere please.
@Anil_G I’ll mark you as solution as soon as I’ve been able to test it (after Easter).