# Kody Execution Contexts API

**Canonical:** https://apis.io/apis/kody-codes/kody-codes-execution-contexts-api/  
**Provider:** Kody — https://apis.io/providers/kody-codes/  
**Base URL:** https://api.kody.codes  
**Documentation:** https://api-docs.kody.codes

Kody Execution Contexts API is one of 21 APIs that [Kody](https://apis.io/providers/kody-codes/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Execution Contexts. The published artifact set on APIs.io includes an OpenAPI specification.

Execution contexts (machines running `kody daemon`), their sharing, run history and audit, and your per-org fallback chain. Kody cloud, when present, is always the last chain entry. Behind the `execution-contexts` feature flag: off answers 403 `feature_disabled`.

## Operations (28)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/execution-contexts` | List execution contexts (machines running `kody daemon`) visible in this org… |
| GET | `/v1/automation-execution` | Where a job, package webhook, or subscription runs: the `execution` its package… |
| PUT | `/v1/automation-execution` | Choose where a job, package webhook, or subscription runs, overriding its… |
| GET | `/v1/execution-contexts/{id}` | Get one execution context with status, grants, your access, chain usage, and… |
| PATCH | `/v1/execution-contexts/{id}` | Rename an execution context or change its grant (files, egress, Kody API… |
| DELETE | `/v1/execution-contexts/{id}` | Revoke an execution context: its key stops working, the daemon is disconnected… |
| POST | `/v1/execution-contexts/{id}/delete` | Permanently delete a revoked execution context so it no longer appears in… |
| POST | `/v1/execution-contexts/{id}/pause` | Pause an execution context on the server (the remote "stop"): chains skip it… |
| POST | `/v1/execution-contexts/{id}/resume` | Resume a paused execution context so routing sends it runs again |
| GET | `/v1/execution-contexts/{id}/daemon` | Daemon status for an execution context: online / paused / offline / revoked… |
| POST | `/v1/execution-contexts/{id}/daemon/restart` | Restart the daemon on an online execution context: it stops taking runs, lets… |
| POST | `/v1/execution-contexts/{id}/daemon/update` | Check now for a newer kody CLI on an online execution context and move the… |
| PATCH | `/v1/execution-contexts/{id}/daemon/config` | Change daemon config remotely: max_concurrent caps runs at once (a server… |
| GET | `/v1/execution-contexts/{id}/daemon/logs` | Read the last lines (default 100, at most 500) of an online execution context's… |
| POST | `/v1/execution-contexts/{id}/opt-in` | Join an execution context someone shared with you (to turn the execution… |
| DELETE | `/v1/execution-contexts/{id}/opt-in` | Leave an execution context: removes it from your chain and stops your runs on it |
| POST | `/v1/execution-contexts/{id}/notices/dismiss` | Dismiss your own excess-access notice on an execution context (the machine can… |
| POST | `/v1/execution-contexts/{id}/sharing/preview` | Before sharing an execution context, see what its login (the machine's account… |
| GET | `/v1/execution-contexts/{id}/sharing` | List who an execution context is shared with in this org (people, teams… |
| PUT | `/v1/execution-contexts/{id}/sharing` | Share an execution context with a person (username or user_id, including… |
| DELETE | `/v1/execution-contexts/{id}/sharing/{grant_id}` | Stop sharing an execution context with one grant holder |
| POST | `/v1/execution-contexts/{id}/attachments` | Attach your execution context to another org you belong to, so it can be shared… |
| DELETE | `/v1/execution-contexts/{id}/attachments/{org_id}` | Detach an execution context from an org: its shares and opt-ins there are… |
| GET | `/v1/execution-contexts/{id}/runs` | Run history of an execution context (who, when, duration, outcome, fallback… |
| POST | `/v1/execution-contexts/{id}/runs/{run_id}/cancel` | Cancel a run on an execution context (a machine): a running run is stopped… |
| GET | `/v1/execution-contexts/{id}/audit` | Management audit log of an execution context (registration, grant changes… |
| GET | `/v1/execution-chain` | Your execution chain in this org: the order Kody tries execution contexts for… |
| PUT | `/v1/execution-chain` | Replace your execution chain |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/kody-codes/openapi/kody-codes-execution-contexts-api-openapi.yml

## Other Kody APIs (12)

- [Kody Account API](https://apis.io/apis/kody-codes/kody-codes-account-api/)
- [Kody Capability Proxy API](https://apis.io/apis/kody-codes/kody-codes-capability-proxy-api/)
- [Kody Community API](https://apis.io/apis/kody-codes/kody-codes-community-api/)
- [Kody Email API](https://apis.io/apis/kody-codes/kody-codes-email-api/)
- [Kody Execute API](https://apis.io/apis/kody-codes/kody-codes-execute-api/)
- [Kody Files API](https://apis.io/apis/kody-codes/kody-codes-files-api/)
- [Kody Follows API](https://apis.io/apis/kody-codes/kody-codes-follows-api/)
- [Kody Integrations API](https://apis.io/apis/kody-codes/kody-codes-integrations-api/)
- [Kody Jobs API](https://apis.io/apis/kody-codes/kody-codes-jobs-api/)
- [Kody MCP Servers API](https://apis.io/apis/kody-codes/kody-codes-mcp-servers-api/)
- [Kody Memories API](https://apis.io/apis/kody-codes/kody-codes-memories-api/)
- [Kody Packages API](https://apis.io/apis/kody-codes/kody-codes-packages-api/)

## Tags

Execution Contexts

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/kody-codes` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/kody-codes/kody-codes-execution-contexts-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/kody-codes/.
