API surface overview
CommandLayer APIs expose runtime signing, receipt verification, MCP transport, and website verifier surfaces for verifiable agent actions.
Runtime API
Production execution/signing and verification surface.
MCP Transport
Bridge for MCP clients. Transport changes; proof model does not.
Trust Verification
Canonical Trust Verification v1 endpoints and verbs.
Website Verifier
Human-facing verification UI and public verifier surfaces.
SDK
Developer wrapper for receipts and verifier calls.
Schemas
Request/receipt/proof structure.
Runtime endpoints
https://runtime.commandlayer.org/healthhttps://runtime.commandlayer.org/verifyhttps://runtime.commandlayer.org/trust-verification/{verb}/v1.0.0Supported Trust Verification verbs
sign, attest, authorize, approve, reject, permit, grant, authenticate, endorse
verify is the verifier action/surface, not a signer endpoint.Runtime sign example
curl -X POST https://runtime.commandlayer.org/trust-verification/sign/v1.0.0 \
-H "content-type: application/json" \
-d '{"payload":{"message":"hello from CommandLayer"}}'
Expected response shape
{
"receipt": {
"verb": "sign",
"class": "trust-verification",
"result": {
"payload": {
"message": "hello from CommandLayer"
}
},
"metadata": {
"proof": {
"canonicalization": "json.sorted_keys.v1",
"hash": {
"alg": "SHA-256",
"value": "..."
},
"signature": {
"alg": "Ed25519",
"kid": "vC4WbcNoq2znSCiQ",
"value": "..."
},
"signer_id": "runtime.commandlayer.eth"
}
}
}
}
Runtime verify example
curl -X POST https://runtime.commandlayer.org/verify \
-H "content-type: application/json" \
-d '{"receipt":{...}}'
VALID / VERIFIED
Hash and signature checks passed.
INVALID
Proof failed, payload changed, unsupported proof, wrong signer/key, or missing proof.
TRANSPORT_ERROR
Verifier/runtime unavailable or request failed.
MCP endpoint section
https://mcp.commandlayer.org/healthhttps://mcp.commandlayer.org/mcpGET /mcp is not expected to work. /mcp is POST-only MCP transport.MCP tools
clas.trust-verification.verify, clas.trust-verification.sign, clas.trust-verification.attest, clas.trust-verification.authorize, clas.trust-verification.approve, clas.trust-verification.reject, clas.trust-verification.permit, clas.trust-verification.grant, clas.trust-verification.authenticate, clas.trust-verification.endorse
Website verifier surfaces
/verify.html— Interactive manual verifier./api/verify— Website verifier API surface; treat as a website-facing verifier surface unless separately validated for parity with runtime/verify./api/agents/verifyagent— VerifyAgent metadata/API alias surface if present.
/api/verify as the canonical production verifier unless tests prove parity with runtime /verify.Request/response conventions
Content-Type: application/json
Input for signer endpoints
{
"payload": {}
}
Input for verifier endpoints
{
"receipt": {}
}
Canonical proof fields
metadata.proof is required. metadata.trace is optional for multi-step workflow correlation (agents, spans, solver fills, and batch execution).
metadata.proof.signature can be a single Ed25519 object or an array of role-based Ed25519 signature entries.
Allowed signature roles: user, solver, relayer, agent, runtime, verifier. Do not assume every signature in a multi-signature array is verified unless your verifier explicitly validates all of them.
metadata.proof.canonicalizationmetadata.proof.hash.algmetadata.proof.hash.valuemetadata.proof.signature (single object or role-based array)metadata.proof.signer_idmetadata.trace (optional)
Error and status model
VALID / VERIFIED
Proof checks passed.
INVALID
Proof checks failed.
TRANSPORT_ERROR
Network/runtime/verifier unavailable.
BAD_REQUEST
Invalid request shape.
UNSUPPORTED_VERB
Unsupported capability verb.
MISSING_PROOF
Receipt missing metadata.proof.
HASH_MISMATCH
Canonical hash mismatch.
SIGNATURE_INVALID
Ed25519 signature invalid.
Security / trust boundaries
- Runtime signs.
- Verifier validates.
- MCP bridges.
- SDK wraps.
- Schemas describe shape.
- Schema-valid alone is not verified.
- Private keys must never be sent through MCP or public verifier endpoints.
- Receipts are only verified when hash and signature checks pass.
Developer integration paths
Direct HTTP
Call runtime endpoints directly.
MCP client
Use MCP tools and let the bridge forward to runtime.
SDK
Use @commandlayer/agent-sdk@1.2.0.
Manual verifier
Paste receipts into /verify.html.