-
Notifications
You must be signed in to change notification settings - Fork 13
Onboarding onto HCX Sandbox
saurabh-singh-17 edited this page Jul 4, 2023
·
4 revisions
To onboard into HCX, send an email to hcx@swasthapp.org. 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.
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.