Programmatic access to intelligent traffic routing
The CloakMe API allows developers to create, manage, and analyze redirect links with advanced bot detection and traffic filtering built in. Your links automatically block bots, email scanners, VPNs, and ad reviewers — routing real humans to your offer URL while sending filtered traffic to your white URL.
Base URLhttps://api.cloakme.ru/api/developer
Auth headerX-API-Key: your_api_key_here
Content-Typeapplication/json
Authentication
All API requests must include your API key in the X-API-Key header. You can find your API key in the dashboard under Settings → API Key.
# Using X-API-Key header (recommended)curl https://api.cloakme.ru/api/developer/me \
-H"X-API-Key: YOUR_API_KEY"# Using Authorization Bearercurl https://api.cloakme.ru/api/developer/me \
-H"Authorization: Bearer YOUR_API_KEY"
Security notice: Your API key grants full access to your account. Never expose it in client-side code or public repositories. Rotate it immediately if compromised.
Base URL
The API is available at:
https://api.cloakme.ru/api/developer
All responses are JSON. Timestamps are ISO 8601 UTC.
Rate Limits
Requests are rate-limited per API key. If you exceed a limit you will receive a 429 Too Many Requests response.
Endpoint
Limit
All API endpoints
60 requests / minute per API key
POST /links
10 requests / minute
GET /links/{id}/stats
30 requests / minute
Rate limit response headers
Every API response includes the following headers:
Creates a new redirect link. The returned redirect_url is the URL you share in emails, ads, or embed in your app. All bot detection and filtering is applied automatically when a visitor hits that URL.
Request body
Field
Type
Description
namerequired
string
Human-readable label for this link
offer_urlrequired
string
Destination URL for real human traffic
white_urlrequired
string
Destination URL for filtered/bot traffic
filters
object
Filter configuration — see filters object below. All fields are optional.
is_active
boolean
Whether the link is active. Default: true
Filters object
All filter fields are optional. The values below are defaults.
{"block_bots": true,"block_vpn": false,"block_datacenter": false,"block_proxy": false,"block_tor": false,"block_ad_platforms": true,"block_email_scanners": true,"allowed_countries": [], // empty = all countries allowed"blocked_countries": [],"allowed_devices": [],"allowed_browsers": [],"blocked_ip_ranges": []}
Note: block_email_scanners is always enforced regardless of this setting.
Partially updates a link. Send only the fields you want to change — omitted fields remain unchanged. To update filters, send the entire filters object with the values you want; individual filter fields are merged.
Returns click statistics and recent click history for a link. offer_rate is the percentage of visitors who passed all filters and were sent to your offer URL.
Browser redirect endpoint. Use the redirect_url returned by the API as the link you share with end users — it points to this endpoint. No authentication is required.
How it works
The visitor's IP, user-agent, and referrer are evaluated against your link's filters
If they pass all checks (real human): 302 redirect to your offer_url via the JS challenge gate
If they are filtered (bot, scanner, VPN, bad country, etc.): 302 redirect to your white_url
Example
https://cloakme.ru/go/E0DcgZAboh5K0cUz_o3a7
This URL is safe to embed in email campaigns, paid ads, SMS, or any channel where bots and ad reviewers may follow your links before real users do.
No authentication needed. This is the public-facing redirect URL. The token uniquely identifies which link to use — keep your offer_url private; only share the redirect_url.