Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Workstream Design

post/api/v1/skills/workstream.design/invoke

Specify 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

FieldTypeDescription
descriptionrequiredstringNatural-language description of the workstream to specify.
topic_idstring | nullTopic to anchor the design interview to β€” permakey (preferred) or UUID.
prior_draft_idstring (uuid) | nullOptional prior draft to iterate on instead of starting a new interview.
namestring | nullOptional working name; context for the authoring agent, not a constraint.
file_idsstring (uuid)[]Source documents the questions come from. With none, the tool says it has nothing to read rather than asking generic shape questions.
threadobject[]Prior authoring frames/messages for one-question-at-a-time refinement.
item shape
Empty object.
draft_keystring | nullStable 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_keystring | nullCaller-supplied stable token. Replaying within 24h resumes the same interview rather than starting a duplicate.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectThe 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
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
decisionsobject[]The spec's decisions β€” each with its question, the builder's proposal, its reason, its citation, and its status (open/answered).
item shape
Empty object.
spec_hashstring | nullContent address of the persisted spec; changes when an answer changes.
questionstring | nullOne material clarification to answer on the next turn.
framesobject[]Visible research, tool, and question transcript for this turn.
item shape
Empty object.
authoring_provenanceobjectLogical role, exact provider/model and content-addressed contract version.
show nested
Empty object.
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error. Populated on interview failure.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
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
     }'