Get the part registry
GET/v1/meta/parts
Retrieves the part registry: every part type with its capability token, interactivity, and schema, plus every server-enforced rule by name.
Behavior
- Static; it describes this API, not any chat.
- Intersect each part’s
tokenwith a chat’s announcedcapabilities(fromGET /v1/chats/{chat}) to know which part types the customer’s device can render. A composer must not offer payloads the device cannot support.
Get the part registry
curl https://messages.api.linqapp.com/v1/meta/parts \
-H "Authorization: Bearer $LINQ_AMB_API_KEY"{
"parts": [
{
"type": "text",
"capability_token": "",
"token": "",
"label": "Text",
"summary": "A plain message; `subject` renders bold.",
"min_ios": "13.0",
"min_macos": "10.15",
"device_scope": "iPhone, iPad, Mac",
"kit": "L1035",
"rules": [
"max_text_body_runes",
"text_body_bmp_only"
],
"interactive": false,
"schema": {
"title": "text",
"type": "object"
}
}
],
"rules": {
"max_text_body_runes": {
"kind": "bound",
"limit": 2000
},
"text_body_bmp_only": {
"kind": "semantic",
"statement": "must contain only Basic Multilingual Plane characters"
}
}
}Returns Examples
{
"parts": [
{
"type": "text",
"capability_token": "",
"token": "",
"label": "Text",
"summary": "A plain message; `subject` renders bold.",
"min_ios": "13.0",
"min_macos": "10.15",
"device_scope": "iPhone, iPad, Mac",
"kit": "L1035",
"rules": [
"max_text_body_runes",
"text_body_bmp_only"
],
"interactive": false,
"schema": {
"title": "text",
"type": "object"
}
}
],
"rules": {
"max_text_body_runes": {
"kind": "bound",
"limit": 2000
},
"text_body_bmp_only": {
"kind": "semantic",
"statement": "must contain only Basic Multilingual Plane characters"
}
}
}