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

Invoke Skill Playbook Creator

post/api/v1/skills/playbook.creator/invoke

Draft a new workstream conversationally β€” describe a workflow and Archie produces a structured, reviewable workstream draft with typed steps, dependencies, and validation. Legacy slug retained for back-compat; prefer `workstream.draft` for new integrations.

Request bodyapplication/json

FieldTypeDescription
descriptionrequiredstringNatural-language description of the workflow to draft.
topic_idstring | nullTopic to anchor the draft to β€” permakey (preferred) or UUID.
prior_draft_idstring (uuid) | nullOptional prior draft to iterate on instead of creating a new one.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectOutput from the workstream drafting skill β€” pointer to the draft + summary. ``draft_id`` is None when the request couldn't produce a draft (missing workspace / topic / generation failure); in that case ``error`` carries a one-line reason. Successful invocations always set ``draft_id``.
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
draft_idstring (uuid) | nullβ€”
namestringβ€”
step_countintegerβ€”
validation_warning_countintegerβ€”
errorstring | nullβ€”
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/playbook.creator/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "description": "string",
       "topic_id": null,
       "prior_draft_id": null
     }'