x-api-key header.
For a general overview of authentication flows (querystring, header, OTP + JWT) that apply to both APIs, see Authentication. This page focuses on the LENS-specific key management, feature gating, and error model.
Example
Managing API keys
API keys are managed through the TIC Lens web application under Settings → API Keys. Each key is tied to a team and inherits the team’s subscription plan and features.Key properties
Subscription and features
Your API key is linked to a team subscription. Endpoints are gated by plan features (e.g.pro, max, enterprise). If your plan does not include the required feature, the endpoint returns 403 with the missing feature name:
403:
Brute-force protection
After 10 failed attempts within a 15-minute window, the IP is blocked for 15 minutes. All requests from that IP will return401 until the block expires.
The API tracks failed authentication attempts per IP address. During a block:
Endpoint access
API keys can only access endpoints marked as public API endpoints. Attempting to call an internal endpoint returns403:
Request validation
Requests containing SQL injection, XSS, or path traversal patterns are blocked with400 Bad Request. All requests are inspected for malicious patterns before reaching the application.
Error reference
All error responses use the RFC 7807 Problem Details format with an additionalcode field.