Onboarding onto HCX Sandbox - Swasth-Digital-Health-Foundation/hcx-platform GitHub Wiki
How to initiate onboarding
To onboard into HCX, send an email to [email protected]. You can also onboard yourself on the staging environment using the Onboarding link. Please note you will need to provide relevant information while registration submission. The details of the information asked can be found here.
Once your onboarding is completed, you will receive an auto-generated email(s) on your registered email address.
- An email with a link to update your password.
- An email with the registration ID.
You will need to generate an Open Id Access Token to start using HCX APIs. Below is the process to generate the same.
How to generate an Access Token
An access token can be generated by calling the Generate Token API. Below is the sample cURL command for the same.
curl --location 'https://staging-hcx.swasth.app/auth/realms/swasth-health-claim-exchange/protocol/openid-connect/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=registry-frontend' \
--data-urlencode 'username={{provider_username}}' \
--data-urlencode 'password={{password}}' \
--data-urlencode 'grant_type=password'
A sample of the Generate token API can be found in the example postman collection in the Appendix section.