Microweb blocks
The blocks of a microweb or of one of its pages: menu, opening hours, map, bookings, loyalty card... Creating and updating use the same fields as the block editor, with the same checks and plan limits.
GET https://neoscrew.website/api/biolink-blocks/
curl --request GET \
--url 'https://neoscrew.website/api/biolink-blocks/' \
--header 'Authorization: Bearer {api_key}'
--url 'https://neoscrew.website/api/biolink-blocks/' \
--header 'Authorization: Bearer {api_key}'
| Parameters | Detalls | Descripció |
|---|---|---|
| link_id | Optional Integer | Only the blocks of this microweb or page. |
| type | Optional String | Only the blocks of this type, for example menu or business_hours. |
| is_enabled | Optional Integer | Only enabled (1) or disabled (0) ones. |
| order_by | Optional String | What field to order the results by. Allowed values are: biolink_block_id , order , datetime , last_datetime , clicks. |
| order_type | Optional String | The ordering of the results. Allowed values are: ASC for ascending ordering, and DESC for descending ordering. |
| page | Optional Integer | The page number that you want results from. Defaults to 1. |
| results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"link_id": 1,
"type": "menu",
"location_url": null,
"settings": {
"title": "Desserts",
"items": [
{
"name": "Flan",
"description": "Homemade",
"price": "4.50",
"allergens": [
"eggs",
"milk"
]
}
],
"text_color": "#000000",
"background_color": "#ffffff"
},
"order": 0,
"clicks": 0,
"start_date": null,
"end_date": null,
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-09 16:21:39"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
}
}
GET https://neoscrew.website/api/biolink-blocks/{biolink_block_id}
curl --request GET \
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}'
{
"data": {
"id": 1,
"user_id": 1,
"link_id": 1,
"type": "menu",
"location_url": null,
"settings": {
"title": "Desserts",
"items": [
{
"name": "Flan",
"description": "Homemade",
"price": "4.50",
"allergens": [
"eggs",
"milk"
]
}
],
"text_color": "#000000",
"background_color": "#ffffff"
},
"order": 0,
"clicks": 0,
"start_date": null,
"end_date": null,
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-09 16:21:39"
}
}
A field left out takes the value the editor gives to an empty one.
POST https://neoscrew.website/api/biolink-blocks
curl --request POST \
--url 'https://neoscrew.website/api/biolink-blocks' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'link_id=1' \
--data-urlencode 'block_type=menu' \
--data-urlencode 'title=Desserts' \
--data-urlencode 'item_name[0]=Flan' \
--data-urlencode 'item_price[0]=4,50' \
--data-urlencode 'item_allergens[0][]=eggs'
--url 'https://neoscrew.website/api/biolink-blocks' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'link_id=1' \
--data-urlencode 'block_type=menu' \
--data-urlencode 'title=Desserts' \
--data-urlencode 'item_name[0]=Flan' \
--data-urlencode 'item_price[0]=4,50' \
--data-urlencode 'item_allergens[0][]=eggs'
| Parameters | Detalls | Descripció |
|---|---|---|
| link_id | Required Integer | The microweb or page the block goes in. |
| block_type | Required String | The type of block, as the type of the blocks you read. Only the types your plan includes. |
| … | Optional String | The fields of the block editor form for that type, with the same names. Lists go as item_{field}[n]: a menu dish is item_name[n], item_description[n], item_price[n] and item_allergens[n][]. Tapa, half and portion prices go as item_price_2[n] and item_price_3[n], with the column names in price_labels[]. |
{
"data": {
"id": 1
}
}
Only send what changes: fields left out keep their current value. Send
0 to turn a switch off. Sending any item_ field replaces the whole list.
POST https://neoscrew.website/api/biolink-blocks/{biolink_block_id}
curl --request POST \
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'title=Homemade desserts'
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'title=Homemade desserts'
| Parameters | Detalls | Descripció |
|---|---|---|
| is_enabled | Optional Integer | 1 to show the block, 0 to hide it. |
| order | Optional Integer | Position of the block in the microweb, from 0. |
| … | Optional String | The fields of the block editor form for that type, with the same names. Lists go as item_{field}[n]: a menu dish is item_name[n], item_description[n], item_price[n] and item_allergens[n][]. Tapa, half and portion prices go as item_price_2[n] and item_price_3[n], with the column names in price_labels[]. |
{
"data": {
"id": 1
}
}
DELETE https://neoscrew.website/api/biolink-blocks/{biolink_block_id}
curl --request DELETE \
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://neoscrew.website/api/biolink-blocks/{biolink_block_id}' \
--header 'Authorization: Bearer {api_key}'