Score Signup

Evaluate signup attempts in real time and return a prescriptive verdict (action: "allow" | "challenge" | "block"), contextual user rejection copy, recommended HTTP status codes, and calibrated trust score with multi-factor breakdowns.

POST/v1/score-signup Auth required

Analyzes signup data using 4 parallel engines (Email Intelligence, Network Analysis, Velocity Checks, Client & User-Agent) with cross-factor threat correlation. Legacy /score-signup is also supported as an alias.

Request Headers

ParameterTypeRequiredDescription
Content-TypestringRequiredMust be application/json
X-API-KeystringRequiredYour SiftlyAPI key (sk_live_...). Can also be passed via Authorization: Bearer <key>
X-SiftlyAPI-ModestringOptionalOptional evaluation mode. Pass "audit" to run in 7-day shadow audit mode: SiftlyAPI calculates threat diagnostics but overrides action: "allow" so signups are not blocked during testing, while audit_action carries the authentic verdict and suggested_* fields stay populated. Omit for active enforcement. Any value other than "audit" is treated as active with a warning.
Idempotency-KeystringOptionalOptional UUID or unique string (max 128 chars). Prevents duplicate score evaluations and double quota deductions during network retries. Cached for 15 minutes.
X-Request-IDstringOptionalOptional client tracing identifier (max 128 chars). Echoed back in response headers and error objects. Auto-generated if omitted.

Request Body (JSON, max 64KB)

ParameterTypeRequiredDescription
emailstringRequiredThe email address to analyze (max 254 chars, RFC 5321). Automatically canonicalized (normalizes dots for Google, strips plus-address tags) for duplicate signup detection.
ip_addressstringRequiredThe IP address of the signup attempt (max 45 chars). Validated IPv4 or IPv6 format. Bogon, reserved, and unroutable ranges are automatically flagged.
user_agentstringOptionalBrowser or client user agent string (max 1024 chars). Optional: omitting this header (common in backend webhooks and server-to-server calls) adaptively reallocates factor weights across Email, IP, and Velocity without penalty.

Request Example

cURL
curl -X POST https://api.siftlyapi.com/v1/score-signup \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Idempotency-Key: 7b9f8d2a-5c1e-4f3b-9a8d-2e1f4a5b6c7d" \
-d '{
"email": "jane.smith@company.com",
"ip_address": "209.6.10.20",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
}'

Response

Returns a standardized JSON response with prescriptive action decisions, contextual rejection copy, trust score, and severity-ordered reasons:

{
"action": "allow",
"suggested_http_code": 200,
"trust_score": 95,
"risk_level": "low",
"reasons": [
{
"factor": "email",
"score": 95,
"reason_code": "corporate_email",
"description": "Corporate email domain with high trust score",
"risk_level": "low"
},
{
"factor": "ip_address",
"score": 85,
"reason_code": "residential_ip",
"description": "Residential IP address from trusted ISP",
"risk_level": "low"
},
{
"factor": "velocity",
"score": 85,
"reason_code": "normal_velocity",
"description": "Normal signup velocity patterns detected",
"risk_level": "low"
},
{
"factor": "user_agent",
"score": 95,
"reason_code": "standard_browser",
"description": "Standard web browser user agent detected",
"risk_level": "low"
}
],
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"processed_at": "2026-10-15T10:30:00Z"
}

Response Fields

FieldTypeDescription
actionstringPrescriptive inline action decision: allow (clean user, score ≥ 70), challenge (step-up verification recommended, score 40–69), or block (reject signup immediately, score < 40 or critical threat).
suggested_user_messagestring (optional)Human-readable, user-friendly guidance or rejection message generated deterministically from the primary fraud indicator (e.g., prompt for business email, typo correction notice, or rate limit message).
suggested_http_codeinteger (optional)Recommended HTTP status code for your API handler (e.g., 200 for allow, 400 for invalid/disposable input, 401 for challenge, 403 for Tor/bogon proxy, 429 for burst velocity).
audit_actionstring (optional)Only present when X-SiftlyAPI-Mode: audit is passed. Shows the authentic enforcement decision (e.g., block) while action is overridden to allow.
trust_scoreintegerOverall calibrated trust score from 0 (definite fraud) to 100 (highly trusted)
risk_levelstringlow, medium, or high. Synchronized monotonically with trust score and critical threat indicators.
reasonsarrayDetailed breakdown of each scoring factor and correlation rule, sorted by risk severity (highest-risk flags appear first at index 0). See the complete dictionary in Reason Codes.
request_iduuidUnique request identifier for support correlation and audit logging
processed_atstringISO 8601 UTC timestamp of evaluation completion

Response Headers

Every response includes real-time telemetry headers reflecting rate limits, quotas, and idempotency status:

HeaderTypeDescription
X-Request-IDuuidUnique correlation ID assigned to the request
Idempotency-ReplayedbooleanPresent and set to true when returning a cached evaluation from a previous identical request within 15 minutes
RateLimit-LimitintegerMaximum requests allowed per minute on your plan
RateLimit-RemainingintegerRemaining request allowance in the current per-minute burst window
RateLimit-ResetintegerSeconds remaining until the per-minute burst allowance refreshes (1–60s)
Quota-LimitintegerTotal monthly requests allocated to your account
Quota-RemainingintegerRemaining monthly scoring requests for the current billing cycle
Quota-ResetstringISO 8601 UTC timestamp when your monthly quota resets (1st of next month)
Idempotency & Zero Double-Billing
When sending an Idempotency-Key header, identical requests within a 15-minute window are served directly from cache in <1ms. Replayed responses contain the Idempotency-Replayed: true header and bypass both per-minute rate limits and monthly quotas completely.
Severity-Based Reason Ordering
The reasons array is automatically sorted by risk severity (high → medium → low, lowest score first). This guarantees that reasons[0] immediately surfaces the most critical fraud indicator for your review workflows or automated block rules. Browse all available codes in Reason Codes.