Invoke Skill Workflows Decide
post
/api/v1/skills/workflows.decide/invoke(Utility) Approve or reject a workflow item.
Records a decision on a queued item, such as a proposed outbound accounting write waiting for approval. Supply the `item_id` and the `decision` (approve, reject or request_changes), with an optional `reason`. The reply gives the `approval_id`, the `status` and the `next_step`. A workstream task is refused here and is decided through the task decision route.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
item_idrequired | string (uuid) | UUID of the queued item to decide, such as a proposed accounting write waiting for approval. |
decisionrequired | "approve" | "reject" | "request_changes" | The decision to record: approve, reject or request_changes.approverejectrequest_changes |
reason | string | Optional note explaining the decision; it is recorded with an approval and used as the reason on a rejection. |
delegated_by | string (uuid) | null | UUID of the person the decision is made on behalf of; accepted for later use and not yet applied to the decision. |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||
outputrequired | object | β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/workflows.decide/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"item_id": "00000000-0000-0000-0000-000000000000",
"decision": "approve",
"reason": "string",
"delegated_by": null
}'