Developers
A developer-first interface, in development
These examples show the API direction we are designing for Cloak and Radar. They are illustrative and may change before release. Talk to us if your evaluation depends on a particular language, framework, or integration.
input: [EMAIL_1] model: approved restore: boundary-only
Cloak quickstart
Route a single request through a masked exit point in a specific country, holding the same exit IP for the rest of the session.
curl
curl -X POST https://api.maskflare.com/v1/cloak/request \
-H "Authorization: Bearer $MASKFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/pricing",
"country": "de",
"session": "sticky"
}'Node.js
import { MaskFlare } from "@maskflare/sdk";
const client = new MaskFlare({ apiKey: process.env.MASKFLARE_API_KEY });
const response = await client.cloak.request({
url: "https://example.com/pricing",
country: "de",
session: "sticky",
});
console.log(response.status, response.body);Python
from maskflare import MaskFlare
client = MaskFlare(api_key=os.environ["MASKFLARE_API_KEY"])
response = client.cloak.request(
url="https://example.com/pricing",
country="de",
session="sticky",
)
print(response.status, response.body)Radar quickstart
Score a request before deciding whether to allow, challenge, or block it.
curl
curl -X POST https://api.maskflare.com/v1/radar/score \
-H "Authorization: Bearer $MASKFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ip": "203.0.113.42",
"user_agent": "Mozilla/5.0 ...",
"endpoint": "login"
}'Node.js
const score = await client.radar.score({
ip: request.ip,
userAgent: request.headers["user-agent"],
endpoint: "login",
});
if (score.risk === "high") {
return challenge(request);
}SDKs
- HTTP / cURLPlanned
- Node.jsPlanned
- PythonPlanned
- GoUnder consideration
Interface notes
- Design preview 0.1
Proposed Cloak request-routing and Radar risk-scoring interfaces for early customer feedback.
The examples on this page are design previews, not live endpoints. A versioned API reference and availability information will be published as implementation progresses.