## 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
my_label = "Test"
        my_key = PersonalAPIKey(label=my_label, team=self.team, user=self.user)
        my_key.save()
        response = self.client.get(f"/api/personal_api_keys/{my_key.id}/")
        self.assertEqual(response.status_code, 200)
        response_data = response.json()
        response_data.pop("created_at")
        self.assertDictEqual(
            response_data,
            {
                "id": my_key.id,
                "label": my_label,
                "last_used_at": None,
                "user_id": self.user.id,
                "team_id": self.team.id,
            },
        )
    def test_get_someone_elses_personal_api_key(self):
        other_user = self._create_user("abc@def.xyz")
        other_key = PersonalAPIKey(label="Other test", team=self.team, user=other_user)
        other_key.save()
        response = self.client.get(f"/api/personal_api_keys/{other_key.id}/")
        self.assertEqual(response.status_code, 404)
        response_data = response.json()
        self.assertDictEqual(response_data, self.ERROR_RESPONSE_NOT_FOUND)
class TestPersonalAPIKeysAPIAuthentication(TransactionBaseTest):