---
updatedAt: 2026-08-11T08:27:56.000Z
agentTools:
  projectIndex: https://developer.joinblink.com/llms.txt
---

# CardKit

CardKit is a JSON structure used to construct the cards that are shown in the feed for each feed event. A CardKit JSON string is sent as the 'body' field when sending or editing feed events via the API.

## Structure of a Card

A CardKit card has 2 base fields. `ribbon_color` and `sections`.

`sections` is an array of CardKit section objects.

`ribbon_color` is an optional hex code color string which will be used to render a ribbon of that color on the left side of the card.

An example of a complete CardKit card JSON, and the card it renders in the feed, is shown below.

```json
{  
   "ribbon_color":"#fa5655",
   "sections":[  
      {  
         "type":"header",
         "title":"Main API Service - Build Failed",
         "icon_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/cardkit/iconography/Code.png"
      },
      {  
         "type":"text",
         "value":"2/32 Tests Failed"
      },
      {  
         "type":"labelled_text",
         "label":"Time Taken",
         "value":"12m 23s",
         "icon_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/cardkit/iconography/Clock.png"
      },
      {  
         "type":"buttons",
         "data":[  
            {  
               "label":"View",
               "client_action":"blink:link?url=aHR0cHM6Ly9qb2luYmxpbmsuY29t&action=open"
            },
            {  
               "label":"Restart",
               "client_action":"blink:post?url=L2Nvbm5lY3Rvci9sLTZjZDdhMDkyLWQ4NDQtNGUzMi1hY2FmLTc4M2I3ODRhYzYyMy9wZXJmb3JtLWJ1aWxkLWFjdGlvbg==&body=eyJjb21tYW5kIjoicmVzdGFydCIsInVzZXIiOiJqb2UuYmxvZ2dzIiwiYnVpbGRfaWQiOiJhZDNlYjMxMmNmIn0="
            }
         ]
      }
   ]
}
```

