Skip to content

Docs

list_proposals

Suggestions waiting for (or decided by) a person, newest first: edits from built-in AI (adapt_content with `mode: propose`, rewrite_text with `proposeFor`) and agents (propose_edit), and new content items (propose_content, `target: piece`, no `pieceId` until accepted; then `resultPieceId`). Filter by `pieceId`, `postId` or `target`; `status` defaults to pending. Each has its author, the version it was made against, the suggested content, and `stale` (with `staleReason`) when it can no longer apply, in which case it can only be rejected.

Suggestions waiting for (or decided by) a person, newest first: edits from built-in AI (adapt_content with mode: propose, rewrite_text with proposeFor) and agents (propose_edit), and new content items (propose_content, target: piece, no pieceId until accepted; then resultPieceId). Filter by pieceId, postId or target; status defaults to pending. Each has its author, the version it was made against, the suggested content, and stale (with staleReason) when it can no longer apply, in which case it can only be rejected.

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"
    },
    "postId": {
      "format": "uuid",
      "type": "string"
    },
    "target": {
      "enum": [
        "master",
        "post",
        "piece"
      ],
      "type": "string"
    },
    "status": {
      "default": [
        "pending"
      ],
      "items": {
        "enum": [
          "pending",
          "accepted",
          "rejected"
        ],
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "limit": {
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "proposals": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "type": "string"
          },
          "pieceId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "target": {
            "enum": [
              "master",
              "post",
              "piece"
            ],
            "type": "string"
          },
          "postId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "channelAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "format": {
            "anyOf": [
              {
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "baseVersion": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "content": {
            "additionalProperties": false,
            "properties": {
              "text": {
                "type": "string"
              },
              "segments": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "media": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "mediaAssetId": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "altText": {
                            "maxLength": 2000,
                            "type": "string"
                          }
                        },
                        "required": [
                          "mediaAssetId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "text",
                    "media"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "type": "string"
              },
              "plannedFor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "plannedTime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "campaignLabels": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "targets": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "channelAccountId": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "format": {
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "channelAccountId"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "sources": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "sourceId": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "mediaAssetId": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "passage": {
                      "additionalProperties": false,
                      "properties": {
                        "start": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "end": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "unit": {
                          "enum": [
                            "chars",
                            "seconds"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "start",
                        "end"
                      ],
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "origin": {
            "enum": [
              "adapt_piece",
              "rewrite_text",
              "agent",
              "member",
              "ai_agent"
            ],
            "type": "string"
          },
          "aiRunId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "creditsSpent": {
            "minimum": 0,
            "type": "integer"
          },
          "status": {
            "enum": [
              "pending",
              "accepted",
              "rejected"
            ],
            "type": "string"
          },
          "stale": {
            "type": "boolean"
          },
          "staleReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentVersion": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "author": {
            "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"
          },
          "decidedBy": {
            "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"
              }
            ]
          },
          "decidedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "decisionNote": {
            "type": [
              "string",
              "null"
            ]
          },
          "resultVersion": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "resultPieceId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "pieceId",
          "target",
          "postId",
          "channelAccountId",
          "format",
          "baseVersion",
          "content",
          "origin",
          "aiRunId",
          "note",
          "creditsSpent",
          "status",
          "stale",
          "staleReason",
          "currentVersion",
          "author",
          "decidedBy",
          "decidedAt",
          "decisionNote",
          "resultVersion",
          "resultPieceId",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "proposals"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "List suggestions"
}