TIC

All LENS API requests require an API key passed via the x-api-key header.

The key is only read from this header; a key in the query string is ignored. This page covers key management, feature gating and the error model.

Example

curl -H "x-api-key: YOUR_API_KEY" \
  "https://lens-api.tic.io/search-public/companies?q=Volvo&query_by=names.nameOrIdentifier"

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

Property Description
Scopes Comma-separated access scopes controlling which operations the key can perform
Valid until Optional expiry date after which the key stops working
Blocked until Temporary block set by an administrator
Monthly limit Maximum requests per calendar month
Per-minute limit Maximum requests per sliding 60-second window
IP limit Maximum number of distinct IP addresses that can use the key per month

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:

{
  "status": 403,
  "title": "Feature Not Available",
  "detail": "Your subscription does not include the 'enterprise' feature.",
  "code": "feature_required",
  "features": ["enterprise"]
}

If the team’s subscription has expired, all endpoints return 403:

{
  "status": 403,
  "title": "Subscription Expired",
  "detail": "Your team's subscription has expired. Please renew to continue.",
  "code": "subscription_expired"
}

Failed sign-ins

An IP address that keeps failing to authenticate is locked out of everything: the LENS API, the LENS web app’s sign-in, the MCP server and mcp.tic.io alike. A failure is a key or token that is refused (401), or a sign-in that is refused. An address is locked when, within 15 minutes, it presents 10 different wrong keys or tokens, or fails 100 times in all.

The lock lasts an hour the first time, a day the second, and a week from the third, counted over 30 days. While it lasts, every request from the address gets 429 Too Many Requests with a Retry-After header:

{
  "error": "locked_out",
  "message": "Too many failed sign-ins from this address. It is locked out; try again in 60 minutes.",
  "retryAfterSeconds": 3600
}

An expired session and a request without any key are not counted. If an address of yours is locked, check the key your integration sends; support@tic.io can lift a lock.

Endpoint access

API keys can only access endpoints marked as public API endpoints. Attempting to call an internal endpoint returns 403:

{
  "status": 403,
  "title": "Endpoint Not Available",
  "detail": "This endpoint is not available for API key authentication.",
  "code": "endpoint_not_available"
}

Request validation

Requests containing SQL injection, XSS, or path traversal patterns are blocked with 400 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 additional code field, except the IP restriction refusals, which are plain text.

Status Code Cause
400 - Request blocked by input validation (SQL injection, XSS, path traversal)
401 missing_token No x-api-key header provided
401 invalid_api_key API key not found
403 api_key_blocked Key has been temporarily blocked by an administrator
403 api_key_expired Key has passed its ValidUntil date
403 subscription_required Team has no active subscription
403 subscription_expired Team subscription has expired
403 feature_required Endpoint requires a plan feature the team doesn’t have
403 endpoint_not_available Endpoint is not available for API key access
403 insufficient_permissions The key lacks a scope the endpoint needs, such as risk-model-input for the risk model input. Scopes are added by TIC
403 - IP address refused: an abuse score above 25, or a country that is refused. Plain-text body (see IP restrictions)
429 rate_limit_exceeded Rate limit exceeded (see Rate limits)
429 locked_out The address is locked out after failed sign-ins (see Failed sign-ins). The body’s error field holds the code