How to Call Third party REST API with OAUTH token

Hi Team,
I have an API which creates an invoice in third party system(oracle fusion), i would like to call and authenticate this API with logged in user, which eventually will create invoice in 3rd party application and update the “Created by” column with logged in user.
As a prerequisite, i understand ,user sync is required between third party system and UI path. i am not sure, how to proceed further, any link or guidance would be helpful.

Thanks,

HTTP Request Activity:

  • Configure the HTTP Request activity with the API endpoint.
  • Set the Method to POST.
  • Add the access token or API key to the Headers.
  • Include the logged-in user information in the Body if required by the API.

Thank you @sandyarpa767 for replying.
Sorry i am bit new to UI path, just a following question:
How do we generate access token based on loged in user details?

NOTE: Different user can run my process; therefore different token needs to be generated based on login information.

@devashish.saun

First you need to hit the authentication url with the parameters like user details to get bearer token and then use it for further actions

First try to configure in postman and then import into UiPath using curl from postman which would replicate the request

Also current user can be retrieved using environment.username

Cheers