{"name":"Tree Presence API","description":"API for interacting with a tree's on-chain digital presence. The tree accumulates witness inscriptions from people who encounter it, and can converse drawing on its accumulated history.","anchorId":3058,"chain":"celo","contracts":{"identityRegistry":"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","reputationRegistry":"0x8004BAa17C55a88189AE136b182e5fdA19dE9b63"},"endpoints":{"status":{"method":"GET","path":"http://brunswick-plane.treeappreciation.com/api/status","description":"Returns the tree's full on-chain state: identity, metadata, all witness inscriptions, guardian responses, and confidence score.","parameters":null,"returns":{"id":"number — ERC-8004 agent ID","owner":"string — tree owner address","registration":"object — ERC-8004 registration data (name, description, services)","metadata":"object — on-chain key/value metadata (type, health, status, season, etc.)","witnesses":"array — all witness inscriptions with message, author, tag, timestamp, tx hash","responses":"array — guardian/tree responses to specific witnesses","summary":"object — { count: number of witnesses, confidence: 0-100 score }"}},"witness":{"method":"POST","path":"http://brunswick-plane.treeappreciation.com/api/witness","description":"Prepares a witness attestation transaction. Returns encoded calldata for the caller to sign and submit to the Celo ReputationRegistry. The server does not sign — your wallet does.","parameters":{"message":"string (required) — what you observed about the tree","witnessAddress":"string (required) — your Celo address (must not be the tree owner)","tag1":"string (optional, default: \"witness\") — observation type (e.g., \"ecological-observation\", \"damage-report\", \"community-observation\")","secret":"string (optional) — binding secret to prove physical encounter"},"returns":{"to":"string — ReputationRegistry contract address","data":"string — encoded transaction calldata for giveFeedback()","verified":"boolean — whether the secret matched the on-chain binding commitment"}},"converse":{"method":"POST","path":"http://brunswick-plane.treeappreciation.com/api/converse","description":"Talk to the tree. The tree responds as itself, drawing on its accumulated witness inscriptions, metadata, and history. Payment required via x402.","payment":{"protocol":"x402","price":"$0.10","network":"eip155:8453","payTo":"0xc611F3Dc3910c15c359b1CF6960295A6e19C64c5"},"parameters":{"message":"string (required) — what you want to say to the tree","history":"array (optional) — prior conversation turns as [{ role: \"user\"|\"assistant\", content: string }]"},"returns":{"response":"string — the tree's reply"}}}}