# Configuring OAuth2 on Postman The following guide shows how to configure Postman to authenticate against and use the API ### [![Quick guidde](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FwmP6tQkfGktJEGbrijctft_cover.png?alt=media&token=fc285935-c6c2-4576-97c8-13535368395f)](https://app.guidde.com/share/playbooks/otkGycMbVo4wSTarLWaJf2) This guide will assist you in configuring Postman to utilize OAuth2 for token acquisition, enabling you to query an API. ### 1. Introduction By following the outlined steps, you can authenticate and access API functionalities within Postman. ![Introduction](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FoQZx62878wVgaxbRWMAoLX_doc.png?alt=media&token=38fac0af-0fa3-4190-8b0b-c08a99ecc1a6) ### 2. Set up an environment in Postman Configure the base Url to the API endpoint provided in the welcome email. ![Set up an environment in Postman](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FntiD3TE1tNEumHcjyrvcSF_doc.png?alt=media&token=c0ca16ce-ad75-423a-8500-9f1aead683cb) ### 3. Set the the Client Id Set the client Id to the client Id provided in the welcome email ![Set the the Client Id](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2Fg6CC9dCWUp3DtBTWT3TPDu_doc.png?alt=media&token=6de993a0-44f7-4e8b-8a9f-0db7afb9ef2a) ### 4. Set the client secret Set the client secret the to client secret in your welcome email. ![Set the client secret](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FaeShHbjCa5eEcSqkJS8gG2_doc.png?alt=media&token=4a656175-47c7-4a37-8dbf-3d13dc6f8ec6) ### 5. The the auth url Set the auth url to the auth url in your welcome email ![The the auth url](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FdwGkRJTxGjXSTQitMbK97f_doc.png?alt=media&token=f8031357-ed16-4069-8a4c-5d95c9e26e2c) ### 6. Click "Collections" Access your collections ![Click 'Collections'](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FbEeE1QB2rMoUXdotKJvCaa_doc.png?alt=media&token=1fdd4cfe-e65d-4ea9-b6d7-0427e9fd41e2) ### 7. Download the Postman collection Download the postman collection from https://apidocs.resharmonics.com and open the collection in Postman. Click on the top level of the collection. ![Download the Postman collection](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2F4jZddf31gYtedzEnB2FM4n_doc.png?alt=media&token=3a11600e-2bef-4948-939d-7ff36dda5f50) ### 8. Click the Authorization Tab Click the authorization tab on the collection, set the grant type to Client Credentials and set the Access Token URL to the {{authUrl}} set up in the environment. ![Click the Authorization Tab](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FosSvLfEfGfrYdvxG7rupmS_doc.png?alt=media&token=48d881c4-b44a-4070-a2c9-474b99824bb5) ### 9. Set the Client Id Set the Client Secret to use the {{clientSecret}} set up in the environment. ![Set the Client Id](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2F8fiEnJYAMCZYtnfJyhSaw6_doc.png?alt=media&token=b3d5adac-9436-4d4e-b81a-143421cc1d98) ### 10. Set the Client Secret Set the Client Secret to use the {{clientSecret}} set up in the environment. ![Set the Client Secret](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FswFtwRXzw23dhXaM2W6wqX_doc.png?alt=media&token=97fe60e4-0215-47b3-bd5e-665411fc5110) ### 11. Set the Scope Set the scope to be "api/read api/write" ![Set the Scope](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FppfEseEV6GqDKBAngx7Zsx_doc.png?alt=media&token=c857de19-abef-489d-aeed-a1ca8161cfdc) ### 12. Generate the Access Token Click Generate a new access token to create a new access token, the token will last for 60 minutes. ![Generate the Access Token](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FkEnDpZdghwN3v1mCf95A4q_doc.png?alt=media&token=5402320d-7153-4c32-b8d3-151fa0e5d488) ### 13. Click "Proceed" Proceed with the token generation process ![Click 'Proceed'](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2Fec1XaGVCAok35HSnEjRSYi_doc.png?alt=media&token=9bed8227-585a-435d-9028-8bd00dc456df) ### 14. Click "Use Token" Utilize the generated token ![Click 'Use Token'](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2Fw1v8D62HKmvJ1Wb1L7knNg_doc.png?alt=media&token=a96d1e64-9f93-4826-85f5-ea80fe795c7f) ### 15. Refreshing the Token The token will last for 60 minutes, you can refresh the token in Postman using the refresh button ![Refreshing the Token](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FtXSrJRbLTnSk7ZzWhmP2t8_doc.png?alt=media&token=0e3c2515-d309-4730-9712-4d82f3aaab2f) ### 16. Test the API access Select a call from the collection, a good starting point is the first search API. ![Test the API access](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FwAQd7Pc42EEXg4Mh7iU7Hv_doc.png?alt=media&token=9156eb14-b673-4ae5-bb27-92302de2e7c6) ### 17. Send first query Uncheck the Query params or set the to appropriate parameters and click Send. ![Send first query](https://static.guidde.com/v0/qg%2FsSQiig6V6sef6xL3yj4Qv8Q3J163%2FotkGycMbVo4wSTarLWaJf2%2FcngN92DjKprRg11EDj7A77_doc.png?alt=media&token=f1894987-75b5-4f57-899b-1a3b468e52b1) This guide covered configuring Postman to use OAuth2 for token retrieval and subsequently querying an API by utilizing the obtained token