Blocks

How each block is represented in the API

Below are example representations of all currently supported block types in the API.

Text

{"sentence": "A random sentence"}

Email

{"an_email": "joe@example.com"}

Number

{"a_number": 42}
{"a_link": "https://example.com"}

Image

{"some_image": "https://example.com/logo.png"}

PDF

{"a_pdf": "https://example.com/file.pdf"}

Embed

{"website": "https://example.com"}

Video

{"a_video": "https://example.com/video.mp4"}

Audio

{"a_song": "https://example.com/song.mp3"}

Binary

{"true_or_false": true}

Single Selection

{"choose_a_color": "red"}

Multiple Selection

{"choose_few_colors": ["red", "blue", "green"]}

Form

{
"form_sequence": {
"question_1": true,
"question_2": "this is a random answer",
"question_3": "option-2"
}
}

Rich Text

{"some_text": "This can be Markdown or HTML formatted depending on the block's configuration."}

Text Highlighting

{
"ner_data": {
"text": "This is a paragraph of text",
"entities": [{
"start": 5,
"end": 7,
"category": "verb"
}]
}
}