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

Invoke Skill Workstream Commit

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

Promote a workstream draft to an active, executable workstream definition. The draft must validate cleanly; the resulting workstream gets a new permakey and becomes runnable via workstream_run.

Request bodyapplication/json

FieldTypeDescription
draft_idrequiredstring (uuid)The draft id from `workstream_draft.draft_id`.
scope"user" | "team" | "firm"Authoring scope for the committed workstream.
userteamfirm
namestring | nullOptional final name. Defaults to the draft's working name. Cannot collide with another active workstream in the workspace.
idempotency_keystring | nullCaller-supplied stable token. Replaying within 24h returns the previously-created workstream id rather than erroring on the name collision.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectPointer to the committed workstream.
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
workstream_idstring (uuid) | nullNewly-created workstream id.
permakeystring7-char human-friendly id for URLs and Slack.
status"draft" | "active"`active` on success; `draft` if commit failed validation and the draft still exists.
draftactive
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error. Populated when commit 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.commit/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "draft_id": "00000000-0000-0000-0000-000000000000",
       "scope": "user",
       "name": null,
       "idempotency_key": null
     }'