Docs
propose_content
Suggest a new content item for a person to accept instead of creating it: `title`, `note` (the angle), `plannedFor`/`plannedTime` (a planning aid, as create_content), `campaignLabels`, `targets` (channel accounts, optional format), `sources` (existing source or media asset ids, with the `passage` used) and optional `masterText`. Nothing exists until a person accepts it (accept_proposal): it then lands in Idea with its sources and targets, never scheduled. It goes stale if a target is disconnected or the planned day passes. Free. Same `idempotencyKey` within 24 hours returns the first suggestion (`replayed: true`); different input is `idempotency_conflict`.
Suggest a new content item for a person to accept instead of creating it: title, note (the angle), plannedFor/plannedTime (a planning aid, as create_content), campaignLabels, targets (channel accounts, optional format), sources (existing source or media asset ids, with the passage used) and optional masterText. Nothing exists until a person accepts it (accept_proposal): it then lands in Idea with its sources and targets, never scheduled. It goes stale if a target is disconnected or the planned day passes. Free. Same idempotencyKey within 24 hours returns the first suggestion (replayed: true); different input is idempotency_conflict.
Access and cost
- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: true
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"title": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"note": {
"maxLength": 2000,
"type": "string"
},
"plannedFor": {
"format": "date",
"type": "string"
},
"plannedTime": {
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"type": "string"
},
"campaignLabels": {
"items": {
"maxLength": 60,
"minLength": 1,
"type": "string"
},
"maxItems": 10,
"type": "array"
},
"targets": {
"default": [],
"items": {
"properties": {
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"format": {
"pattern": "^[a-z][a-z0-9_]*$",
"type": "string"
}
},
"required": [
"channelAccountId"
],
"type": "object"
},
"maxItems": 20,
"type": "array"
},
"sources": {
"default": [],
"items": {
"properties": {
"sourceId": {
"format": "uuid",
"type": "string"
},
"mediaAssetId": {
"format": "uuid",
"type": "string"
},
"passage": {
"properties": {
"start": {
"minimum": 0,
"type": "number"
},
"end": {
"minimum": 0,
"type": "number"
},
"unit": {
"enum": [
"chars",
"seconds"
],
"type": "string"
}
},
"required": [
"start",
"end"
],
"type": "object"
}
},
"type": "object"
},
"maxItems": 20,
"type": "array"
},
"masterText": {
"type": "string"
},
"idempotencyKey": {
"description": "Optional. A key you choose for this request (for example your pipeline's job id). Sending the same key again within 24 hours returns what the first call created (`replayed: true`) instead of creating it twice.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"workspaceId",
"title"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"proposal": {
"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"
},
"replayed": {
"type": "boolean"
}
},
"required": [
"proposal",
"replayed"
],
"type": "object"
}Errors
[
"channel_unavailable",
"unknown_format",
"idempotency_conflict"
]Annotations
{
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Suggest new content"
}