An extension to connect to the SAPI API