For AI agents: read the documentation index. Documentation pages are available as Markdown by appending .md to their URL, or requesting Accept: text/markdown.

Namera Docs

sessionKeys.cancelOperation

Cancel an unsigned installation or removal preparation.

namera.sessionKeys.cancelOperation() cancel an unsigned installation or removal preparation.

Usage

Install @namera-ai/sdk and set NAMERA_API_KEY on your backend. IDs and responses below are illustrative fixtures; replace IDs with your own resources.

index.ts
import { namera } from "./client";
const result = await namera.sessionKeys.cancelOperation("0199dfe1-0000-7000-8000-000000000014");
if (!result.success) throw new Error(result.error.message);

console.log(result.data);

Returns

API methods return a Promise<NameraResult<T, E>>. When success is true, data contains the value described below and error is null. On failure, data is null and error describes the failure.

The JSON example shows the complete successful data, with illustrative values. Date-time values use ISO strings in JSON; bigint values use decimal strings. See Handling Results and Errors for the error shape.

Returns operationId and status: "cancelled".

{
  "operationId": "0199dfe1-0000-7000-8000-000000000014",
  "status": "cancelled"
}

Parameters

operationId

Type: string. Required. Resource UUID returned by creation, preparation, or recovery; not an address or transaction hash.

index.ts
import { namera } from "./client";
const result = await namera.sessionKeys.cancelOperation("0199dfe1-0000-7000-8000-000000000014"); 
if (!result.success) throw new Error(result.error.message);

console.log(result.data);

Behavior and errors

Requires the operation’s install/uninstall permission and the initiating actor. Signed or submitted work cannot be cancelled; it must reconcile. Cancellation changes no session grants or onchain permissions.