adding api intergration