URL source element
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of element. In this case type is always url. | Required |
url | String | The URL type source. | Required |
text | String | Display text for the URL. | Required |
Usage info
The URL source element is used to display clickable URL references within a Task card block. It cannot be used within other blocks.
Examples
A URL source with text only:
{
"type": "url",
"url": "https://docs.slack.dev/",
"text": "Slack API docs"
}
A URL source with an icon:
{
"type": "url",
"url": "https://docs.slack.dev/",
"text": "Slack API docs"
}
Example within a Task card block:
{
"type": "task_card",
"task_id": "task_1",
"title": "Scientific findings",
"status": "complete",
"sources": [
{
"type": "url",
"url": "https://docs.example.com/",
"text": "Tracy's delightful docs"
},
{
"type": "url",
"url": "https://research.example.com/",
"text": "Haley's resourceful research"
}
]
}