## 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/api/test/test_personal_api_keys.py
key = PersonalAPIKey(label="Test", team=self.team, user=self.user)
        key.save()
        response = self.client.get("/api/dashboard/", HTTP_AUTHORIZATION=f"Bearer  {key.value}  ")
        self.assertEqual(response.status_code, 200)
    def test_query_string(self):
        key = PersonalAPIKey(label="Test", team=self.team, user=self.user)
        key.save()
        response = self.client.get(f"/api/dashboard/?personal_api_key={key.value}")
        self.assertEqual(response.status_code, 200)
    def test_body(self):
        key = PersonalAPIKey(label="Test", team=self.team, user=self.user)
        key.save()
        response = self.client.get("/api/dashboard/", {"personal_api_key": key.value})
        self.assertEqual(response.status_code, 200)
    def test_user_not_active(self):
        self.user.is_active = False
        self.user.save()
        key = PersonalAPIKey(label="Test", team=self.team, user=self.user)
        key.save()
        response = self.client.get("/api/user/", HTTP_AUTHORIZATION=f"Bearer {key.value}")
        self.assertEqual(response.status_code, 401)
    def test_user_endpoint(self):
        
        key = PersonalAPIKey(label="Test", team=self.team, user=self.user)
        key.save()
        response = self.client.get("/api/user", HTTP_AUTHORIZATION=f"Bearer {key.value}")
        self.assertEqual(response.status_code, 200)