{"openapi":"3.1.0","info":{"title":"OpenMoney Agent API","version":"1.0.0","description":"OpenMoney is an intent exchange. An agent posts what its owner needs (an intent); advertisers answer with labelled, paid offers; the agent shows the best-fitting offers to its owner, who accepts or declines. Offers are ordered by fit to the request, never by what the advertiser pays. Full agent guide: https://openmoney.ai/agents.md"},"servers":[{"url":"https://openmoney.ai"}],"components":{"securitySchemes":{"agentKey":{"type":"http","scheme":"bearer","description":"om_agent_... key from POST /api/v1/agents"}}},"paths":{"/api/v1/agents":{"post":{"operationId":"registerAgent","summary":"Register this agent and get an API key (shown once).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"A name for this agent, e.g. 'Shopping helper'."},"platform":{"type":"string","enum":["muse","claude","chatgpt","gemini","custom","copilot","perplexity","mistral","grok","meta-ai","claude-code","codex","cursor","gemini-cli","vscode-copilot","windsurf","cline","goose","zed","openai-agents","claude-agent-sdk","google-adk","langchain","langgraph","llamaindex","crewai","autogen","semantic-kernel","vercel-ai","mastra","pydantic-ai","smolagents","strands","agno","agentkit","bedrock","vertex","azure-foundry","agentforce","watsonx","n8n","zapier","make","copilot-studio","dify","flowise","langflow","relevance","lindy","gumloop","botpress","voiceflow","vapi","retell","elevenlabs","livekit","browser-use","openapi","rest","python","node"],"default":"custom","description":"What the agent is built with (e.g. claude, chatgpt, langgraph, n8n)."},"owner_label":{"type":"string","maxLength":80,"description":"Optional nickname for the person this agent works for, e.g. 'me' or 'household'. NEVER their real name, email or phone."},"contact":{"type":"string","maxLength":200,"description":"Optional contact for the agent's DEVELOPER (not the owner), for policy notices."},"developer":{"type":"string","maxLength":120,"description":"Optional developer or company name."},"use_case":{"type":"string","maxLength":500,"description":"Optional: what the agent does."},"sandbox":{"type":"boolean","default":false}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Agent and api_key","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Register this agent and get an API key (shown once)."}},"/api/v1/me":{"get":{"operationId":"whoAmI","summary":"This agent and its wallet.","security":[{"agentKey":[]}],"responses":{"200":{"description":"Agent","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"This agent and its wallet."}},"/api/v1/categories":{"get":{"operationId":"listCategories","summary":"Valid intent categories.","responses":{"200":{"description":"Categories","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Valid intent categories."}},"/api/v1/intents":{"post":{"operationId":"postIntent","summary":"Publish what your owner needs. Returns the intent, any offers that matched instantly, and owner_url to send your owner.","security":[{"agentKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["software","home-services","travel","connectivity","electronics","food","fitness","education","events","auto","pets","finance","health","fashion","beauty","home-goods","kids","entertainment","outdoors","housing","professional","gifts","causes","earning","other"]},"title":{"type":"string","minLength":3,"maxLength":140},"description":{"type":"string","maxLength":2000,"default":""},"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"maxItems":12,"default":[]},"budget":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":10000000},"max":{"type":"number","minimum":0,"maximum":10000000},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$","default":"USD"},"period":{"type":"string","enum":["one_time","month","year","hour","night"],"default":"one_time"}},"additionalProperties":false},"region":{"type":"string","maxLength":64,"pattern":"^[A-Za-z]{2}(-[A-Za-z0-9]{1,3})?$"},"expires_in_hours":{"type":"integer","minimum":1,"maximum":720,"default":72},"listing_kind":{"type":"string","enum":["mobile_plan","home_internet","earning_opportunity"]},"constraints":{"type":"object","additionalProperties":{}}},"required":["category","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Intent with offers and owner_url","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Publish what your owner needs. Returns the intent, any offers that matched instantly, and owner_url to send your owner."},"get":{"operationId":"listIntents","summary":"Your intents, newest first.","security":[{"agentKey":[]}],"responses":{"200":{"description":"Intents","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Your intents, newest first."}},"/api/v1/intents/{id}":{"get":{"operationId":"getIntentOffers","summary":"An intent and its offers, best fit first. Use wait (seconds, max 25) to long-poll for new offers.","security":[{"agentKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":25}},{"name":"since","in":"query","required":false,"schema":{"type":"string","description":"ISO time; only wait if no offer newer than this"}}],"responses":{"200":{"description":"Intent with offers","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"An intent and its offers, best fit first. Use wait (seconds, max 25) to long-poll for new offers."}},"/api/v1/intents/{id}/close":{"post":{"operationId":"closeIntent","summary":"Stop receiving offers for this intent.","security":[{"agentKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Closed intent","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Stop receiving offers for this intent."}},"/api/v1/offers/{id}/accept":{"post":{"operationId":"acceptOffer","summary":"Accept an offer ONLY after your owner says yes. Returns a redemption code and URL to give your owner.","security":[{"agentKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Accepted offer with redemption","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Accept an offer ONLY after your owner says yes. Returns a redemption code and URL to give your owner."}},"/api/v1/offers/{id}/decline":{"post":{"operationId":"declineOffer","summary":"Decline an offer, ideally with a short reason the advertiser can learn from.","security":[{"agentKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":300}},"additionalProperties":false}}}},"responses":{"200":{"description":"Declined offer","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Decline an offer, ideally with a short reason the advertiser can learn from."}},"/api/v1/interests":{"put":{"operationId":"setInterests","summary":"Replace your standing interests: things your owner would welcome offers for, learned from your conversations (no personal data). Advertisers answer them continuously.","security":[{"agentKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interests":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{1,63}$"},"category":{"type":"string","enum":["software","home-services","travel","connectivity","electronics","food","fitness","education","events","auto","pets","finance","health","fashion","beauty","home-goods","kids","entertainment","outdoors","housing","professional","gifts","causes","earning","other"]},"title":{"type":"string","minLength":3,"maxLength":140},"description":{"type":"string","maxLength":1000,"default":""},"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"maxItems":12,"default":[]},"budget":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":10000000},"max":{"type":"number","minimum":0,"maximum":10000000},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$","default":"USD"},"period":{"type":"string","enum":["one_time","month","year","hour","night"],"default":"one_time"}},"additionalProperties":false},"region":{"type":"string","maxLength":64,"pattern":"^[A-Za-z]{2}(-[A-Za-z0-9]{1,3})?$"},"listing_kind":{"type":"string","enum":["mobile_plan","home_internet","earning_opportunity"]},"constraints":{"type":"object","additionalProperties":{}}},"required":["key","category","title"],"additionalProperties":false},"maxItems":20},"replace":{"type":"boolean","default":true}},"required":["interests"],"additionalProperties":false}}}},"responses":{"200":{"description":"Interests and owner_inbox_url","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Replace your standing interests: things your owner would welcome offers for, learned from your conversations (no personal data). Advertisers answer them continuously."},"get":{"operationId":"listInterests","summary":"Your open standing interests.","security":[{"agentKey":[]}],"responses":{"200":{"description":"Interests","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Your open standing interests."}},"/api/v1/interests/{key}":{"delete":{"operationId":"removeInterest","summary":"Drop one standing interest.","security":[{"agentKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Drop one standing interest."}},"/api/v1/digest":{"get":{"operationId":"checkDigest","summary":"Run this on a schedule (about 3 times a day): offers that arrived since your last check, best fit first, plus next_poll_after.","security":[{"agentKey":[]}],"parameters":[{"name":"min_fit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100}},{"name":"peek","in":"query","required":false,"schema":{"type":"boolean"},"description":"Read without advancing the cursor"}],"responses":{"200":{"description":"New offers, summary, poll policy","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Too soon; see Retry-After","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Run this on a schedule (about 3 times a day): offers that arrived since your last check, best fit first, plus next_poll_after."}},"/api/v1/wallet":{"get":{"operationId":"wallet","summary":"Developer share and owner cashback earned.","security":[{"agentKey":[]}],"responses":{"200":{"description":"Wallet","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Developer share and owner cashback earned."}},"/api/v1/offers/request":{"post":{"operationId":"requestOffers","summary":"Use this first for mobile plans, home internet and earning opportunities: send the need, structured constraints and a coarse region; get verified offers ranked purely by net value to the owner (payment never changes rank or inclusion), each with net-value math, evidence, a signed attestation and disclosure, plus a signed ranking receipt and its transparency-log index.","security":[{"agentKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"need":{"type":"object","properties":{"category":{"type":"string","enum":["mobile_plan","home_internet","earning_opportunity"]},"title":{"type":"string","minLength":3,"maxLength":140},"description":{"type":"string","maxLength":2000,"default":""}},"required":["category","title"],"additionalProperties":false},"constraints":{"type":"object","additionalProperties":{},"default":{}},"region":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"subdivision":{"type":"string","pattern":"^[A-Z]{2}-[A-Z0-9]{1,3}$"},"zip5":{"type":"string","pattern":"^\\d{5}$"}},"required":["country"],"additionalProperties":false},"horizon_months":{"type":"integer","minimum":1,"maximum":60},"proofs":{"type":"array","items":{"type":"object","properties":{"format":{"type":"string","enum":["sd-jwt-vc"]},"presentation":{"type":"string","minLength":10,"maxLength":20000}},"required":["format","presentation"],"additionalProperties":false},"maxItems":5},"ap2_intent_mandate":{"type":"object","additionalProperties":{}},"owner_assertions":{"type":"array","items":{"type":"string","enum":["age_55_plus","military","first_responder","student"]},"maxItems":4},"options":{"type":"object","properties":{"max_results":{"type":"integer","minimum":1,"maximum":50,"default":10},"include_stale":{"type":"boolean","default":false},"explain_excluded":{"type":"boolean","default":true}},"additionalProperties":false,"default":{}},"watch":{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"key":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"}},"additionalProperties":false},"expires_in_hours":{"type":"integer","minimum":1,"maximum":720,"default":72}},"required":["need"],"additionalProperties":false}}}},"responses":{"200":{"description":"Ranked offers, exclusions, receipt, log index","content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"Invalid request, personal data, or unsupported proofs/mandate","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Use this first for mobile plans, home internet and earning opportunities: send the need, structured constraints and a coarse region; get verified offers ranked purely by net value to the owner (payment never changes rank or inclusion), each with net-value math, evidence, a signed attestation and disclosure, plus a signed ranking receipt and its transparency-log index."}},"/api/v1/proofs/nonce":{"get":{"operationId":"proofNonce","summary":"Only for owner proofs: a single-use nonce (300 s) and the audience for an SD-JWT VC presentation's key-binding JWT.","security":[{"agentKey":[]}],"responses":{"200":{"description":"Nonce and audience","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Only for owner proofs: a single-use nonce (300 s) and the audience for an SD-JWT VC presentation's key-binding JWT."}},"/api/v1/proofs/issuers":{"get":{"operationId":"proofIssuers","summary":"The SD-JWT VC issuers OpenMoney trusts, their credential types and the eligibilities each proves.","responses":{"200":{"description":"Trusted issuers","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"The SD-JWT VC issuers OpenMoney trusts, their credential types and the eligibilities each proves."}},"/api/v1/categories/{kind}/schema":{"get":{"operationId":"categorySchema","summary":"The JSON Schema for one category's constraints (mobile_plan, home_internet, earning_opportunity).","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON Schema","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown category","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"The JSON Schema for one category's constraints (mobile_plan, home_internet, earning_opportunity)."}},"/api/v1/offers/{id}/attestation":{"get":{"operationId":"offerAttestation","summary":"A listing-backed offer's signed attestation (compact JWS, typ om-offer-attestation+jwt).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Attestation","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No attestation","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"A listing-backed offer's signed attestation (compact JWS, typ om-offer-attestation+jwt)."}},"/api/v1/tlog/checkpoint":{"get":{"operationId":"tlogCheckpoint","summary":"The latest signed transparency-log checkpoint (C2SP signed note).","responses":{"200":{"description":"Checkpoint","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"The latest signed transparency-log checkpoint (C2SP signed note)."}},"/api/v1/tlog/proof/inclusion":{"get":{"operationId":"tlogInclusionProof","summary":"An RFC 6962 inclusion proof for a leaf index against a tree size.","parameters":[{"name":"index","in":"query","required":true,"schema":{"type":"integer","minimum":0}},{"name":"tree_size","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Inclusion proof","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad index or size","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"An RFC 6962 inclusion proof for a leaf index against a tree size."}},"/api/v1/tlog/proof/consistency":{"get":{"operationId":"tlogConsistencyProof","summary":"An RFC 6962 consistency proof between two tree sizes.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"integer","minimum":0}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","minimum":1},"description":"Defaults to the current size"}],"responses":{"200":{"description":"Consistency proof","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad sizes","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"An RFC 6962 consistency proof between two tree sizes."}},"/api/v1/tlog/leaves":{"get":{"operationId":"tlogLeaves","summary":"A page of transparency-log leaves.","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"end","in":"query","required":false,"schema":{"type":"integer","minimum":1},"description":"Exclusive; defaults to start + 100"}],"responses":{"200":{"description":"Leaves","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"A page of transparency-log leaves."}},"/api/v1/tlog/leaves/{index}":{"get":{"operationId":"tlogLeaf","summary":"One transparency-log leaf.","parameters":[{"name":"index","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Leaf","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No leaf","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"One transparency-log leaf."}}}}