glamorous-oil-12326
05/08/2025, 6:59 PMtall-airline-16756
05/08/2025, 6:59 PMtall-airline-16756
05/08/2025, 6:59 PMproject_id
can typically be obtained from the client’s transport credentials or through Google’s default authentication mechanism. If you are using code, you might use the following approach:
try:
project_id = client.transport._credentials.project_id # type: ignore
except AttributeError:
from google.auth import default as ga_default
_, project_id = ga_default()
This will either extract the project_id
from the client’s credentials or use Google’s default authentication to retrieve it.
Sources: livekit.plugins.google API documentationglamorous-oil-12326
05/08/2025, 6:59 PMtall-airline-16756
05/08/2025, 6:59 PM/projects/
that starts with p_
.
For example, when making API requests to the LiveKit Analytics API, the project ID is used as part of the endpoint URL:
<https://cloud-api.livekit.io/api/project/${PROJECT_ID}/sessions/>
Sources: Analytics API | LiveKit Docs