Trying to log request from webhook post

Posted 7 months ago by cfprotools

I'm setting up a Laravel app that may receive webhooks from a 3rd party service. I want to use the auth:api for authentication by passing the api_token value for the user. When testing using PostMan everything is working properly, but when receiving the same request from the 3rd party service the api_token isn't working and a redirect is returned.

I'm trying to troubleshoot this by logging in the incoming request from the 3rd party service. Where should I add the logging to figure out why the authentication is not working.

I'm guessing this might have something to do with the 3rd party service not passing accept = application/json , but I want to confirm that. If that's the case, I have no control over the request, so need to be able to handle it on my end.

Please sign in or create an account to participate in this conversation.