Personal agent actions (conditional) — K8 HQ Setup API
Personal agent actions (conditional) operations for K8 HQ Setup API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
Before making requests, read the authentication and request requirements.
Selected actions for personal apps, available only when the service is enabled. Each attempt checks current access.
Base URL
| Base URL | For |
https://api.k8hq.com/setup | The K8 HQ web app, and programs acting with a person's session |
Endpoints
Personal agent actions (conditional)
Set only this personal app family’s explicit monthly cap.
PUT/v1/organizations/{orgId}/billing/agent-budget/own
Personal agent contract (conditional). Set only this personal app family’s explicit monthly cap. Requires the declared spending.limit.self grant, current Owner financial approval and per-organization financial acknowledgment. An explicit current organization cap must cover the exact amount. Requires the app’s declared financial grant and the person’s separate financial consent. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action billing.setOwnAgentBudget. Permissions: the separate financial grant. Unattended-risk acknowledgment: not required. Receipt: atomic-own-budget-v1. Status fields: id, action, state, resources.organizationId. Agent input: AgentOwnCapInput. Agent result: AgentOwnCapResult.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
amountUSD required | string | Exact unsigned decimal USD string, at most nine fractional digits and int64 nanodollar bounds; no sign, exponent, floating point, rounding or absent-means-unlimited. Zero allows no positive new charge. Pattern: ^[0-9]+(\.[0-9]{1,9})?$. |
Response body (JSON)
| Field | Type | Description |
amountUSD required | string | Exact unsigned decimal USD string, at most nine fractional digits and int64 nanodollar bounds; no sign, exponent, floating point, rounding or absent-means-unlimited. Zero allows no positive new charge. Pattern: ^[0-9]+(\.[0-9]{1,9})?$. |
explicit required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOwnCapResult | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Cancel only a pending role or removal request made by the authorizing person through this app.
POST/v1/organizations/{orgId}/changes/{changeId}/decline
Personal agent contract (conditional). Cancel only a pending role or removal request made by the authorizing person through this app. Requires the current permission for that request kind: members.roles.assign for role, members.remove for removal, with unattended acknowledgment. Recovery or another requester’s change cannot be canceled. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action org.member.change.cancel. Permissions: members.roles.assign for a role request or members.remove for a removal request. Unattended-risk acknowledgment: required. Receipt: atomic-member-change-cancel-v1. Status fields: id, action, state, resources.changeId. Agent input: AgentEmptyInput. Agent result: AgentOK.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
changeId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOK | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Add one ordinary address to the exact inbox.
POST/v1/organizations/{orgId}/inboxes/{inboxId}/addresses
Personal agent contract (conditional). Add one ordinary address to the exact inbox. The domain must be verified in this organization; current inbox and domain authority still apply. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.addInboxAddress. Permissions: inbox.addresses.manage. Unattended-risk acknowledgment: required. Receipt: atomic-inbox-address-v1. Status fields: id, action, state, resources.inboxId. Agent input: AgentAddressInput. Agent result: AgentOK.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
inboxId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
address required | string | One ordinary email address. |
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOK | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | Current resource state prevents this change. Branch on the stable code. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Remove the path address with no request body.
DELETE/v1/organizations/{orgId}/inboxes/{inboxId}/addresses/{address}
Personal agent contract (conditional). Remove the path address with no request body. Current inbox and domain authority still apply. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.removeInboxAddress. Permissions: inbox.addresses.manage. Unattended-risk acknowledgment: required. Receipt: atomic-inbox-address-v1. Status fields: id, action, state, resources.inboxId. Agent result: AgentOK.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
inboxId (path) required | string | Exact organization or resource in this personal connection. |
address (path) required | string | Email address encoded as one URL path segment. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOK | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Move the path address to another inbox in this organization.
POST/v1/organizations/{orgId}/inboxes/{inboxId}/addresses/{address}/move
Personal agent contract (conditional). Move the path address to another inbox in this organization. Requires current authority over both inboxes and the address. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.moveInboxAddress. Permissions: inbox.addresses.manage. Unattended-risk acknowledgment: required. Receipt: atomic-inbox-address-move-v1. Status fields: id, action, state, resources.inboxId, resources.toInboxId. Agent input: AgentMoveAddressInput. Agent result: AgentOK.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
inboxId (path) required | string | Exact organization or resource in this personal connection. |
address (path) required | string | Email address encoded as one URL path segment. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
inbox required | string | A different inbox in the same organization. Pattern: ^ibx_. |
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOK | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Disable inbox behavior only.
PATCH/v1/organizations/{orgId}/inboxes/{inboxId}/settings
Personal agent contract (conditional). Disable inbox behavior only. Sending, forwarding and background work cannot be enabled by this action. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action content.setInboxSettings. Permissions: inbox.settings.change. Unattended-risk acknowledgment: required. Receipt: atomic-inbox-edit-v1. Status fields: id, action, state, resources.inboxId. Agent input: AgentInboxSettingsInput. Agent result: AgentOK.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
inboxId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
forwardingOff | true | |
memberRulesOff | true | |
rulesMaySend | false | |
spamAutoDelete | false | |
trashAutoDelete | false | |
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | AgentOK | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Create a rule under current consent, approval and access to every referenced inbox and event type.
POST/v1/organizations/{orgId}/rules
Personal agent contract (conditional). Create a rule under current consent, approval and access to every referenced inbox and event type. The app remains its sponsor; loss of authority pauses the rule and notifies Owners. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.createRule. Permissions: rules.manage. Unattended-risk acknowledgment: not required. Receipt: atomic-rule-create-v1. Status fields: id, action, state, resources.organizationId, resources.ruleId. Agent input: AgentCreateRuleInput. Agent result: AgentRuleResult.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
template required | AgentTemplate | |
activeFrom | string | |
activeUntil | string | |
dailyCap | integer | |
ifVersion | 0 | |
params | object | |
Response body (JSON)
| Field | Type | Description |
ruleId required | string | Pattern: ^rul_. |
Responses
| Status | Body | Meaning |
| 200 | AgentRuleResult | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 412 | application/problem+json | The rule changed; read its current version before a new intent. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Change editable rule fields only.
PATCH/v1/organizations/{orgId}/rules/{ruleId}
Personal agent contract (conditional). Change editable rule fields only. A positive ifVersion must match. Current consent, approval and referenced resource access are checked. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.updateRule. Permissions: rules.manage. Unattended-risk acknowledgment: not required. Receipt: atomic-rule-update-v1. Status fields: id, action, state, resources.ruleId. Agent input: AgentUpdateRuleInput. Agent result: AgentRuleResult.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
ruleId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
activeFrom | string | |
activeUntil | string | |
dailyCap | integer | |
ifVersion | integer | |
params | object | |
template | AgentTemplate | |
Response body (JSON)
| Field | Type | Description |
ruleId required | string | Pattern: ^rul_. |
Responses
| Status | Body | Meaning |
| 200 | AgentRuleResult | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 412 | application/problem+json | The rule changed; read its current version before a new intent. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Pause the exact rule.
POST/v1/organizations/{orgId}/rules/{ruleId}/pause
Personal agent contract (conditional). Pause the exact rule. Only ifVersion is accepted; a positive value must match. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.pauseRule. Permissions: rules.manage. Unattended-risk acknowledgment: not required. Receipt: atomic-rule-pause-v1. Status fields: id, action, state, resources.ruleId. Agent input: AgentRuleVersionInput. Agent result: AgentRuleResult.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
ruleId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
ifVersion | integer | Positive values must match the current rule version; zero or absent does not assert a version. |
Response body (JSON)
| Field | Type | Description |
ruleId required | string | Pattern: ^rul_. |
Responses
| Status | Body | Meaning |
| 200 | AgentRuleResult | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 412 | application/problem+json | The rule changed; read its current version before a new intent. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |
Resume the exact rule after checking live consent and access again, retaining the sponsoring app.
POST/v1/organizations/{orgId}/rules/{ruleId}/resume
Personal agent contract (conditional). Resume the exact rule after checking live consent and access again, retaining the sponsoring app. Only ifVersion is accepted; a positive value must match. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.resumeRule. Permissions: rules.manage. Unattended-risk acknowledgment: not required. Receipt: atomic-rule-resume-v1. Status fields: id, action, state, resources.ruleId. Agent input: AgentRuleVersionInput. Agent result: AgentRuleResult.
For personal agent credentials (Authorization: Bearer) when enabled.
Parameters
| Name | Type | Description |
orgId (path) required | string | Exact organization or resource in this personal connection. |
ruleId (path) required | string | Exact organization or resource in this personal connection. |
Idempotency-Key (header) required | string | One visible-ASCII key per logical change. Keep the exact input and key after a lost reply and across access-token rotation. The namespace is organization, authorizing person and personal connection. Changed input with the same key conflicts; a new key is a new intent. |
Request body (JSON)
| Field | Type | Description |
ifVersion | integer | Positive values must match the current rule version; zero or absent does not assert a version. |
Response body (JSON)
| Field | Type | Description |
ruleId required | string | Pattern: ^rul_. |
Responses
| Status | Body | Meaning |
| 200 | AgentRuleResult | Original accepted result. Replay under current authority returns the same operation ID without repeating the effect. |
| 400 | application/problem+json | Malformed input or a missing or malformed Idempotency-Key. |
| 401 | application/problem+json | Unknown, expired, revoked or incorrectly transported personal credential. |
| 403 | application/problem+json | This connection needs approval, or current authority, resource access, consent or required acknowledgment is missing. |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 409 | application/problem+json | The key names a different command, or current resource state prevents the change. |
| 412 | application/problem+json | The rule changed; read its current version before a new intent. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 422 | application/problem+json | The command does not meet the action limits or current requirements. The existing generic failure helper may return unavailable at this status; use the HTTP status as well. |
| 503 | application/problem+json | Authority changed, the attempt expired, a provider is unavailable or the outcome is uncertain. Retry the same input and key under fresh current authority. |