API reference / Docs
One version of a doc
One version of a doc with its text and properties, and the version before it, to see what it changed.
/api/v1/docs/{slug}/versions/{version}Other ways to call it
troopy docs versiontroopy_get_doc_versionPath parameters
slug*stringThe doc's id in the workspace, like acme-ltd
At most 80 characters
version*integerThe version, from the doc's history
At least 1
Response
200 · application/jsondata*object11 properties
version*integertitle*stringkind*enum<string> | nulldocbriefarticlepolicydecisionprojecttopicpersoncompanyproductinterviewresearch
by*object5 properties
type*enum<string>personagentapi
id*stringname*stringviastring | nullapi: the name of the API key or the app
runstring | nullagent: the run of the teammate that wrote it
editedAt*stringWhen its text was last saved
name*string | nullA person's name for it. A named version stays in the history for good
restoredFrom*integer | nullThe version that a restore brought back, when it is a restore
current*booleanIt is the doc as it is now
body*stringproperties*array<object>The values that it had of the properties that its collection has now
5 properties
id*stringThe id of the property: a write sends its value by this id
name*stringtype*enum<string>textnumberdateselectmulti_selecturlcheckbox
value*string | number | boolean | array<string> | nullThe value as it is kept: a select keeps the id of its option
text*stringThe value as people read it: the name of an option, a date, Yes
before*object | nullThe version before it; null for the first
4 properties
version*integertitle*stringbody*stringproperties*array<object>5 properties
id*stringThe id of the property: a write sends its value by this id
name*stringtype*enum<string>textnumberdateselectmulti_selecturlcheckbox
value*string | number | boolean | array<string> | nullThe value as it is kept: a select keeps the id of its option
text*stringThe value as people read it: the name of an option, a date, Yes