## Bug description

Since users can now be part of multiple projects, the `get_team_from_token` function used in capture and decide endpoints cannot work reliably with personal API keys. These endpoints should be e.g. nested under `/api/projects/:project_id` _or_ should accept `project_id` in request body.

#### *Thank you* for your bug report – we love squashing them!

posthog/models/team.py
if not is_personal_api_key:
            try:
                team = Team.objects.get(api_token=token)
            except Team.DoesNotExist:
                return None
        else:
            try:
                personal_api_key = (
                    PersonalAPIKey.objects.select_related("user")
                    .select_related("team")
                    .filter(user__is_active=True)
                    .get(value=token)
                )
            except PersonalAPIKey.DoesNotExist:
                return None
            else:
                assert personal_api_key.team is not None
                team = personal_api_key.team
                personal_api_key.last_used_at = timezone.now()
                personal_api_key.save()
        return team
class Team(models.Model):