## 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
event_names_with_usage: JSONField = JSONField(default=list)
    event_properties: JSONField = JSONField(default=list)
    event_properties_with_usage: JSONField = JSONField(default=list)
    event_properties_numerical: JSONField = JSONField(default=list)
    created_at: models.DateTimeField = models.DateTimeField(auto_now_add=True)
    updated_at: models.DateTimeField = models.DateTimeField(auto_now=True)
    anonymize_ips: models.BooleanField = models.BooleanField(default=False)
    completed_snippet_onboarding: models.BooleanField = models.BooleanField(default=False)
    ingested_event: models.BooleanField = models.BooleanField(default=False)
    uuid: models.UUIDField = models.UUIDField(default=UUIDT, editable=False, unique=True)
    session_recording_opt_in: models.BooleanField = models.BooleanField(default=False)
    plugins_opt_in: models.BooleanField = models.BooleanField(default=False)
    
    
    opt_out_capture: models.BooleanField = models.BooleanField(default=False)
    
    
    users: models.ManyToManyField = models.ManyToManyField(
        "User", blank=True, related_name="teams_deprecated_relationship"
    )
    signup_token: models.CharField = models.CharField(max_length=200, null=True, blank=True)
    objects = TeamManager()
    def __str__(self):
        if self.name:
            return self.name
        if self.app_urls and self.app_urls[0]:
            return ", ".join(self.app_urls)
        return str(self.pk)
    __repr__ = sane_repr("uuid", "name", "api_token")