Skip to main content

API Key Authentication

Every request requires an API key. Pass it as a query parameter:
Never expose your API key in frontend code. Use JWT tokens for client-side applications.

Getting Your API Key

  1. Sign up at tik.tools
  2. Go to the Dashboard
  3. Your free sandbox key is generated automatically
  4. Upgrade to Basic, Pro, or Ultra for higher limits

JWT Authentication (Frontend)

For web applications where the frontend needs to connect directly to the WebSocket, use JWT tokens to avoid exposing your API key.

How It Works

  1. Server-side: Generate a JWT using your API key via the /authentication/jwt endpoint
  2. Client-side: Connect to the WebSocket using the JWT token instead of the API key

Generate a JWT

Use the JWT in Frontend

JWT Parameters

Rate Limit Headers

Every API response includes rate limit information in headers: See Rate Limits for tier-specific limits.