The base URL is
https://api.radar.io. Send your API key in the Authorization header. For key types, the error format, and rate limits, see Authentication, errors, and rate limits.
The block, unblock, and action status operations must be enabled for your project. Contact your Radar account team.
Where fraud results come from
Fraud checks run on the device and on Radar’s servers when your app requests a verified location or a risk assessment through an SDK. The REST operations on this page manage block rules. They don’t run a fraud check.
The token schema defines the fields of the verified location token, including identity, expiry, and failure reasons.
Fraud object
When Fraud is enabled, the user object includes afraud object with the result of the most recent fraud checks.
A fraud object for a user whose location is mocked looks like this:
Block users and devices
Creates block rules for existing users or devices. Each item targets exactly one user or device. By default, blocking a user doesn’t block their devices, and blocking a device doesn’t block its users. SetincludeAssociations to true to also block associated devices or users.
- Endpoint:
POST /v1/fraud/block - Authentication: Secret key
- Rate limit: 5 requests per second
- Used by: Assess risk and verify location
Body parameters
Send the body as JSON. Unknown fields are rejected.Response
The HTTP status is200 when the request was accepted, even if some items failed. The body contains meta and responses, with one result per request item, in request order.
Check every item’s
meta.code. Failed items don’t include action.
Optional labels are delivered asynchronously for successful actions on existing users. An item’s success doesn’t confirm label delivery. Labels aren’t submitted for unknown users.
Example
This request blocks one user and one device, and also blocks the users associated with the device.Errors
A
403 response looks like this:
Unblock users and devices
Disables block rules for the specified users or devices. Each item targets exactly one user or device. By default, unblocking a user doesn’t unblock their devices, and unblocking a device doesn’t unblock its users. SetincludeAssociations to true to also unblock associated devices or users.
- Endpoint:
POST /v1/fraud/unblock - Authentication: Secret key
- Rate limit: 5 requests per second
changedBlockCount set to 0.
Body parameters
Send the body as JSON. Unknown fields are rejected. Unlike blocking, unblocking doesn’t acceptdurationMs or description.
Response
The body containsmeta and responses, with one result per request item, in request order.
The partial failure, request error, and asynchronous label delivery behavior described for blocking also applies to unblocking. Unblock responses don’t include
action.configuration.
Example
This request unblocks one user and one device, and also unblocks the users associated with the device.Errors
The error responses are the same as for Block users and devices.Get fraud action status
Gets the status of an asynchronous block or unblock action. Use theaction.statusUrl returned by blocking or unblocking with includeAssociations set to true to poll for completion.
- Endpoint:
GET /v1/fraud/actions/:actionId - Authentication: Secret key
200. Check operation.meta.code for the status of the action itself.
Path parameters
Response
A200 response contains meta and operation:
Poll with a delay between requests, and stop when
operation.meta.code is no longer 202.
Example
This request gets the status of an asynchronous action.Errors
A
404 response looks like this: