< HTTP/1.1 405 Method Not Allowed Error

122 views
Skip to first unread message

Rehan Husain

unread,
Sep 1, 2022, 3:25:54 PM9/1/22
to Data at the Point of Care (DPC) Community
curl.exe -v "https://sandbox.dpc.cms.gov/api/v1/Token/auth"
*   Trying 23.77.202.66:443...
* Connected to sandbox.dpc.cms.gov (23.77.202.66) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* ALPN: server accepted http/1.1
> GET /api/v1/Token/auth HTTP/1.1
> Host: sandbox.dpc.cms.gov
> User-Agent: curl/7.83.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 405 Method Not Allowed
< Content-Type: application/json
< Content-Length: 52
< Allow: POST,OPTIONS
< X-Request-Id: 4f7e1bc9-88e8-47b3-bc3f-0ac832657303
< Date: Thu, 01 Sep 2022 19:19:56 GMT
< Connection: keep-alive
< Strict-Transport-Security: max-age=86400
<
{"code":405,"message":"HTTP 405 Method Not Allowed"}* Connection #0 to host sandbox.dpc.cms.gov left intact

Please advise

Data at the Point of Care (DPC) Community

unread,
Sep 6, 2022, 6:50:16 PM9/6/22
to Data at the Point of Care (DPC) Community

Hi Resan,

Thanks for reaching out! From the code sample you sent, it looks like you’re trying to hit the auth endpoint using a GET HTTP method. As indicated in the error message below, you need to use a POST HTTP method.

< HTTP/1.1 405 Method Not Allowed

and

< Allow: POST,OPTIONS

For more information, please visit the DPC documentation page at https://dpc.cms.gov/docsV1#obtain-an-access_token.

We hope this information helps, please let us know if you have further questions.

Best,

The DPC Team

joey lipoff

unread,
Sep 16, 2022, 1:40:15 PM9/16/22
to Data at the Point of Care (DPC) Community
How do you do this because I am stuck on this step as well.
Reply all
Reply to author
Forward
0 new messages