create api
get rate api