300-835 · Question #83
A Webex Teams robot receives a Webhook payload, which notifies the bot that a message was created in a space. Which two API requests must be issued by the bot to answer the author of the message?…
The correct answer is A. POST /v1/messages C. GET /v1/webhooks/{webhookId}. There appears to be an error in the stated correct answer. Based on how the Webex API actually works, the correct answers are A and B, not A and C. Here's why: When a webhook fires, the payload contains only metadata (the messageId) - not the message content or sender details…
Question
Options
- APOST /v1/messages
- BGET /v1/messages/{messageId}
- CGET /v1/webhooks/{webhookId}
- DPUT /v1/messages/{messageId}
- EPOST /v1/webhooks
How the community answered
(55 responses)- A75% (41)
- B7% (4)
- D15% (8)
- E4% (2)
Explanation
There appears to be an error in the stated correct answer. Based on how the Webex API actually works, the correct answers are A and B, not A and C. Here's why:
When a webhook fires, the payload contains only metadata (the messageId) - not the message content or sender details. The bot must first call B: GET /v1/messages/{messageId} to retrieve the actual message text and the personEmail/personId of the author. Only after fetching that data can the bot call A: POST /v1/messages to send a reply back to the space or directly to the author.
Why the distractors are wrong:
- C (
GET /v1/webhooks/{webhookId}) retrieves webhook configuration details - it tells you nothing about the message or its author and plays no role in replying. - D (
PUT /v1/messages/{messageId}) edits an existing message; it cannot send a new reply. - E (
POST /v1/webhooks) creates a new webhook subscription - a setup step done once beforehand, not at reply time.
Memory tip: Think of it as a two-step "read then write" flow - GET the message to know what was said and who said it, then POST a message to reply. Any answer involving webhooks (/v1/webhooks) is a setup concern, not a runtime concern.
Note: The stated answer of A, C appears incorrect. If this question appears on a Cisco exam verbatim with answer C listed as correct, flag it - the standard Webex bot flow requires
GET /v1/messages/{messageId}(option B), not the webhook lookup.
Topics
Community Discussion
No community discussion yet for this question.