ambr_get_contract
Retrieve a contract by ID, SHA-256 hash, or UUID.
With a valid API key (contract creator): returns the full contract including human-readable text, machine-readable JSON, status, and principal declaration. Without authentication: returns metadata only (contract_id, status, hash, dates).
Supports three lookup formats:
Contract ID: "amb-2026-0042"
SHA-256 hash: 64-character hex string
UUID: Standard UUID format
Args:
id (string, required): Contract ID, SHA-256 hash, or UUID
Returns: Full contract (if authorized) or metadata-only response.
Legibility: retrieval preserves the dual-format pairing — prose and JSON always replay to the same SHA-256.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Contract ID (amb-YYYY-NNNN), SHA-256 hash, or UUID |