Get AI card details
GET/openapi/2026-01/themes/edit-sessions/:oseid/gen-blocks
Get an AI card's file info and its usage in the current session (whether it is saved, how many
times it is used, etc.); pass with_content=true to include the card's source code.
Request
Path Parameters
Edit session ID
Query Parameters
The card_type (blocks/ + file name without extension), e.g. blocks/gen_1a0d523
When true, the response additionally carries the card source in doc.content
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
error code
error message
data object
doc object
File attributes of the card
Doc id (uuid) of the card file
File directory, always blocks; card_type = type + / + location without extension
File name, e.g. gen_1a0d523.liquid
MD5 of the current content (edit-session view)
Card liquid source; only returned when with_content=true
Created at
Updated at: when the current content was last modified
Whether the card is already in the draft (matched by location, content not compared)
Number of instance references across the theme
Reference detail keyed by container: { <container location without extension>: [paths...] }.
Paths use the arrangement API's target syntax and always land on a blocks-array index,
e.g. 1787800762db788e94.blocks.0 or sections.1787800762db788e94.blocks.0
{
"code": "string",
"message": "string",
"data": {
"doc": {
"id": "string",
"type": "string",
"location": "string",
"hash": "string",
"content": "string",
"created_at": "string",
"updated_at": "string"
},
"saved": true,
"ref_count": 0,
"instances": {}
}
}