Skip to main content

message_metadata_posted event

Message metadata was posted

Facts

Required Scopes
Compatible APIs

Usage info

This example includes both the event wrapper and the event structure for the message_metadata_posted event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "message_metadata_posted",
"app_id": "AQF4F123M",
"bot_id": "B8241P2B34D",
"user_id": "UA8829BFL",
"team_id": "T12F3JCAP",
"channel_id": "CJN879K8A",
"metadata": {
"event_type": "task_created",
"event_payload": {
"id": "TK-2132",
"summary": "New issue with the display of mobile element",
"description": "An end user has found a problem with the new mobile container for data entry. It was reproduced in the current version of IOS.",
"priority": "HIGH",
"resource_type": "TASK"
}
},
"message_ts": "1658903885.673769",
"event_ts": "1658903885.673769"
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

The message_metadata_posted event is sent when a message containing metadata is sent in Slack.

Similar to message_metadata_updated and message_metadata_deleted your app will only subscribe to the event types defined within the metadata_subscriptions key within your app's manifest file (in this example, the task_created event). For more information about this, check out the metadata documentation.