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

Invoke Skill Workstream Spec

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

Read a stored WorkStream spec β€” the decisions the design interview settled, each with its proposal, reason, citation, and status. Wraps GET /api/v1/wss/authoring/workstreams/{id}/spec. Read-only; omit `version` for the latest.

Reads the stored spec of one workstream, named by the `workstream_id` input. It returns the latest version unless you set `version`, together with the decisions, the `spec_hash` and the `definition_hash`. This call only reads and changes nothing.

Request bodyapplication/json

FieldTypeDescription
workstream_idrequiredstringWorkstream to read the spec for β€” UUID, slug, or 7-char permakey.
versioninteger | nullOptional version pin. Omit to read the latest version's spec.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectThe stored spec for one workstream version. Read-only.
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
workstream_idstringResolved workstream UUID.
versioninteger | nullVersion the spec belongs to.
specobject | nullThe spec: ordered decisions plus compiled bindings. Null on pre-spec versions.
spec_hashstring | nullContent address of the spec.
definition_hashstring | nullContent address of the step graph.
framesobject[]Cowork artefact frames rendering the spec.
item shape
Empty object.
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error. Populated when the read failed.
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.spec/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "workstream_id": "string",
       "version": null
     }'