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.
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.
Articles in this section
- What is the Messages API sandbox rate limit?
- Why do I receive pricing on all outbound Whatsapp messages that are part of a Conversation?
- Why am I getting Unsupported Type Messages API callbacks?
- What do are the technical requirements needed to implement the Messages API?
- Which IP addresses should I allow for the Vonage Messages and Dispatch APIs?
- How long does Vonage retry inbound messages for the SMS, Messages and Dispatch APIs?
- Which webhook would be used for Messages and Dispatch APIs?