Connection Issue: 401 Unauthorized / Invalid API Key on LiveKit Cloud

Hello LiveKit Support Team,

I am experiencing a persistent connection issue with my LiveKit Cloud project. Despite verifying my credentials multiple times, I am receiving a 401 Unauthorized error during the initial handshake.

Environment Context:

  • Platform: The project is built and hosted on the Base44 platform

  • Configuration: I have already explicitly defined and configured the API keys and secrets within our environment variables on the Base44 platform.

Project Details:

  • Project URL: boston-consult-ovwz3ohq.livekit.cloud

  • API Key (starts with): APISCY...

Error Description: The client fails to establish a signal connection when fetching region settings from https://boston-consult-ovwz3ohq.livekit.cloud/settings/regions. The console error is: ConnectionError: could not establish signal connection: invalid API key.

Troubleshooting performed:

  1. Confirmed that the API Key and Secret are correctly set in our Base44 environment.

  2. Verified the “API” prefix on the key.

  3. Double-checked that the wsURL matches our project dashboard.

Could you please verify if there is any sync issue between this API key and the project URL on your end?

Thank you, Rotem

Maybe you have reversed your key and secret?

i check in the dashboard few times but the issue is probably from the settings of Livekit dashboard

What do you have working so far? I see an agent in your account created with agent builder, if you are having trouble connecting to that from a client, perhaps try with the Agents playground first which lets you select the project to connect to, so you don’t have to worry about keys: Agents playground | LiveKit Documentation

Have a look at this guide for resolving this issue: