Bird
0
0

Which of the following is the correct JSON structure to register a webhook URL?

easy📝 Syntax Q3 of 15
Rest API - Webhooks and Events

Which of the following is the correct JSON structure to register a webhook URL?

A{"webhook": "https://example.com/webhook"}
B{"url": "https://example.com/webhook"}
C{"callback_url": "https://example.com/webhook"}
D{"endpoint": "https://example.com/webhook"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify common webhook registration key

    Most APIs use "callback_url" as the key to specify the webhook URL.
  2. Step 2: Compare other keys

    Keys like "url", "webhook", or "endpoint" are less standard or incorrect for registration payloads.
  3. Final Answer:

    {"callback_url": "https://example.com/webhook"} -> Option C
  4. Quick Check:

    Webhook URL key = callback_url [OK]
Quick Trick: Use 'callback_url' key for webhook registration JSON [OK]
Common Mistakes:
MISTAKES
  • Using 'url' instead of 'callback_url'
  • Confusing 'webhook' as key
  • Using 'endpoint' key incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes