Authenticate API key

Validates authentication for a key and returns the team and environment that the key belongs to.