ResourceBuilt-in resource
kdeps-resource-api-response
v3.6.0`apiResponse:` builds the HTTP response that a workflow sends back to the caller. It is the last resource in the chain: the one that [`targetActionId`](https://kdeps.com/reference/glossary#targetactionid) in `workflow.yaml` names.
Usage
Built into kdeps: no install. Add it to a resource under the apiResponse: key.
# resources/my-step.yaml
actionId: myStep
apiResponse:
# options below
Documentation
API response resource
apiResponse: builds the HTTP response that a workflow sends back to the caller. It is the last resource in the chain: the one that targetActionId in workflow.yaml names.
request -> resources (requires: order) -> apiResponse -> HTTP response
# resources/respond.yaml
actionId: respond
flow:
requires: [answer] # runs after the answer resource
apiResponse:
success: true
response:
answer: get('answer').message.content # the chat's reply text
headers:
Content-Type: application/json
Read next
- API response resource reference - every key, option and detail
- Error handling - what the caller gets when a resource fails
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 3.6.0 | 11/27/2026 | active | GitHub v3.6.0 |
| 3.5.1 | 11/25/2026 | active | GitHub v3.5.1 |
| 3.5.0 | 11/24/2026 | active | GitHub v3.5.0 |
| 3.4.0 | 11/23/2026 | active | GitHub v3.4.0 |
| 3.3.0 | 11/21/2026 | active | GitHub v3.3.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 3.6.0
- Published
- 11/21/2026
Links
Tags
kdepsresourceapiResponse