I am searching a way to get call and sms log history details.
There is no API for this.
Feel free to file an enhancement request for such an API but be aware that, given Apple’s position on privacy, I think it’s very unlikely that you’ll get it.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"