## 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_capture.py
now = timezone.now()
        tomorrow = now + timedelta(days=1, hours=2)
        tomorrow_sent_at = now + timedelta(days=1, hours=2, minutes=10)
        self.client.post(
            "/track",
            data={
                "sent_at": tomorrow_sent_at.isoformat(),
                "data": self._dict_to_b64(
                    {"event": "$pageview", "timestamp": tomorrow.isoformat(), "properties": {"distinct_id": "eeee",},}
                ),
                "api_key": self.team.api_token,  # main diffe
            },
        )
        arguments = self._to_arguments(patch_process_event_with_plugins)
        arguments.pop("now")  # c
        # right time sent as sent_at to process_event
        timediff = arguments["sent_at"].timestamp() - tomorrow_sent_at.timestamp()
        self.assertLess(abs(timediff), 1)
        self.assertEqual(arguments["data"]["timestamp"], tomorrow.isoformat())
    def test_incorrect_json(self):
        response = self.client.post(
            "/capture/", '{"event": "incorrect json with trailing comma",}', content_type="application/json"
        )
        self.assertEqual(response.json()["code"], "validation")