Problems with Vercel REST API

Hello this isn’t related to Vercel SDK yet. But

  1. Is there an API where I can get the team ID of an access token? My use case is that I recently added manual access token authentication mechanism. But these tokens can be generated to have access to only a single team. In that case I’d need to get a team ID as all the endpoints for projects or deployments under a team seem to require it. I found access token metadata API but it doesn’t return team ID.
  2. Am I right to assume that teamId is always required for projects under teams (that is not the user’s defaultTeam), do I need to always pass it in? I currently don’t. I’ll have to fix a ton of my logic in it’s required haha.

EDIT: For example currently vscode-vercel://deployments/$deploymentId/$name.log will open build logs as a file. If teamId is required that means I’ll have to restructure the URL so that teamId is also included.