adding api task