Creating API for user