![](https://files.readme.io/069c6aa-Screenshot_2019-02-28_at_13.49.51.png "Screenshot 2019-02-28 at 13.49.51.png")

## CardKit Sections

Each CardKit section is a JSON object. Sections will be rendered in the order they appear in the `sections` array in the CardKit JSON.

Every section must include a `type` field to denote what type of section it is.

Each section below includes a table of fields, example JSON and an image of how the card will look when rendered in the feed.

## - Header

`"type": "header"`

| Field     | Type   | Required |
| :-------- | :----- | :------- |
| title     | string | **Yes**  |
| icon\_url | string | No       |

```json
{  
   "type":"header",
   "title":"Hello World",
   "icon_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/cardkit/iconography/Globe.png"
}
```

![](https://files.readme.io/a26bd4f-Screenshot_2019-02-28_at_14.04.26.png "Screenshot 2019-02-28 at 14.04.26.png")

## - Text

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/f108b55f125c51d7d4ec29ed3dcec510bf22e5ed8f228bd17c98e6ca55f4d253-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/ce974bedb3ea77a58e5199fd97accb5a762525b1b33fc2f19183801546c853e7-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

`"type":"text"`

| Field        | Type    | Required             |
| :----------- | :------ | :------------------- |
| value        | string  | **Yes**              |
| is\_markdown | boolean | No (default `false`) |

```json
{  
   "type":"text",
   "value":"Text sections are great for longer bits of text. They can even include **markdown** if you specify `is_markdown` as true in the section's JSON.",
   "is_markdown":true
}
```

![](https://files.readme.io/d483713-Screenshot_2019-02-28_at_14.19.20.png "Screenshot 2019-02-28 at 14.19.20.png")

### @ mentions

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/649d40bf5854a3215097e51d961751a5de0ebf3507db6368c6ad3d2004bf299a-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

Mentions can be created by specifying the mentioned user's name and UUID as follows:

```
{
   "type": "text",
   "value": "*Approval requested* by @[Felicity Christodolou](user:u-27ff9058-61b8-449e-bf90-5861b8349e2f)",
   "is_markdown": true
}
```

<br />

## - Labelled Text

`"type": "labelled_text"`

| Field        | Type    | Required             |
| :----------- | :------ | :------------------- |
| label        | string  | **Yes**              |
| value        | string  | **Yes**              |
| is\_markdown | boolean | No (default `false`) |
| icon\_url    | string  | No                   |

```json
{  
   "type":"labelled_text",
   "label":"Comment",
   "value":"Some text. *Markdown* is supported in the value field if is_markdown is set to true.",
   "is_markdown":true,
   "icon_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/cardkit/iconography/Chat.png"
}
```

![](https://files.readme.io/da4aba9-Screenshot_2019-02-28_at_14.35.48.png "Screenshot 2019-02-28 at 14.35.48.png")

## - Image

`"type": "image"`

| Field      | Type                                   | Required             |
| :--------- | :------------------------------------- | :------------------- |
| image\_url | string                                 | **Yes**              |
| fit\_image | boolean                                | No (default `false`) |
| width      | number (width in pixels of the image)  | No\*                 |
| height     | number (height in pixels of the image) | No\*                 |

The combination of `fit_image`, `width` and `height` determines how the image is displayed. Both `width` and `height` must be set to change how the image is displayed. If `width` and `height` are set, the value of `fit_image` does not affect how the image is displayed. Examples of how an image is displayed with different values of these parameters are below.

```json
{  
   "type":"image",
   "image_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/api-docs/books-business-computer-459654.jpg",
   "width":5184,
   "height":3456
}
```

![](https://files.readme.io/e806f1c-books-business-computer-459654.jpg "books-business-computer-459654.jpg")

```json
{  
   "type":"image",
   "image_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/api-docs/books-business-computer-459654.jpg"
}
```

![](https://files.readme.io/cc9aa6e-Screenshot_2019-02-28_at_15.02.12.png "Screenshot 2019-02-28 at 15.02.12.png")

```json
{  
   "type":"image",
   "image_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/api-docs/books-business-computer-459654.jpg",
   "fit_image":true
}
```

![](https://files.readme.io/a67f3c5-Screenshot_2019-02-28_at_15.03.22.png "Screenshot 2019-02-28 at 15.03.22.png")

<br />

## - Image gallery

`"type": "gallery"`

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/b1806d861b133e9055e0c5ddc15114fbd898775d1e9784f29a68b750bff22e9b-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

<br />

<br />

```Text json
{
  "type": "gallery",
  "data": [
    {
      "type": "gallery_image",
     	"image_url": "https://api.joinblink.com/file/a-0192904e-0000-0000-0000-2085c6ba25ba"
    },{
      "type": "gallery_image",
      "image_url": "https://api.joinblink.com/file/a-0192904e-0000-0000-0000-3facdfeab72b"
   	}
  ]
}
```

<br />

## - YouTube

`"type": "youtube"`

| Field     | Type   | Required |
| :-------- | :----- | :------- |
| video\_id | string | **Yes**  |

You can find the video id for a YouTube video in the browser URL bar for the video:

![](https://files.readme.io/4293fd5-Screenshot_2019-03-01_at_14.31.55.png "Screenshot 2019-03-01 at 14.31.55.png")

```json
{  
   "type":"youtube",
   "video_id":"nVxyqSQOD2s"
}
```

<br />

![](https://files.readme.io/fd62dfeb189aa346ab19fc348f8a8d9b72def0beb45e51cbc14f5d865a5439be-image.png)

## - Link

`"type": "link"`

| Field            | Type                              | Required            |
| :--------------- | :-------------------------------- | :------------------ |
| title            | string                            | **Yes**             |
| url              | string                            | **Yes**             |
| subtite          | string                            | No                  |
| image\_url       | string                            | No                  |
| image\_placement | string (`left`, `right` or `top`) | No (Default `left`) |

```json
{  
   "type":"link",
   "title":"Blink",
   "url":"https://joinblink.com",
   "subtitle":"Reach and engage your entire workforce. Improve productivity. Put everything in one place. Simple to set up and free to try.",
   "image_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/api-docs/white-gradient-logo.png",
   "image_placement":"left"
}
```

`left` image placement

![](https://files.readme.io/7ac8f5eb19027aaf24b84984d44aa606a1714e0e74e08bf12bdcad2373e18e70-image.png)

`right` image placement

![](https://files.readme.io/80143f6ac257abc30580ab22a9d72263dbd01cd4417f363ba4ca86e0b36b0afe-image.png)

`top` image placement

![](https://files.readme.io/a8fdfcdbbeda6ce47be64399d28f3292680fbdc0a2d710e831a11f9441dc54fd-image.png)

## - Buttons

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/be5da1a0b9a84e96837a02eeff8eb5e51910715fa95c5ad66f95990ea73eb1f4-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/09a520984b72ca3db5e4153c35d9e18e0742ce0e6743ed3cd9481dc5a921e643-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

`"type": "buttons"`

| Field | Type          | Required |
| :---- | :------------ | :------- |
| data  | Array<Button> | **Yes**  |

A button section can have one or more buttons in the `data` field. The model of a button is as follows:

| Field          | Type                                                                                          | Required             |
| :------------- | :-------------------------------------------------------------------------------------------- | :------------------- |
| label          | string                                                                                        | **Yes**              |
| client\_action | string ([Find out more about client actions](https://blink.readme.io/v2/docs/client-actions)) | **Yes**              |
| icon\_url      | string                                                                                        | No                   |
| disabled       | boolean                                                                                       | No (default `false`) |

```json
{  
   "type":"buttons",
   "data":[  
      {  
         "label":"Open",
         "client_action":"blink:link?url=aHR0cHM6Ly9qb2luYmxpbmsuY29t&action=open",
         "icon_url":"https://s3-eu-west-1.amazonaws.com/blink-public-assets/cardkit/iconography/Launch.png",
         "disabled":"true"
      },
      {  
         "label":"Restart",
         "client_action":"blink:post?url=L2Nvbm5lY3Rvci9sLTZjZDdhMDkyLWQ4NDQtNGUzMi1hY2FmLTc4M2I3ODRhYzYyMy9wZXJmb3JtLWJ1aWxkLWFjdGlvbg==&body=eyJjb21tYW5kIjoicmVzdGFydCIsInVzZXIiOiJqb2UuYmxvZ2dzIiwiYnVpbGRfaWQiOiJhZDNlYjMxMmNmIn0="
      }
   ]
}
```

![](https://files.readme.io/0a55799-Screenshot_2019-03-01_at_15.37.10.png "Screenshot 2019-03-01 at 15.37.10.png")

## - Attachments

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/fcf436491ad5314d07edff5984dfae8325c71bbda9ddbc1906b4296c5e07302c-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

`"type":"attachment"`

| Field         | Type                   | Required |
| :------------ | :--------------------- | :------- |
| file\_name    | string                 | **Yes**  |
| file\_ext     | string                 | **Yes**  |
| file\_size    | number (size in bytes) | **Yes**  |
| open\_url     | string                 | Yes\*    |
| download\_url | string                 | Yes\*    |

\*At least one of open\_url or download\_url should be set.

```json
{  
   "type":"attachment",
   "file_name":"Company Results 2018/19",
   "file_ext":"pdf",
   "file_size":21479,
   "download_url":"https://api.joinblink.com/file/a-08801a93-adca-4902-bfd7-57334aaa2f1a"
}
```

## - Event

`"type": "event"`

| Field    | Type                                    | Required             |
| :------- | :-------------------------------------- | :------------------- |
| title    | string                                  | **Yes**              |
| start    | string (e.g `2019-03-02T11:31:21.000Z`) | **Yes**              |
| end      | string (e.g `2019-03-02T11:31:21.000Z`) | No                   |
| subtitle | string                                  | No                   |
| all\_day | boolean                                 | No (default `false`) |

```json
{  
   "type":"event",
   "title":"Sales Call",
   "start":"2019-03-02T11:30:00.000Z",
   "end":"2019-03-02T12:00:00.000Z",
   "subtitle":"Discussion with Acme Corp. about their Blink rollout.",
   "all_day":false
}
```

![](https://files.readme.io/dc9382c-Screenshot_2019-03-04_at_11.54.27.png "Screenshot 2019-03-04 at 11.54.27.png")

## - Horizontal Bar Chart Section

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/9d7492d0907729bbbc0e709ab727bca32b4afed80b07c0e15a051618104bd737-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "350px"
    }
  ]
}
[/block]

`"type": "horizontal_bar_chart"`

| Field             | Type       | Required |
| :---------------- | :--------- | :------- |
| total\_raw\_value | number     | **Yes**  |
| data              | Array<Bar> | **Yes**  |

A horizontal bar chart section can have one or more bars in the `data` field. The model of a bar is as follows:

| Field          | Type   | Required |
| :------------- | :----- | :------- |
| raw\_value     | number | **Yes**  |
| display\_value | string | **Yes**  |
| name           | string | **Yes**  |

```json
{  
   "type":"horizontal_bar_chart",
   "total_raw_value":12000,
   "data":[  
      {  
         "raw_value":5986,
         "display_value":"£5,986",
         "name":"Unit A"
      },
      {  
         "raw_value":2384,
         "display_value":"£2,384",
         "name":"Unit B"
      },
      {  
         "raw_value":3630,
         "display_value":"£3,630",
         "name":"Unit C"
      }
   ]
}
```