ServiceM8 phone Integrate API with softphone

Originally posted by Jenan

How can we Integrate an API with ServiceM8 phone and our own with softphone?