## 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
import base64
import gzip
import json
from datetime import timedelta
from typing import Any
from unittest.mock import patch
from urllib.parse import quote
import lzstring
from django.utils import timezone
from freezegun import freeze_time
from posthog.models import PersonalAPIKey
from .base import BaseTest
class TestCapture(BaseTest):