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.
Fraud labels must be enabled for your project. Contact your Radar account team.
Before you start
- Labels apply to users, identified by the same
userIdyour app sets in the SDK or sends to Track. You can’t label a device. - A label has one of two outcomes:
fraudornot_fraud. - Send labels from your backend with a secret key. Never send them from client code.
- To label a user in the same request that blocks or unblocks them, set
labelon the item in Block users and devices or Unblock users and devices instead.
Create a fraud label
Records afraud or not_fraud label for a user.
- Endpoint:
POST /v1/fraud/labels - Authentication: Secret key
- Rate limit: 10 requests per second
- Used by: Assess risk and verify location
Body parameters
Response
A202 response means the label was accepted. Labels are processed asynchronously, so the response contains only meta and doesn’t return the stored label.
Each request records one label. The request is validated, but the response doesn’t confirm that a user with that userId exists in the project, so check the userId before you send it. Labels are recorded for the environment of the key you use: a test key records a test label and a live key records a live label.
Example
This request labelsuser-123 as fraudulent.
Errors
A
404 response looks like this: