Get a Specific Block

GET /api/blocks/{block_id}

This endpoint allows you to retrieve the full details of a specific block by its unique identifier.

Request Example

GET /api/blocks/38
Success Response: If the request is successful, you'll receive HTTP/1.1 200 OK and a JSON response with the block details.

Response Format

{
  "block_id": "38",
  "type": "template",
  "properties": {
    "template": "blocks/static_templates/404.tpl"
  },
  "company_id": "1",
  "lang_code": "en",
  "name": "404",
  "content": ""
}

Response Fields

Field Type Description
block_id string The unique identifier of the block
type string The type of block (e.g., "template", "html", "menu")
properties object Additional properties specific to the block type
company_id string The ID of the company that owns the block
lang_code string The language code for the block content (e.g., "en" for English)
name string The name of the block
content string The content of the block (may be empty for certain block types)
Tip: Block IDs are unique within your store. You can reference these IDs when working with layouts and building your store's interface.