Add api functions file