Show answerHide answer
Correct answer: A A new message posted in a channel the app is part of
Explanation
Explanation:The Events API delivers notifications (events) to your app when activity happens in Slack that your app has subscribed to. A new message posted in a channel the app is part of is a classic example — the message.channels event fires when a message is posted in a public channel the app is a member of. Other common events include app_mention (when the app is @mentioned), message.im (DMs to the app), reaction_added (a reaction added to a message), member_joined_channel, file_shared, and app_home_opened.
To receive events, your app subscribes to specific event types, and Slack sends an HTTP POST to your Request URL for each occurrence. Your app must acknowledge within 3 seconds and can process the payload. Events are tied to Slack-side activity, so only relevant, subscribed Slack actions trigger notifications.
✅ A. A new message posted in a channel the app is part of – This triggers the message.channels event via the Events API.
❌ Why Other Options Are Incorrect:
B. A user's local clock changing – A user's device clock is unrelated to Slack; the Events API only reports Slack activity, not local device state.
C. A browser tab switch – Switching browser tabs is a client-side action and does not generate a Slack event.
D. A workspace's billing renewal – Billing events are not delivered through the Events API (billing is managed outside app event subscriptions).
📚 References:
Slack API Docs – Events API – Explains that Slack activity (e.g., messages, mentions, reactions) triggers event notifications to subscribed apps.
Slack API Docs – message.channels event – Documents the event fired when a message is posted in a public channel the app is in.