function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ryan Raymundo 1Ryan Raymundo 1 

Create API endpoint that accepts basic auth

Hi Everyone,

I have created an endpoint that handles POST requests. It works well if I'm using a bearer token. but since the design is to handle webhooks, I can only supply basic Auth. How can I accomplish this? I have tried this but I'm getting 
        "message": "INVALID_HEADER_TYPE",
        "errorCode": "INVALID_AUTH_HEADER"

Thanks in advance,
HarshHarsh (Salesforce Developers) 
Hi Riyan, 
you have asked a question related to the same topic. Please follow the question link below.
Ryan Raymundo 1Ryan Raymundo 1
Hi Harsh, Thanks for the response but it seems like I can't access the link. It says This site can’t be reached
Check if there is a typo in https.
If spelling is correct, try running Windows Network Diagnostics.
HarshHarsh (Salesforce Developers) 
Hi Ryan,
Please check with the below link 

Please close the thread by selected as Best Answer so that we can keep our community clean