malte.huener
malte.huener5mo ago

How to add authentication on api call trigger

Hi there.. I am making my first steps with Buildship and don't know, how to add an authentication on the API Call trigger. For exmaple: Allow only webhooks to call the trigger when the correct bearer token is send. How do I do that?
Solution:
Hey @malte.huener, you can refer to this documentation - https://docs.buildship.com/tutorials/secure-api. Also, @Your Majesty mentioned right. Yes you can use authorization header to the REST API Call - https://docs.buildship.com/basics/ship-an-api...
Jump to solution
3 Replies
Your Majesty
Your Majesty5mo ago
Use the get request headers node to check for that particular bearer token header if it exists and proceed accordingly
malte.huener
malte.huener5mo ago
Same option when I switch to GET.. Nevertheless I need a POST endpoint for facebook webhook, they only accept POST endpoints.. Hi @Your Majesty Now i got it.. But i encouter still an error while trying to check the "hub.verify_token". Can you tell me how to add that field in the editor? see picture.. Thanks in advance!
Solution
Gaurav Chadha
Gaurav Chadha5mo ago
Hey @malte.huener, you can refer to this documentation - https://docs.buildship.com/tutorials/secure-api. Also, @Your Majesty mentioned right. Yes you can use authorization header to the REST API Call - https://docs.buildship.com/basics/ship-an-api