Access: Bearer token required. Additional scope: drafts:write. MCP allowed: draft_update.
Input JSON Schema
This schema is generated from the canonical Zod input schema in the shared contract package, not copied into the docs source. JSON Schema describes representable structure; runtime refinements and transforms remain enforced by the canonical parser and may not be fully represented here.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"project": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
}
]
},
"summary": {
"type": "string",
"minLength": 1,
"maxLength": 10000
},
"why": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"commits": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"numbers": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1,
"maxLength": 100
}
]
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 1000
}
},
"required": [
"value",
"source"
],
"additionalProperties": false
}
},
"idempotencyKey": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"project",
"summary"
],
"additionalProperties": false
}HTTP and CLI
POST the versioned operation envelope to /api/v2/execute. Replace the placeholder with a valid input object from the schema above; this shape is not a runnable request.
{"version":1,"operation":"drafts.from_evidence","input":<input-object matching schema>}CLI command shape: indielogs call drafts.from_evidence '<input-json>'. The placeholder is not a valid sample input.