What to use at the place of callback_url

Milestone 1 -> verification of abha address -> Scan Health Facility Qr

This API is not working, i am getting response
{
“timestamp”: “2023-11-21T06:20:21.286+0000”,
“path”: “/v3/hip/patient/profile/share”,
“status”: 404,
“error”: “Not Found”,
“message”: null,
“requestId”: “a20cf18f-1520”
}

API Information Request Response for V3

1. Profile Sharing

BASE URLs: The callback URL registered by the HRP

POST - /{callback_url}/v3/hip/patient/profile/share

curl --location ‘https://dev.abdm.gov.in/devservice/v3/hip/patient/profile/share
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE3MDA1NjA2MjEsImlhdCI6MTcwMDUzOTAyMSwianRpIjoiM2U5Yzg2ZTMtYjQxMS00OWFkLWFhNjgtZjZhYTExOWU4MTQxIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI1ZDY4MTRkNC0zZGRlLTQ1ODQtODVlNS0zZGYwODlmNzc3ZGQiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDA0MjAyIiwic2Vzc2lvbl9zdGF0ZSI6IjEyNzBhNGU3LWE5MGMtNDRjZi05ZTIxLWI0MzhjNDg2ZDY1MSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDQyMDIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDQyMDIiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjUyIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwNDIwMiIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjguNTIifQ.BUMHwpyixvsNvpUCkRPQtztyufNJJMRb6mSCw3TCnmHF-rSWJPRUqg_FyDQ58OEkADz7O1bQkHE2RiK1661tODZiIdJmCBsS_FLkudR-E7fZntQ7x6cdw-7rQBlHYMM6AL5K37z2ArRvQHpWvUY0l14GZyVKUOMQj2LkpzorWtnyFWl9rzlybCzpBbYgozJgnbXItjWBOWUXXldcU1DR-6jdzgR3g6JWAKwmD0YW1yd0QVGGkoC0BSBzd9L0CNlVYQFcEUC8npIguGmHU3boMvsSv04m3tfJTPp2mC5lMaB7EiM5CPrLRpp1kAVvPzpB06sshCWKPjt71LEnZmBvFQ’
–header ‘REQUEST_ID: 390cc34a-5fcc-44d7-a00a-5aa50930535b’
–header ‘TIMESTAMP: 2023-11-21T06:20:31.794Z’
–header ‘X_HIP_ID: SBX_004202’
–header ‘Content-Type: application/json’
–data-raw ‘{
“abhaAddress”: “91377446066518@sbx”,
“abhaNumber”: “91-3774-4606-6518”,
“name”: “Priyanshu Priyam”,
“gender”: “M - Male”,
“yearOfBirth”: 2001,
“address”: “Manjhiaon kala”,
“district”: “Garhwa”,
“state”: “Jharkhand”,
“intent”: {
“context”: 123,
“linkToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJ2YXNhbnRoYWt1bWFyLmtlc2F2”
},
“metaData”: {
“lat”: 24.5937,
“long”: 83.9629
}
}’

Hi
Try using this endpoint -
https://dev.abdm.gov.in/hiecm/api/v3/patient-share/share
https://dev.abdm.gov.in/hiecm/api/v3/patient-share/on-share

Payload - https://dev.abdm.gov.in/hiecm/api/v3/patient-share/share
Headers:


Body:

Payload - https://dev.abdm.gov.in/hiecm/api/v3/patient-share/on-share
Headers:


Body:

Hey @ayadav33,
I want to ask what is X-HIU-ID and X-AUTH-TOKEN here. X-HIU-ID is hospital id right?
And is this APIs are necessary for M1 milestone.

Hi
X-AUTH-TOKEN is a token received from this api - /v3/identity/authentication
Yes sharing of profile is a mandatory testcase, you can also use these api’s -
/v1.0/patients/profile/share
/v1.0/patients/profile/on-share