Test connection to the API from postman

399 views
Skip to first unread message

Eduardo Primera

unread,
Jan 31, 2023, 10:46:36 AM1/31/23
to DrChrono API Developers
Hi Im new with DrChono API, just created a free account to test the api connection using postman, I need to know how to generate the token to test the connection.

Please let me know any comment.

Thanks

assaa...@drchrono.com

unread,
Jan 31, 2023, 10:58:39 AM1/31/23
to DrChrono API Developers
Hi there,

Here is an article on how to start authenticating our APIs via Postman -> https://developers.drchrono.com/connecting-to-drchronos-api-via-postman/ 

I will attach my own personal collection. It has most of the common endpoints on there and a handful should have saved request bodies.

Let me know if you have any questions.

Best,
Assaad

PMCollection01.json

Eduardo Primera

unread,
Feb 10, 2023, 5:20:03 PM2/10/23
to drchro...@googlegroups.com
Hi Thanks for your reply but Im still having issue connecting from postman and Python access no authorized and when I'm trying to get the new token after the login information and  getting the following error and and not returning any token

image.png
image.png

 
image.png

PLease let me know any comment

Thanks

--
You received this message because you are subscribed to the Google Groups "DrChrono API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drchrono-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drchrono-api/22c8ec62-0e09-45cc-b713-a34efd77f379n%40googlegroups.com.

assaa...@drchrono.com

unread,
Feb 14, 2023, 12:32:47 PM2/14/23
to DrChrono API Developers
Hi Eduardo,

Can you go through my own walkthrough for authorizing via Postman?

1. Once you create your app by going to Account > API, let's head over to Postman 

  

2. Select TEST COLLECTION > Authorization tab > select the Authorization type oauth 2.0: 

  

 

  

3. We will need to fill in the needed information that is under "configure new token": 

 
 

Token Name: Can be anything. 

 
 

Callback URL: https://www.getpostman.com/oauth2/callback  (Make sure to match 'redirect uri' in the API page of Drchrono) 

  

  

  

Client id and secret found in the API page (account > API) 

  

Scope: These are a list of scopes for every endpoint. 

  

labs:read labs:write messages:read messages:write patients:read patients:summary:read patients:summary:write patients:write settings:read settings:write tasks:read tasks:write user:read user:write billing:patient-payment:read billing:patient-payment:write billing:read billing:write calendar:read calendar:write clinical:read clinical:write 

  

state: leave as is 

  

client auth: leave as is 

  

4. Select "Get New Access Token". You will be prompted to log into drchrono > then it should direct you to authorize the connection 

 
 

5. You will be directed back to Postman, and should see a screen that says you can proceed and it will provide the access and refresh token. Save the refresh token then select 'use token'. The access token will automatically be saved and shown in the "access token" field in Postman. You can see it from the screenshot provided above. 

  

6.  I have an endpoint where you can utilize the refresh token to get new access tokens since access tokens expire every 48 hours. The folder is called AUTH/Iframe > refresh token. The refresh token will remain the same and never expires unless you revoke the token or go through this Auth process again. Once you select the refresh token endpoint in my collection, select 'body' and the request body should be filled like so: 

 
 

 

  

All you need to do in this collection is to input your saved refresh token in the 'refresh_token' field and switch the client id and secret to yours. Whenever the access token expires, just hit 'send' and you will get a new access token. 

Let me know if you still run into trouble.


Best,

Assaad


Reply all
Reply to author
Forward
0 new messages