---
schema_version: "1"
id: e8ea96281c02d7634b899b59c64ecc25c37317dd562fb5082d1471bec3d5214e
title: ConnectApi.HashtagSegmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_hashtag.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_hashtag.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6030836f058db7726e9668c1972d439e5b257e9a1eacaf3dbf0b9bfc9bca0a92
description: Include a hashtag in a feed item or comment.
---
# ConnectApi.HashtagSegmentInput

Include a hashtag in a feed item or comment.

Subclass of [ConnectApi.MessageSegmentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_messageSegmentInput.htm "Used to add rich message segments to feed items and comments.").

| Property | Type | Description | Available Version |
| --- | --- | --- | --- |
| tag | String | Text of the hash tag without the # (hash tag) prefix. Closing square brackets ( \] ) are not supported in hash tag text. If the text contains a closing square bracket ( \] ), the hash tag ends at the bracket. | 28.0 |

#### See Also

- [ConnectApi.MessageBodyInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_msgBody.htm "Add rich messages to feed items and comments.")