api receive