Step 4 15 min

Sign Agent Actions

Send agent actions to MOSS for policy evaluation and cryptographic signing.

The Signing Flow

Step 1

Agent acts

Step 2

MOSS evaluates

Step 3

MOSS signs

Step 4

Audit recorded

Sign an Action

Sign Actiontypescript
const response = await fetch('https://api.mosscomputing.com/v1/sign', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + cap_token,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    agent_id: 'agt_abc123',
    action: {
      intent: 'respond',
      description: 'Replied to customer inquiry about order status',
      metadata: { customer_id: 'cust_789', channel: 'email' },
    },
  }),
});
const result = await response.json();
Response200 OK
{
  "envelope_id": "env_abc123",
  "status": "signed",
  "signature": "ml_dsa_44_sig...",
  "policy_decision": "allow",
  "timestamp": "2026-08-25T12:00:00Z"
}

When a Policy Blocks

Blocked Responsejson
{
  "envelope_id": "env_def456",
  "status": "blocked",
  "policy_decision": "block",
  "blocked_by": "Policy: PII Protection (priority 10)",
  "reason": "Action matched PII pattern: SSN detected",
  "timestamp": "2026-08-25T12:01:00Z"
}

Direct customer integration complete!

  • Registered your org on MOSS
  • Registered your AI agent(s)
  • Created policies (allow, block, escalate)
  • Signing every agent action with post-quantum cryptography