i wouldn't think you'd need the api at all you can just use sql commands directly to the DB via your agent procedures. also in 6.3 you can bang sql commands into the report. However it maybe easyer to do most of it in SQL view which you reat your self on the server.
Un fortunately im quite sure you cant use the API to do what you want