How to fetch X-token value in account/phr-linked api

I am using below api to link ABHA number to address.
/v2/account/phr-linked

However I do not know How will I fetch X-Token value.

Could you please guide me on this. Please tell me the baseurl and sequence of api also in order to link the ABHA number to address.

Thanks,
Lokesh

@lokesh have mentioned in email

I am facing the same issue i am passing the X-token and Authorization token but still getting 401 while linking the ABHA number to Address

for X-token via Aadhaar otp i am using this URL - https://healthidsbx.abdm.gov.in/api/v1/auth/init
after verifying the OTP by this URL : https://healthidsbx.abdm.gov.in/api/v1/auth/confirmWithAadhaarOtp

i am getting token

please help me…

Hi @zafarkhan,
I did not integrate this api. If you go through the M1 test cases, you’ll see that the NHA team hasn’t mentioned this endpoint.

Regards,
Lokesh

Hi,
X-token is fetched after completing creation flow. You can make use of that token for linking