I want to generate token using api

MicrosoftTeams-image (6)
Hello,
I’m new to this API in UiPath, In this above image I want to input those user, domain and app key and I want to create a token.
What are the activities should I use and how should I use it. I have the input data I have to add using UiPath API activities and then it should click on generate token

@Bhushan_Nagaonkar

Those are ui activities that you need to use…

For that use type into and click activities to type and click…

Ideally as it is an end point you dont need to use ui…you can use webapi activities where you can do get method on the api you have and from response we can extract token

Cheers

1 Like

Can you show me with ss of a flow

@Bhushan_Nagaonkar

Did you check the video?

That si what is deceibed in that…

May I know are you facing any issue?

If you can be a little specific can provide more details

Cheers

1 Like

I’ll check the video once again and will let you know.
Thanks

1 Like

I have used the same way for my project but my response code is 500 and my output is html of that api

@Bhushan_Nagaonkar

Please show what you have passed…

According to error i could see that you passed some parameter wrong

Cheers

This is the input parameter @Anil_G
MicrosoftTeams-image (9)
This is the output parameter
MicrosoftTeams-image (8)

@Bhushan_Nagaonkar

You know how to use postman…?

Open it and try the api there first…and see if it is working…then we can configure same here…

And these i guess are to be added as header data

Cheers

Actually I dont have much knowledge on api, Ill try to work around api so that Ill get to know how it works. Thankyou for your instant response as well

In tried adding the value in header but the output is same

@Bhushan_Nagaonkar

Try checking the document you have already…

Then request end point will be the url that you see on top

Then ias you are retrieving data its mostly a get request

Then whatever you send for authorization and content type and all will go into header

If any specific parameters they go into body or the parameter uri section

Cheers

1 Like

Can you show me in your flow please, because I dont know much about the api and a flow might help