Below are example representations of all currently supported block types in the API.
Copy {"sentence": "A random sentence"}
Copy {"an_email": "joe@example.com"}
Copy {"a_link": "https://example.com"}
Copy {"some_image": "https://example.com/logo.png"}
Copy {"a_pdf": "https://example.com/file.pdf"}
Copy {"website": "https://example.com"}
Copy {"a_video": "https://example.com/video.mp4"}
Copy {"a_song": "https://example.com/song.mp3"}
Copy {"choose_a_color": "red"}
Copy {"choose_few_colors": ["red", "blue", "green"]}
Copy {
"form_sequence": {
"question_1": true,
"question_2": "this is a random answer",
"question_3": "option-2"
}
}
Copy {
"some_text": "This can be **Markdown** or <b>HTML</b> formatted depending on the block's configuration."
}
Copy {
"ner_data": {
"text": "This is a paragraph of text",
"entities": [{
"start": 5,
"end": 7,
"category": "verb"
}]
}
}
Copy {
"bounding_boxes_id": {
"image": "https://i2.wp.com/oohtoday.com/wp-content/uploads/2018/08/formetco-photo-digital-unit-in-canada.jpg?fit=1995%2C1125&ssl=1",
"objects": [
{
"w": 0.274, // 27.4%
"h": 0.2955, // 29.55%
"y": 0.1051, // 10.51%
"x": 0.2067, // 20.67%
"category": "billboard"
},
{
"w": 0.2244,
"h": 0.2585,
"y": 0.5852,
"x": 0.6571,
"category": "vehicle"
}
]
}
}
Copy {
"sentences": [
"Foo",
"Bar"
]
}