# Get Interaction Message Data

> Get message, channel, and server data from an interaction response.

- ID: `get_interaction_message_data`
- Type: Block
- Category: [Interactions](https://inventor.bot/docs/reference/blocks/interactions.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `interaction_token` | yes | Token/secret of the interaction to inspect. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `message_id` | ID of the interaction response message. | e.g. `"123456789012345678"` |
| `channel_id` | ID of the channel containing the interaction response message. | e.g. `"123456789012345678"` |
| `server_id` | ID of the server containing the interaction response message. Empty in DMs. | e.g. `"123456789012345678"` |

**Example**

```go
interactionMessageData := get_interaction_message_data(Args{interaction_token: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + interactionMessageData.message_id,
})
```