Docs
get_history
Read the version history of a content item's original draft and posts, newest first. Every saved change is a version with a full snapshot (master: text and media; post: format, segments and settings) and who made it (a person or an agent). Filter with `postId` for one post, or `target: master` for the original draft. To restore an old version, write its content back with update_original or update_post.
Read the version history of a content item's original draft and posts, newest first. Every saved change is a version with a full snapshot (master: text and media; post: format, segments and settings) and who made it (a person or an agent). Filter with postId for one post, or target: master for the original draft. To restore an old version, write its content back with update_original or update_post.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"target": {
"enum": [
"master",
"post"
],
"type": "string"
},
"postId": {
"format": "uuid",
"type": "string"
},
"limit": {
"default": 50,
"maximum": 200,
"minimum": 1,
"type": "integer"
}
},
"required": [
"workspaceId",
"pieceId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"versions": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"target": {
"enum": [
"master",
"post"
],
"type": "string"
},
"postId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"version": {
"minimum": 1,
"type": "integer"
},
"content": {
"type": "object"
},
"createdByAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdByAgentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"author": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"member",
"guest",
"agent",
"system"
],
"type": "string"
},
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"agentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"guestId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"accountId",
"agentClientId",
"guestId",
"name"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workspaceId",
"pieceId",
"target",
"postId",
"version",
"content",
"createdByAccountId",
"createdByAgentClientId",
"createdAt",
"author"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"versions"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Get version history"
}