Get editor data for one version of a document
const url = 'https://api.adversarial.com/api/v1/documents/cybergov/versions/2026.9.1/editor';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.adversarial.com/api/v1/documents/cybergov/versions/2026.9.1/editorThe editor representation carries the full option space — every switch branch and toggle, selected or not — so the organization can see and change its stance. The version resource itself renders only the selected content.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The document slug
Example
cybergovThe document version
Example
2026.9.1Responses
Section titled “Responses”Document editor data
Body of GET /documents/{slug}/versions/{version}/editor: the resolved
document plus the raw resolution inputs, so a client can re-resolve
conditional state locally after an unsaved edit instead of guessing at the
server’s precedence rules.
object
The meta information of the document
object
When the organization retired this version. Only set on archived rows.
The compliance-program section containing a document.
The edition of a document as YYYY.M.N: the year and month it was issued, then a sequence number counting editions issued in that month. Components carry no leading zeros.
The document has not been initialized yet. It is possible for the document to have details, meaning that a proposal is “open” to initialize it.
object
The initial proposal is being opened
object
The initial proposal is being opened
object
The edition of a document as YYYY.M.N: the year and month it was issued, then a sequence number counting editions issued in that month. Components carry no leading zeros.
The document has been initialized and is ready for use
object
The document has been initialized and is ready for use
object
The edition of a document as YYYY.M.N: the year and month it was issued, then a sequence number counting editions issued in that month. Components carry no leading zeros.
The version this row describes.
Whether a document version is the organization’s current one, a retired one it previously used, or an in-flight adoption draft.
The root node of the document
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A representation of a node in the document.
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
object
The vertical point an offset is measured from: top, center, or bottom.
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
A selectable branch of a v2 switch.
object
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
A representation of a node in the document.
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
A selectable branch of a v2 switch.
object
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
object
The vertical point an offset is measured from: top, center, or bottom.
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
A selectable branch of a v2 switch.
object
A representation of a node in the document.
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
object
The vertical point an offset is measured from: top, center, or bottom.
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A representation of a node in the document.
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
object
The vertical point an offset is measured from: top, center, or bottom.
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
A selectable branch of a v2 switch.
object
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A representation of a node in the document.
object
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
An opaque RGB color
object
Blue component (0-255)
Green component (0-255)
Red component (0-255)
A potentially transparent RGBA color
object
Alpha (opacity) component (0.0 = transparent, 1.0 = opaque)
Blue component (0-255)
Green component (0-255)
Red component (0-255)
object
A predefined format for a piece of text This is used to define the style and structure of a piece of text without having to specify every single property
This is useful for things like titles and headings where the style and structure is consistent across the document
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Whether this section contributes to document scoring.
Optional explanation of the section’s scoring role.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
One named branch of a selector, parsed from an option element inside
<select>.
object
The option’s content, as a whole document node — its id and its table of contents flag included.
The currently selected option, if any.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
object
object
object
The vertical point an offset is measured from: top, center, or bottom.
Every node type a template can contain, as one enum so a document is a tree of a single type.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
True when this switch only mirrors control, which another switch owns.
Edits targeting it are rejected, and it is presented read-only.
A selectable branch of a v2 switch.
object
The document-wide resolution: the explicit selection, a control-value
match, or the switch’s default, in that order. Written by resolve_v2;
None only for a switch that cannot resolve at all.
The organization’s explicit stored stance, and nothing else. Derived
resolution lands in resolved_option, so a reader can always tell a
stance the organization took from a fallback it never chose.
Id of the node that owns this switch’s control, as a jump target.
Display text for the set_in jump target.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
The stored organization override; falls back to default when unset.
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
Every node type a template can contain, as one enum so a document is a tree of a single type.
object
A column in a multi-field editable table.
object
Editor chrome for supplements attached to one section.
object
The attachment key of the section the supplements belong to, as listed by the document’s supplementable sections. Carried on the node so readers address the section without re-deriving the key from tree position.
A supplement rendered in the document editor overlay.
object
Supplement markdown, or None when access rules redact managed content.
Optional explanation supplied by a managed supplement tier.
Whether compiled readers include the supplement.
Stable UUID from the edit row’s node identifier.
Short editor-facing title.
Source of the supplement.
Whether the attachment section contributes to scoring.
object
The organization’s stored control values — the raw control_value
edits, before controls seed switch resolution.
object
The choice controls the template declares, with their defaults.
A metadata-level v2 choice control.
object
A value allowed by a v2 template control.
object
Example
{ "meta": { "category": "governance", "latest_version": "2026.9.1", "slug": "cisp", "state": { "value": "uninitialized" }, "version": "2026.9.1", "version_state": "current" }, "root": { "segments": [ { "type": "literal" } ], "style": { "color": { "Solid": { "color_space": "opaque" } }, "font": "title", "position": { "align": "left" } }, "node_type": "text" }}The organization cannot see this document version