# Context block

Displays small, secondary text and images — who, when, where — under other content.

| | |
|---|---|
| **Type** | `context` |
| **Available in** | Messages, Modals, Home tab |
| **Compatible block elements** | [Image element](https://workstation.repzo.com/docs/developers/block-kit/elements/image-element) |

## Fields

| Field | Type | Description | Required? |
|---|---|---|---|
| `type` | String | The type of block. For a context block, `type` is always `context`. | Required |
| `elements` | Object[] | An array of [image elements](https://workstation.repzo.com/docs/developers/block-kit/elements/image-element) and [text objects](https://workstation.repzo.com/docs/developers/block-kit/objects/text-object). Maximum of 10 items. | Required |
| `block_id` | String | A unique identifier for the block. Maximum length is 255 characters. It must be unique within the message or view — a duplicate is replaced and reported as a warning. | Optional |

## Examples

### Ticket details

```json
{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "*#4821* Card reader not connecting after update"
      }
    },
    {
      "type": "context",
      "elements": [
        {
          "type": "image",
          "image_url": "https://picsum.photos/id/20/64/64",
          "alt_text": "Customer portal"
        },
        {
          "type": "mrkdwn",
          "text": "Opened via *Customer portal*"
        },
        {
          "type": "mrkdwn",
          "text": "Priority: *High*"
        },
        {
          "type": "plain_text",
          "text": "Updated 5 minutes ago"
        }
      ]
    }
  ]
}
```

## Related

- [Blocks](https://workstation.repzo.com/docs/developers/block-kit/blocks)
- [Block Kit overview](https://workstation.repzo.com/docs/developers/block-kit)
