Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Get detailed information about a specific caption paragraph.
  • Operation ID: captions.get
  • API member path: editor.doc.captions.get(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a CaptionInfo object with the caption’s label, number, text, and instruction.

Input fields

FieldTypeRequiredDescription
targetobject(kind=“block”)yes
target.kind"block"yesConstant: "block"
target.nodeIdstringyes
target.nodeType"paragraph"yesConstant: "paragraph"

Example request

{
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "paragraph"
  }
}

Output fields

No fields.

Example response

{}

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas

{
  "additionalProperties": false,
  "properties": {
    "target": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "block"
        },
        "nodeId": {
          "type": "string"
        },
        "nodeType": {
          "const": "paragraph"
        }
      },
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ],
      "type": "object"
    }
  },
  "required": [
    "target"
  ],
  "type": "object"
}
{
  "type": "object"
}