Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Webhook Trigger: POSTing to an external authenticated end point

Webhook Trigger: POSTing to an external authenticated end point

NileshS
Shopify Partner
7 0 0

This question has been asked before, but there is no clear solution available. Or if it was there, it is no longer available in the newer version documentation.

  • How/Where to Store Auth Credentials for calling an authenticated external REST End Point?
  • When a webhook event is triggered, how to use those Creds for calling the required end point securely?
  • Is there a pre-requisite for this use case?

Current webhooks  documentation specifies configuring only the HTTPs endpoint in the address field.

There is no option for any tokens or keys.

 

 

Reply 1 (1)
NileshS
Shopify Partner
7 0 0

Quoting your reply "When a webhook event is triggered, you can retrieve the stored credentials and use them to authenticate your API calls to the external endpoint. Ensure you're using HTTPS and following best practices for secure credential handling."

Saving Them in environment variables is the easiest way to test. But Im still unclear how to retrieve and plug them into the outbound call to external API when webhook event is triggered

 

Thanks for your detailed reply