/v0.5/users/auth/fetch-modes Request rejected

I am trying to call fetch modes api. i am getting request rejected issue.

FYR screenshot attached below,

I am passing X-CM-ID : sbx, Authorization: {{token}}

Hi @deepakmurugesan please provide us with curl for better information.

Thanks,

curl -X POST “https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes” -H “accept: /” -H “X-CM-ID: sbx” -H “Content-Type: application/json” -d “{“requestId”:“571a92c5-ba36-412e-985a-f4502f674868”,“timestamp”:“2022-07-07T07:25:26.971Z”,“query”:{“id”:“deepak001@sbx”,“purpose”:“LINK”,“requester”:{“type”:“HIP”,“id”:“test HIP”}}}”

curl -X POST “https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes” -H “accept: /” -H “X-CM-ID: sbx” -H “Authorization: token” “Content-Type: application/json” -d “{“requestId”:“571a92c5-ba36-412e-985a-f4502f674868”,“timestamp”:“2022-07-07T07:25:26.971Z”,“query”:{“id”:“deepak001@sbx”,“purpose”:“LINK”,“requester”:{“type”:“HIP”,“id”:“test HIP”}}}”

token i did not paste

@Sravani1 Any update on this

Hi @deepakmurugesan accept all the headers and try this again.

Thanks