does the livekit credentials get expired after com...
# ask-ai
e
does the livekit credentials get expired after completed its 5000 min free trails
t
Thanks for reaching out, Nikhil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Regarding your question about the 5,000‑minute free trial: your project API key and secret do not automatically expire when the trial minutes are used up. Credentials remain tied to the project and stay valid. What changes after the trial minutes are exhausted: • You cannot consume additional minutes or resources unless you upgrade to a paid plan. • If the project is suspended for inactivity or billing reasons, service access may be restricted, but the credentials themselves do not automatically expire. • Once you upgrade, you can continue using the same credentials. Would you like help checking your project’s current usage or upgrading your plan? Sources: Authentication | LiveKit docs | LiveKit Pricing | LiveKit | server-sdk-ruby | livekit/livekit_composite | DeepWiki
e
explain me in deeply like i have my scenario like i have livekit project and around it ~5000 min only been utilised but now onwards i am not gettign to connecting to that room
t
You're saying you used ~5,000 minutes but now cannot connect to the room — I’ll help diagnose this. A few likely causes and targeted checks: 1) Confirm your plan and quota • Are you on the Build (free) plan? The free plan has a 5,000 participant‑minute monthly quota. If that quota is exhausted, new sessions can be blocked until the next cycle or an upgrade. 2) Check concurrency limits (very common) • Free plan concurrent participant limit is 100. If that is reached (or an agent concurrency cap is hit), additional joins will fail even if total minutes look ok. Action: Check current active participants in the dashboard. 3) Verify credentials and tokens • API key/secret remain valid unless revoked. Connect tokens are JWTs with an
exp
and required grants (roomJoin, room name, etc.). A malformed/expired token or missing grants will prevent connect. Action: Decode the token (e.g., jwt.io) and confirm
exp
,
video.roomJoin
, and
video.room
are correct; confirm API key is active in Project settings. 4) Inspect client/network issues • WebRTC needs UDP and/or TURN. Corporate firewalls, VPNs, or blocked ports can stop connects. Action: Run the LiveKit Connection Test from the same network: https://livekit.io/connection-test 5) Agent cold-starts or billing suspension • If using Agents, cold starts can cause short connection failures (10–20s). If billing/payment failed the project may be restricted. Action: Check project billing status and whether agents were shut down. What I need from you to narrow this quickly • The exact error message you see when connecting (client console/network logs). • Your plan type (Build/free or paid). • Whether the connections are humans, agents, or an ingress source. • A decoded token payload (remove sensitive fields) or confirm token fields shown:
exp
,
video.roomJoin
,
video.room
. Give those details and I’ll tell you the most likely cause and next steps. Would you like me to start with checking your plan/usage or with the token/error message? Sources: Quotas and limits | LiveKit docs | Authentication | LiveKit docs | Diagnosing Connection Errors with Connection Test Utility | Firewall Tips
e
see i have fave the isue in that i goes upto the register worker and not procedding to the next steps
t
Thanks — you said the flow stops at "register worker" and doesn't proceed. To diagnose quickly, please share: • Your LiveKit plan (Build/free or paid). • The exact client/server log lines or error shown after "register worker". • Whether the worker ever receives a
job_request
event (yes/no). • Whether this is a human participant, an Agent, or Ingress trying to connect. • A decoded token payload (remove secrets) or confirm token fields:
exp
,
video.roomJoin
,
video.room
. • Screenshot or dashboard info showing current active participants and Usage (if possible). While you gather that, check these three things now: 1. Usage/quotas: Project → Usage — ensure you haven’t exceeded the 5,000 participant‑minute monthly quota (free plan). 2. Concurrency: Confirm concurrent participants <100 (free) and agent concurrency limits aren’t hit. 3. Agent dispatch: Verify worker registered with the correct
agent_name
and your code is listening for/accepting
job_request
(ensure
job_handler
calls
accept
). Send the logs and plan/usage details and I’ll tell you the exact next step. Sources: LiveKit Pricing | Quotas and limits | LiveKit docs | Agents Framework | livekit/livekit_composite | DeepWiki | LiveKit Docs
e
is there any livekit api where i can check is the keys are working or not livekit api designed by the livekit only
t
There is no dedicated LiveKit HTTP API endpoint that just returns “keys are valid.” To verify your API key/secret you can: • Generate an access token signed with your API key/secret (using a Server SDK). If token creation/signing succeeds and the token has the correct grants (
video.roomJoin
,
video.room
, etc.), the credentials are valid. • Use a server SDK call that requires auth (for example, list rooms). If the SDK call succeeds, keys are working; if it returns an auth error, the key/secret are invalid or revoked. • Use the
lk
CLI (e.g.,
lk room list
) configured with your credentials — successful commands confirm the keys. If you want, tell me which environment (SDK language or
lk
CLI) you use and I’ll give the exact command/snippet to run. Sources: Authentication | LiveKit docs | LiveKit CLI project management | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWiki
e
then how do i check is the livekit credentials is working or not
t
You're asking how to check whether your LiveKit API key/secret are working. Quick options — pick one and I can give the exact command/snippet for your environment: • CLI (fastest): run the token-create or room-list command. Example to test keys:
Copy code
lk token create --api-key YOUR_API_KEY --api-secret YOUR_API_SECRET --identity test --room test-room --join --valid-for 1h
If it returns a JWT, keys are valid. If it errors (auth/signature), keys are invalid. • Server SDK (recommended if you have backend code): attempt to generate an Access Token signed with your key/secret. If token generation succeeds, credentials are correct. Example languages: Node/Python/Rust. • Auth-required API call: call an endpoint that requires auth (e.g., list rooms via SDK or CLI). Success = credentials work; auth error = they don’t. Tell me which you prefer (CLI, Node, Python, Rust, or
lk
CLI) and I’ll give the exact command/snippet and the error checks to run. Sources: Rust SDKs | livekit/livekit_composite | DeepWiki | Webhooks | LiveKit docs | Creating SIP Inbound Trunks and Dispatch Rules with Python SDK
e
i would prefer python
t
Below is a minimal Python example to verify your LiveKit API key and secret by generating an Access Token and optionally listing rooms. If token creation succeeds you know the key/secret are valid; if it raises an auth/signature error, they are not. 1) Install the server SDK if you haven't:
Copy code
pip install livekit-server-sdk
2) Test code (replace with your values):
Copy code
import os
from livekit import AccessToken, VideoGrants
from livekit.room import RoomServiceClient
from google.protobuf.json_format import MessageToDict

