Download OpenAPI specification:Download
Recommendation APIs provided by Detection and Response services are used to assess risk level, obtain recommendations, and provide feedback
Get a risk recommendation for a client action reported to the SDK (via triggerActionEvent()
call)
Recommendation
Invalid authorization
Rate limit reached
Unexpected error
curl -i -X GET \ 'https://api.transmitsecurity.io/risk/v1/recommendation?action_token=REPLACE_WITH_ACTION_TOKEN&user_id=REPLACE_WITH_USER_ID' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "385cd06b527a974982e0560b67123fe2b1b5a39fd98d8d32cdbaca8ec16fd62d",
- "issued_at": 1648028118123,
- "recommendation": {
- "type": "CHALLENGE"
}, - "risk_score": 73.2,
- "context": {
- "action_id": "885cd06b527a97498200560b67123fe221b5a39fd98d8d22cdb7ca8ec16ed62d",
- "action_type": "login",
- "action_performed_at": 1648028118123,
- "client_id": "d152ddd.ece93f4.c2a3d12.riskid.security",
- "application_id": "ece93f4",
- "tenant_id": "c2a3d12",
- "device_id": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwZGE4ZmZjYy01NmE1LTRmMjgtYThkZi04NDY5MmYwYThmYTAiLCJ2ZXJzaW9uIjoxLCJpYXQiOjE2NTU3OTYzODQ1MzF9.TeGoqlCe_6eWzl9a3-vAumG4Xap8WjwsgcO2-DzGtLg",
- "correlation_id": "bcb934d8-89cb-433b-a4c7-b7d94299586b",
- "device_fingerprint": "a3c8f5ea75cb65fcdc3d0452b985f957a46e24afdc912e93dac1e115ecf408e5",
- "user_id": "5c4afa75c",
- "ip": "192.168.0.1",
- "ip_country": "UK",
- "ip_region": "California",
- "ip_location_city": "Los Angeles",
- "ip_location_zip": 92131,
- "ip_location_longitude": -117.0903,
- "ip_location_latitude": 32.9167,
- "ip_asn_name": "AS174 Cogent Communications",
- "ip_asn_id": "AS174",
- "ip_organization_name": "Cogent Communications",
- "ip_organization_type": "isp",
- "ip_location_timezone": "America/Los_Angeles",
- "device_timezone": "America/Los_Angeles",
- "device_platform": "desktop",
- "os_name": "macOS",
- "browser_name": "Chrome",
- "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"
}, - "risk_signals": {
- "device": {
- "incognito": true,
- "private_browser": true,
- "tampered": true,
- "emulated": true,
- "spoofed": true,
- "tz_mismatch": true
}, - "network": {
- "vpn": true,
- "tor": true,
- "hosting": true,
- "proxy": true,
- "anonymizer": true
}, - "behavior": {
- "typing_velocity": 0.867,
- "input_method": [
- "is_typing",
- "is_paste"
], - "no_user_interaction": true
}, - "history": {
- "ip_action_rate_60_sec": 1,
- "user_action_rate_60_sec": 2,
- "device_action_rate_60_sec": 1,
- "ip_user_count_last_hour": 1,
- "linking_user_to_device_count": 1,
- "linking_device_to_users_count": 1,
- "ip_device_count_last_hour": 1
}
}, - "reasons": [
- "BEHAVIOR_BOT",
- "IP_RISKY_REPUTATION",
- "DEVICE_SUSPICIOUS_ATTRIBUTE",
- "PROFILE_DEVICE_NEW"
], - "preview_rule": {
- "rule_name": "string",
- "recommendation": "string"
}
}
Creates a new recommendation rule. Returns the rule_id
used to reference the rule in subsequent requests.
Rule created successfully
Bad request
Invalid authorization
Unique field collision
Internal error
{- "name": "Block risky countries",
- "priority": 10,
- "matcher": {
- "ip_cidrs": [
- "string"
]
}, - "recommendation": "CHALLENGE",
- "enabled": true,
- "mode": "PREVIEW"
}
{- "message": "string",
- "rule_id": "string"
}
Retrieves a list of all recommendation rules
Rules retrieved successfully
Bad request
Invalid authorization
Internal error
curl -i -X GET \ https://api.transmitsecurity.io/risk/v1/recommendation/rules \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "data": [
- {
- "id": "string",
- "name": "Block risky countries",
- "priority": 10,
- "matcher": {
- "ip_cidrs": [
- "string"
]
}, - "recommendation": "CHALLENGE",
- "enabled": true,
- "mode": "PREVIEW"
}
]
}
Retrieves a specific recommendation rule by its ID
Rule retrieved successfully
Bad request
Invalid authorization
Not found
Internal error
curl -i -X GET \ 'https://api.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "string",
- "data": {
- "name": "Block risky countries",
- "priority": 10,
- "matcher": {
- "ip_cidrs": [
- "string"
]
}, - "recommendation": "CHALLENGE",
- "enabled": true,
- "mode": "PREVIEW"
}
}
Updates a specific recommendation rule
Rule updated successfully
Bad request
Invalid authorization
Not found
Internal error
{- "name": "Block risky countries",
- "priority": 10,
- "matcher": {
- "ip_cidrs": [
- "string"
]
}, - "recommendation": "CHALLENGE",
- "enabled": true,
- "mode": "PREVIEW"
}
{- "message": "string"
}
Deletes a specific recommendation rule. Note that you can also disable rules if needed using the enabled rule attribute.
Rule updated successfully
Bad request
Invalid authorization
Not found
Internal error
curl -i -X DELETE \ 'https://api.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "message": "string"
}