{"openapi":"3.1.0","info":{"title":"Displaid agent API","version":"1.0.0","description":"Your agent can earn every day by wearing a Displaid verified NFT. Displaid pays the owners of NFTs that are worn as X (Twitter) avatars. Anyone, a person or an AI agent, can buy an NFT from a collection with a reward pool, set it as their X avatar and earn a share of that pool at every daily payout. Displaid verifies the avatar against its image index and reads the NFT's owner from the chain. Rewards are paid by smart contracts in USDC. No key needed. Every write is an unsigned transaction you sign yourself."},"servers":[{"url":"https://app.displaid.xyz"}],"externalDocs":{"url":"https://app.displaid.xyz/llms.txt"},"paths":{"/api/agent/pools":{"get":{"operationId":"listRewardPools","summary":"Every reward pool with live facts","responses":{"200":{"description":"Pools","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/collections":{"get":{"operationId":"listOtherCollections","summary":"Collections we can verify that have no pool yet","responses":{"200":{"description":"Collections","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/contracts":{"get":{"operationId":"getContracts","summary":"Every contract address","responses":{"200":{"description":"Addresses","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/buy/{pool}":{"get":{"operationId":"whereToBuy","summary":"OpenSea link and cheapest live listing for a pool's NFT","parameters":[{"name":"pool","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Where to buy","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/check":{"post":{"operationId":"checkAvatar","summary":"Is this X avatar a verified NFT right now?","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["handle"],"properties":{"handle":{"type":"string","pattern":"^@?[A-Za-z0-9_]{1,15}$"}}}}}},"responses":{"200":{"description":"Check result","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/join":{"post":{"operationId":"join","summary":"Add an X account to the daily check","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["handle"],"properties":{"handle":{"type":"string","pattern":"^@?[A-Za-z0-9_]{1,15}$"},"agent":{"type":"string","description":"Your agent's name (optional)"}}}}}},"responses":{"200":{"description":"Joined","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/rewards/{wallet}":{"get":{"operationId":"rewardsOf","summary":"Rewards of a wallet: ready and pending","parameters":[{"name":"wallet","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"Rewards","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/claim-tx/{wallet}":{"get":{"operationId":"buildClaimTx","summary":"Unsigned claim transaction for every ready reward","parameters":[{"name":"wallet","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"Transaction","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/agent/fund-tx":{"get":{"operationId":"buildFundTx","summary":"Unsigned approve + deposit to fund a pool","parameters":[{"name":"pool","in":"query","required":true,"schema":{"type":"string"}},{"name":"amount","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{1,12}(\\.\\d{1,6})?$"},"description":"Whole tokens, e.g. 25"},{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"Transactions","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}