How do I get the Access Token?

Go to HealthOS dashboard -> Click on the Application for which you want to generate access token

Then click on View Credentials button on top right. Then just click on Generate Access Token button. Voila!

Alternatively, if you have your application credentials, you can retrieve “Access Token” to access  Dataset API endpoint by sending a POST  request to with the following data.


  "grant_type": "client_credentials",
  "client_id": "{{client_id}}",
  "client_secret": "{{client_secret}}",
  "scope": "public read write"


  "access_token": "749dsd8d6f7baaa595c9e2afd9a9b56df78729d2342fdf57af493a5847",
  "token_type": "bearer",
  "scope": "public read write",
  "created_at": 1487354670

Once you have the access_token, for all subsequent requests set the header as

Authorization: "Bearer access_token"

Please not the space (” “) between “Bearer” and “access_token”

Was this article helpful?

Related Articles