Invoke Skill Workstream Spec
post
/api/v1/skills/workstream.spec/invokeRead 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
| Field | Type | Description |
|---|---|---|
workstream_idrequired | string | Workstream to read the spec for β UUID, slug, or 7-char permakey. |
version | integer | null | Optional version pin. Omit to read the latest version's spec. |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||||||||
outputrequired | object | The stored spec for one workstream version. Read-only.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.spec/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"workstream_id": "string",
"version": null
}'