Skip to main content
Use the Fraud API to block or unblock users and devices from your own systems, for example when your risk team confirms abuse, and to read the fraud result that Radar attaches to a user. 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 a fraud object with the result of the most recent fraud checks. A fraud object for a user whose location is mocked looks like this:
Make eligibility decisions on your backend from a validated token, not from flags read on the client. See Fraud overview and quickstart.

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. Set includeAssociations to true to also block associated devices or users. Each successful block creates a new rule, even if the target is already blocked. If a user or device doesn’t exist in the project and environment of your API key, the item succeeds without creating a rule.

Body parameters

Send the body as JSON. Unknown fields are rejected.

Response

The HTTP status is 200 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.
Radar returns this response:
In this response, one item failed:

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. Set includeAssociations to true to also unblock associated devices or users.
  • Endpoint: POST /v1/fraud/unblock
  • Authentication: Secret key
  • Rate limit: 5 requests per second
If a target doesn’t exist or has no block rules to disable, the item succeeds with changedBlockCount set to 0.

Body parameters

Send the body as JSON. Unknown fields are rejected. Unlike blocking, unblocking doesn’t accept durationMs or description.

Response

The body contains meta 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.
Radar returns this response:

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 the action.statusUrl returned by blocking or unblocking with includeAssociations set to true to poll for completion.
  • Endpoint: GET /v1/fraud/actions/:actionId
  • Authentication: Secret key
An authorized lookup returns HTTP 200. Check operation.meta.code for the status of the action itself.

Path parameters

Response

A 200 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.
Radar returns this response:

Errors

A 404 response looks like this: