Documentation Index
Fetch the complete documentation index at: https://tiktools.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API Key Authentication
Every request requires an API key. Pass it as a query parameter:Getting Your API Key
- Sign up at tik.tools
- Go to the Dashboard
- Your free sandbox key is generated automatically
- 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
- Server-side: Generate a JWT using your API key via the
/authentication/jwtendpoint - 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
| Parameter | Type | Required | Description |
|---|---|---|---|
expire_after | number | No | Seconds until expiry (default: 3600) |
allowed_creators | string[] | No | Restrict connections to specific TikTok usernames |
max_websockets | number | No | Maximum concurrent WebSocket connections (default: 1) |
Rate Limit Headers
Every API response includes rate limit information in headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per window |
X-RateLimit-Remaining | Remaining requests in current window |
X-RateLimit-Reset | Unix timestamp when the window resets |