API_KEY = os.getenv("LIVEKIT_API_KEY", "YOUR_API_KEY")
API_SECRET = os.getenv("LIVEKIT_API_SECRET", "YOUR_API_SECRET")
LIVEKIT_URL = os.getenv("LIVEKIT_URL", "https://cloud.livekit.io")  # or your custom URL

# 1) Try generating a token (verifies signing with key/secret)
try:
    grants = VideoGrants(room_join=True, room="test-room")
    token = AccessToken(API_KEY, API_SECRET).with_identity("test-user").with_video_grants(grants).to_jwt()
    print("Token generated OK:", token[:40] + "...")
except Exception as e:
    print("Token generation failed — credentials may be invalid:", e)
    raise

# 2) (Optional) Try an authenticated API call: list rooms
try:
    client = RoomServiceClient(LIVEKIT_URL, api_key=API_KEY, api_secret=API_SECRET)
    resp = client.list_rooms({})
    print("List rooms succeeded. Rooms:", MessageToDict(resp).get("rooms", []))
except Exception as e:
    print("Listing rooms failed — credentials may be invalid or unauthorized:", e)
How to interpret results: • Token generated OK -> API key/secret are valid for signing. • Listing rooms succeeds -> credentials are valid and authorized. • Any auth/signature error -> keys are invalid, revoked, or mismatched. If you want, paste the error you get and I’ll help interpret it.
e
is there any livekit api so do i check how much time in free trail is remining in my livekit key
t
There is no LiveKit API that returns "remaining free trial minutes" for your project. To check remaining free‑tier usage you can: • Open the LiveKit Cloud dashboard: Project → Usage to see current consumption and remaining quotas. • Note quotas reset monthly (first of the month). • If you’re on Scale or higher, the Analytics API can provide programmatic session/connection minutes; this is not available on the free Build plan. If you want, I can: • Give exact steps/screens to find Usage in the dashboard, or • Show a Python example for using the Analytics API (if your plan supports it). Which would you like? Sources: Quotas and limits | LiveKit docs | LiveKit Pricing | LiveKit Cloud billing | LiveKit docs | Analytics API | LiveKit docs
e
i generated that livekit using the temp mail so i am unable to access the dashboard of that so how do i do that to check the time duration of my livekit free trail
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
e
how do i check the free trail remaining duration • via livekit build in api • not via the dashboard like forgot my email address • how do i get realtime time utilised and how much free trail timing is remaining