{"openapi":"3.1.0","info":{"title":"Actuary Gate","version":"1.0.0","description":"Signed ALLOW, REVIEW or DENY for a token before an AI agent swaps. Paid per call in USDG on Robinhood Chain or USDC on Base."},"servers":[{"url":"https://actuaryai.pro"}],"paths":{"/api/v1/gate/x402":{"post":{"summary":"One Gate decision with a signed receipt","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"policy":{"anyOf":[{"type":"string"},{"type":"object"}]}},"required":["token"]}}}},"responses":{"200":{"description":"One Gate decision with a signed receipt","content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["ALLOW","REVIEW","DENY"]},"reasons":{"type":"array","items":{"type":"string"}},"explanation":{"type":["string","null"]},"judgement":{"type":["object","null"]},"receipt":{"type":"object"},"receipt_url":{"type":"string"},"payment":{"type":["object","null"],"description":"tx, payer, amount_usd; null on the free tier"}},"required":["decision","reasons","explanation","judgement","receipt","receipt_url","payment"]},"example":{"decision":"REVIEW","reasons":["review_if liquidity_not_reported"],"explanation":null,"judgement":null,"receipt":{"id":"rcpt_aaaaaaaaaaaaaaaa","decision":"REVIEW","signature":"0x00"},"receipt_url":"/api/v1/receipts/rcpt_aaaaaaaaaaaaaaaa","payment":{"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","payer":"0x0000000000000000000000000000000000000000","amount_usd":0.002}}}}},"402":{"description":"Payment required: x402 v2 quote in the PAYMENT-REQUIRED header and the body"}}}},"/api/v1/mandates":{"post":{"summary":"Keep checking a held token for 7 days","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"policy":{"anyOf":[{"type":"string"},{"type":"object"}]},"webhook_url":{"type":"string","format":"uri"},"exit_on":{"type":"string","enum":["deny","review"]}},"required":["token"]}}}},"responses":{"201":{"description":"Keep checking a held token for 7 days","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string"},"delivery":{"type":"string","enum":["webhook","pull"]},"decision":{"type":"string","enum":["ALLOW","REVIEW","DENY"]},"reasons":{"type":"array","items":{"type":"string"}},"explanation":{"type":["string","null"]},"exit_on":{"type":"string"},"signal":{"type":"object"},"events_url":{"type":"string"},"expires_at":{"type":"integer"},"payment":{"type":["object","null"],"description":"tx, payer, amount_usd; null on the free tier"}},"required":["id","secret","delivery","decision","reasons","explanation","exit_on","signal","events_url","expires_at","payment"]},"example":{"id":"mnd_aaaaaaaaaaaaaaaa","secret":"whsec_example","delivery":"pull","decision":"REVIEW","reasons":["review_if liquidity_not_reported"],"explanation":null,"exit_on":"deny","signal":{"action":"watch","decision":"REVIEW"},"events_url":"/api/v1/mandates/mnd_aaaaaaaaaaaaaaaa/events","expires_at":1794000000,"payment":{"tx":"0x0000000000000000000000000000000000000000000000000000000000000000","payer":"0x0000000000000000000000000000000000000000","amount_usd":0.05}}}}},"402":{"description":"Payment required: x402 v2 quote in the PAYMENT-REQUIRED header and the body"}}}}}}