Menu

Which webhook would be used for Messages and Dispatch APIs?


Question

Which webhook would be used for Messages and Dispatch APIs?

Applies To

  • Messages API
  • Dispatch API
  • Webhook URL
  • Authentication

Answer

For your Messages API or Dispatch API outbound requests, you can either use Base64 or JWTs for authentication. The authentication type you use in your API request determines what webhook is used by our platform to send message status updates.

  • If you use JWT, then the webhook used will be the Status URL webhook set on the Vonage API Application you utilized to create your JWT.
  • If you use Base Auth, then the webhook used will be the one set on your Vonage API account on the dashboard.

Screenshot_2021-11-26_at_12.11.14_PM.png

Inbound messages using the Messages API would use the Inbound URL webhook based on the following scenarios:

  • When chat app channels (WhatsApp/ Facebook Messenger/ Viber) or Vonage Virtual Numbers (for SMS via Messages API) are linked with the Vonage API Application, the inbound webhook defined in the application would be used to receive the messages.
  • Otherwise, the inbound webhook set on the Vonage API account dashboard would be used.
Was this article helpful?
3 out of 3 found this helpful
Follow
Have more questions? Submit a request