creating api_key scope