Unable to create API