Invoke Skill Workstream Design
post
/api/v1/skills/workstream.design/invokeSpecify a WorkStream before drafting its steps β runs the pre-flight interview and returns the spec: the decisions, each with its question, the builder's proposal, its reason, its citation, and its status. Persists to the spec store so the spec can be read back (workstream_spec) and open decisions answered (workstream_spec_answer). Does NOT propose steps and does NOT create a WorkStream β that is workstream_draft's job, unchanged.
Starts the design interview for a workstream from the `description` input and returns its spec: each decision with its question, the builder's proposal, its reason, its citation and its status, plus the `spec_hash` and the next question to answer. The spec is stored so workstream.spec can read it back and workstream.spec.answer can settle open decisions. It creates no steps and no workstream.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
descriptionrequired | string | Natural-language description of the workstream to specify. |
topic_id | string | null | Topic to anchor the design interview to β permakey (preferred) or UUID. |
prior_draft_id | string (uuid) | null | Optional prior draft to iterate on instead of starting a new interview. |
name | string | null | Optional working name; context for the authoring agent, not a constraint. |
file_ids | string (uuid)[] | Source documents the questions come from. With none, the tool says it has nothing to read rather than asking generic shape questions. |
thread | object[] | Prior authoring frames/messages for one-question-at-a-time refinement.item shapeEmpty object. |
draft_key | string | null | Stable caller identity for this conversational interview. |
target_execution_mode | "inline" | "containerized" | Canonical authoring creates inline WorkStreams. The legacy containerized authoring destination is refused; bounded agentic work uses agent_run steps.inlinecontainerized |
idempotency_key | string | null | Caller-supplied stable token. Replaying within 24h resumes the same interview rather than starting a duplicate. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||||||||
outputrequired | object | The interview's spec: decisions with question/proposal/reason/citation/status.
Design stops BEFORE the proposal: no step list, no draft id. The decisions
persist to the spec store so ``workstream_spec`` can read them back
and ``workstream_spec_answer`` can answer one open decision.show nested
| ||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/workstream.design/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"description": "string",
"topic_id": null,
"prior_draft_id": null,
"name": null,
"file_ids": [
"00000000-0000-0000-0000-000000000000"
],
"thread": [
{}
],
"draft_key": null,
"target_execution_mode": "inline",
"idempotency_key": null
}'