Link element
Displays a link.
| Available in | Messages, Modals, Home tab |
| Used in | Rich text section element, Rich text list element, Rich text quote element, Rich text preformatted element |
Fields
Section titled “Fields”| Field | Type | Description | Required? |
|---|---|---|---|
type |
String | The type of object; in this case, link. |
Required |
url |
String | The link’s URL. | Required |
text |
String | The text shown instead of the URL. If no text is provided, the URL is shown. | Optional |
unsafe |
Boolean | Whether the link is unsafe. | Optional |
from_llm |
Boolean | Whether the link was generated by an LLM. | Optional |
is_slack_url |
Boolean | Whether the link is a Slack URL. | Optional |
truncated |
Boolean | Whether the link has been truncated. | Optional |
style |
Object | An object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, underline and unlink. |
Optional |
Examples
Section titled “Examples”A link with text
Section titled “A link with text”
{ "blocks": [ { "type": "rich_text", "elements": [ { "type": "rich_text_section", "elements": [ { "type": "text", "text": "The signed contract is in " }, { "type": "link", "url": "https://example.com/contracts/cedar-2026", "text": "the Cedar Retail Group folder", "style": { "bold": true } }, { "type": "text", "text": "." } ] } ] } ]}