Skip to content

Get editor data for one version of a document

GET
/v1/documents/{slug}/versions/{version}/editor
curl --request GET \
--url https://api.adversarial.com/api/v1/documents/cybergov/versions/2026.9.1/editor

The 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.

slug
required
string

The document slug

Example
cybergov
version
required
string

The document version

Example
2026.9.1

Document editor data

Media typeapplication/json

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
meta
required

The meta information of the document

object
archived_date

When the organization retired this version. Only set on archived rows.

string | null format: date-time
category
required

The compliance-program section containing a document.

string
Allowed values: governance procedure policy
description
required
string
latest_version
required

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.

string
slug
required
string
state
One of:
null
title
required
string
version
required

The version this row describes.

string
version_state
required

Whether a document version is the organization’s current one, a retired one it previously used, or an in-flight adoption draft.

string
Allowed values: current archived draft
root
required

The root node of the document

object
One of:
object
node_type
required
string
Allowed values: image
url
required
string
id
string | null
toc
required
boolean
control_values
required

The organization’s stored control values — the raw control_value edits, before controls seed switch resolution.

object
key
additional properties
string
controls
required

The choice controls the template declares, with their defaults.

Array<object>

A metadata-level v2 choice control.

object
default
string | null
id
required
string
label
required
string
values
required
Array<object>

A value allowed by a v2 template control.

object
id
required
string
label
required
string
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