Fields

Fields are a structured data block you can use to display key-value pairs in a compact format in a card or message layout. Fields help organize information efficiently, especially in section-based layouts.

Example

Example

JSON example

{
    "content": {
        "settings": {},
        "body": [
            {
                "type": "section",
                "layout": "horizontal",
                "sections": [
                    {
                        "type": "message",
                        "text": "This is a section block with fields"
                    },
                    {
                        "type": "fields",
                        "items": [
                            {
                                "key": "This is field item label 1",
                                "value": "This is field item value",
                                "short": true
                            },
                            {
                                "key": "This is field item label 2",
                                "value": "This is field item value",
                                "short": true
                            },
                            {
                                "key": "This is field item label 3",
                                "value": "This is field item value",
                                "short": true
                            },
                            {
                                "key": "This is field item label 4",
                                "value": "This is field item value",
                                "short": true
                            }
                        ]
                    }
                ]
            }
        ]
    }
}