Help Center/ Live/ FAQs/ API Usage/ Why Is "projectId in token is nil" Returned When I Call an API?
Updated on 2025-09-28 GMT+08:00

Why Is "projectId in token is nil" Returned When I Call an API?

The possible cause is that the project used to obtain the token is different from that used to call the Live API. Live is a project-level service, which is deployed in specific regions.

For example, if the endpoint of the token is cn-north-4, the token takes effect only in this region and can be used only to call Live APIs in this region. For details about how to obtain the project ID, see Obtaining a Project ID.