# Get Invite

> Retrieve an invite's information by its code.

- ID: `get_invite`
- Type: Block
- Category: [Invites](https://inventor.bot/docs/reference/blocks/invites.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `invite_code` | yes | Code of the invite to retrieve. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `invite_code` | Code of the invite. |  |
| `server_id` | ID of the server for the invite. |  |
| `channel_id` | ID of the channel for the invite. |  |
| `channel_name` | Name of the channel. |  |
| `invite_creator_user_id` | User ID of the invite creator. |  |
| `invite_creator_username` | Username of the invite creator. |  |
| `approximate_member_count` | Approximate member count for the server. |  |
| `approximate_presence_count` | Approximate online member count for the server. |  |
| `expires_at_unix` | Unix timestamp when the invite expires. |  |

**Example**

```go
invite := get_invite(Args{invite_code: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Invite Code: " + invite.invite_code,
})
```