{"openapi":"3.0.0","info":{"title":"Bitte Karma API","description":"API for retrieving account karma and badges based on actions performed by the account on NEAR blockchain.","version":"1.0.0"},"servers":[{"url":"http://localhost:3000"}],"x-mb":{"account-id":"agentools.near","assistant":{"name":"Karma Agent","description":"An assistant that provides account karma and badges based on actions performed by the account and its current state.","instructions":"Get information about an account's karma and badges.","image":"http://localhost:3000/karma-agent-logo.png"}},"components":{"schemas":{},"parameters":{}},"paths":{"/api/karma/{account}":{"get":{"operationId":"get-account-karma","description":"Get account karma and badges based on actions performed by the account.","parameters":[{"schema":{"type":"string","description":"The identifier for the account to get karma and badges for, e.g. ref-finance.near"},"required":true,"description":"The identifier for the account to get karma and badges for, e.g. ref-finance.near","name":"account","in":"path"}],"responses":{"200":{"description":"Successful response with karma and badges","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"badges":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"contractId":{"type":"string"},"minBalance":{"type":"number"},"karma":{"type":"number"}},"required":["name","description","karma"]}},"karma":{"type":"number"}},"required":["accountId","badges","karma"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}}}}