No API for this is available. Applications that wish to have this info would need to monitor the device continuously via TAPI to receive calls events, and persiste their own call meta-data info.
The mechanism for historical reporting would be to have CUCM deliver Call Detail Records to the app - this would be a continuous feed of CSV files for all completed calls in the system. The application would need to process/query these files in order to determine historical calls for any particular device:
Cisco DevNet: sxml - Overview - Overview