I have created UiPath connector APP. I got Client ID and Client Secret. How can I set up Http request activity in UiPath Studio.
Kindly help me regarding HTTP request activity set up for yahoo email.
Hi @Vanitha_VS
before going the http request route, what are you trying to do exactly, read emails or send them? asking because i dont think yahoo exposes a rest api for mail the way microsoft graph does, so the client id and secret might not get you very far there
for yahoo the usual path is just IMAP (reading) or SMTP (sending) with the regular UiPath mail activities, no http request needed. But yahoo blocks your normal password for that, you have to go into your yahoo account security settings and generate an app password then use that in the activity instead of your login password
imap.mail.yahoo.com port 993 for reading, smtp.mail.yahoo.com port 465 or 587 for sending
if you really need the connector app you created, let us know what endpoint you were planning to call, maybe theres something specific im not aware of
Hi @Vanitha_VS ,
You can follow these steps:
- Create an app in Yahoo Developer Portal and obtain the Client ID and Client Secret.
- Generate an Access Token using Yahoo’s OAuth 2.0 authorization flow.
- In UiPath Studio, add an HTTP Request activity.
- Set:
- Method: GET/POST
- Endpoint: Yahoo Mail API URL
- Authentication Type: OAuth 2.0
- Add the header:
Authorization: Bearer <Access_Token> - Include required headers such as:
Content-Type: application/json - Execute the request and process the API response.
Thank you for the response.
- I created the App in Yahoo developer portal. I obtained the Client ID and Client Secret.
- Can you provide the steps to generate the Access Token. I have checked Yahoo’s OAuth 2.0 authorization flow. Do I need generate Access token using Http request activity in UiPath.
- I will do this
- Endpoint: I created the App right, that url do i need to provide.
- Once i will get Access token, i will set this.
- i will do
- I will do
What is the redirect_uri.
Can you kindly explain the required steps.
Thank you for your response.
I need to send the mail from Yahoo email.
I had a Client ID and Client Secret.
Hi @Vanitha_VS
since you just need to send mail, i think you can skip the whole oauth part. Theres no yahoo mail api endpoint to call anymore, they dropped the proprietary mail apis, whats left is imap/smtp with oauth2 and that mail scope isnt self service in the developer console, you have to apply for commercial access and get approved. So the client id and secret you have probably wont work for mail
for sending, I would just use the Send SMTP Mail Message activity with an app password. Go to your yahoo account security settings, see if you can generate an app password, and use that instead of your normal password
server smtp.mail.yahoo.com, port 465 with SSL, or 587. Email and app password in the activity, and thats it
about your redirect_uri question anyway, its just the callback url you set when creating the app, yahoo sends the authorization code there after the user approves in a browser. It needs a domain you own, wich makes it awkward for automation since it always requires someone clicking approve
hope this helps you as well and save your time ![]()