> Documentation index: https://docs.hodeishield.com/llms.txt

# `/v1` reference: Action proposals

The operations of this resource. They share the pagination and error vocabulary described in [Overview](https://docs.hodeishield.com/en/api/overview/) and [Errors](https://docs.hodeishield.com/en/api/errors/). Example values on this page are **fictitious**. The other operations are in the [complete reference](https://docs.hodeishield.com/en/api/reference/).

## Operations

### Propose an action a person approves in the console

`POST /v1/act/proposals`

Records a PROPOSAL of one action class. Nothing changes until a person of the tenant approves it in the console, which executes it with the approver's own role; a proposal nobody decides expires after 7 days. Only an OAuth access token issued for the HodeiShield MCP server, carrying `act:propose`, may call it: every other credential is answered 403 `CREDENTIAL_NOT_ALLOWED`. The proposer is the token's user and the proposal is bound to the token's grant (application, user and tenant); a request cannot name another. A person in your organisation approves it in the console. The same content proposed again by the same grant answers 200 with the existing proposal.

**Required scope:** `act:propose + the read scope of the class's module (supply_risk:read for schedule_vendor_scan and request_vendor_evidence; none for create_task)`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Example response (200, fictitious values):**

```json
{
  "id": "3c9d1e2f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
  "status": "proposed",
  "expires_at": "2026-11-22T09:00:00Z"
}
```

### Status of a proposal this application made

`GET /v1/act/proposals/{id}`

The status of a proposal made by THIS grant (the same application, user and tenant). Never the payload and never who decided it. An id this grant did not propose answers 404, exactly as one that does not exist. Only an OAuth access token issued for the HodeiShield MCP server, carrying `act:propose`, may call it.

**Required scope:** `act:propose`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | `string` | Proposal identifier, as `createActProposal` returned it. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Example response (200, fictitious values):**

```json
{
  "status": "refused",
  "refusal_reason": "grant_revoked",
  "executed_at": null
}
```

### Proposals waiting for a decision

`GET /v1/act/inbox`

The ACT proposals of the tenant that THE CALLER may approve: still waiting for a decision (status `proposed`, not expired) and admitted by the console’s own approve rules for this person (the role the action class and the tenant’s policy require, the module the class needs, four-eyes, and not a proposal made through the MCP, which the console cannot approve yet). A proposal the caller could not approve is not listed, and `pagination.total` counts only what is listed. While actions are paused a listed proposal is still refused at approval (`ACTIONS_PAUSED`), as in the console. Soonest to expire first by default, each with EXACTLY what it would write (`payload`) and why it was proposed. Approving does not execute it: execution stays a separate step in the console. Like a decision, the inbox needs a sign-in confirmed within the last 15 minutes (`403` `STEP_UP_REQUIRED` otherwise). Only a user access token of the HodeiShield CLI carrying `act:decide` may call it (an OAuth-only scope, off unless the server enables it): a tenant API key, an MSSP portfolio key, a token issued for the HodeiShield MCP server and any other application are answered `403` `CREDENTIAL_NOT_ALLOWED`.

**Required scope:** `act:decide`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `page` | query | no | `integer` | 1-based page number. Defaults to 1. |
| `per_page` | query | no | `integer` | Items per page, 1..200. Defaults to 50. |
| `sort` | query | no | `enum(expires_at, created_at)` | Field to order by. One of: expires_at, created_at. |
| `order` | query | no | `enum(asc, desc)` | Sort direction. Defaults to asc (the proposal that expires soonest first). |
| `class` | query | no | `enum(create_risk_entry, create_task, request_vendor_evidence, schedule_vendor_scan, set_vendor_criticality, open_vendor_review, add_roadmap_item)` | Only proposals of this action class. One of: create_risk_entry, create_task, request_vendor_evidence, schedule_vendor_scan, set_vendor_criticality, open_vendor_review, add_roadmap_item. |
| `module` | query | no | `string` | Only proposals whose action class needs this module (`supply_risk`, …). A module no class needs matches nothing. |
| `expires_before` | query | no | `string` | RFC 3339. Only proposals that stop being decidable before this instant. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Example response (200, fictitious values):**

```json
{
  "data": [
    {
      "id": "3c9d1e2f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
      "class": "create_task",
      "module": "supply_risk",
      "payload_kind": "create_task",
      "payload": {
        "title": "Review the vendor’s new subprocessor list"
      },
      "rationale": "A new subprocessor appeared in the vendor’s latest notice.",
      "confidence": 0.8,
      "proposed_via": "agent.vendor-watch",
      "proposed_by_you": false,
      "created_at": "2026-11-19T08:00:00Z",
      "expires_at": "2026-11-26T08:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 50,
    "total": 1,
    "total_pages": 1
  }
}
```

### Approve a proposal

`POST /v1/act/proposals/{id}/approve`

Approves one proposal waiting for a decision. It does NOT execute it, and no `/v1` operation does: the approved action is executed in the console before `approval_expires_at` (15 minutes), as after an approval made there. An approval is consent to execute now, not a standing authorisation. The decision runs through the console’s own service, so its rules are the console’s: the role the action class and the tenant’s policy require, the module the class needs, four-eyes (the user a proposal was made for cannot approve it when it applies), the expiry, a single decision per proposal and the pause switches. Every refusal carries a stable `error.details.code` and the ACT reason beside it (`error.details.reason`). The decider is the token’s user, with their role read on every request. A decision needs a sign-in confirmed within the last 15 minutes (`403` `STEP_UP_REQUIRED` otherwise: sign in again, which asks for your second factor or password). At most 30 decisions per minute per person (`429`, `error.details.scope` `decision_user`). Every decision and every refusal writes one entry in the tenant’s audit trail naming the person, the application and the reason; the ACT ledger records the decision too. An id of another tenant answers the same `404` as one that does not exist. Only a user access token of the HodeiShield CLI carrying `act:decide` may call it (an OAuth-only scope, off unless the server enables it): a tenant API key, an MSSP portfolio key, a token issued for the HodeiShield MCP server and any other application are answered `403` `CREDENTIAL_NOT_ALLOWED`.

**Required scope:** `act:decide`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | `string` | Proposal identifier, as `listPendingActProposals` returned it. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Request body:** JSON. `reason` is required (1 to 1000 characters). An unknown key is a `400`.

**Example (curl):**

```bash
curl -X POST "https://api.hodeishield.com/v1/act/proposals/33333333-3333-4333-8333-333333333333/approve" \
  -H "Authorization: Bearer $HODEISHIELD_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Reviewed the payload; it matches the vendor notice"}'
```

The access token is that of a HodeiShield CLI user carrying `act:decide`; an API key is not accepted.

**Example response (200, fictitious values):**

```json
{
  "data": {
    "id": "3c9d1e2f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
    "status": "approved",
    "approval_expires_at": "2026-11-19T09:45:00Z",
    "ledger_entry_id": "5d0e2f3a-5b6c-4d7e-9f80-1b2c3d4e5f60"
  }
}
```

### Reject a proposal

`POST /v1/act/proposals/{id}/reject`

Rejects one proposal waiting for a decision, with the reason why; nothing is executed. As in the console, any role that may write may reject, the user a proposal was made for included. The decision runs through the console’s own service, so its rules are the console’s: the role the action class and the tenant’s policy require, the module the class needs, four-eyes, the expiry, a single decision per proposal and the pause switches. Every refusal carries a stable `error.details.code` and the ACT reason beside it (`error.details.reason`). The decider is the token’s user, with their role read on every request. A decision needs a sign-in confirmed within the last 15 minutes (`403` `STEP_UP_REQUIRED` otherwise: sign in again, which asks for your second factor or password). At most 30 decisions per minute per person (`429`, `error.details.scope` `decision_user`). Every decision and every refusal writes one entry in the tenant’s audit trail naming the person, the application and the reason; the ACT ledger records the decision too. An id of another tenant answers the same `404` as one that does not exist. Only a user access token of the HodeiShield CLI carrying `act:decide` may call it (an OAuth-only scope, off unless the server enables it): a tenant API key, an MSSP portfolio key, a token issued for the HodeiShield MCP server and any other application are answered `403` `CREDENTIAL_NOT_ALLOWED`.

**Required scope:** `act:decide`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | `string` | Proposal identifier, as `listPendingActProposals` returned it. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Request body:** JSON. `reason` is required (1 to 1000 characters). An unknown key is a `400`.

**Example (curl):**

```bash
curl -X POST "https://api.hodeishield.com/v1/act/proposals/33333333-3333-4333-8333-333333333333/reject" \
  -H "Authorization: Bearer $HODEISHIELD_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason":"The payload does not match what the vendor announced"}'
```

The access token is that of a HodeiShield CLI user carrying `act:decide`; an API key is not accepted.

**Example response (200, fictitious values):**

```json
{
  "data": {
    "id": "3c9d1e2f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
    "status": "rejected",
    "approval_expires_at": null,
    "ledger_entry_id": "5d0e2f3a-5b6c-4d7e-9f80-1b2c3d4e5f60"
  }
}
```
