Skip to main content
Use the Labels API to tell Radar the confirmed outcome for a user, for example after a chargeback, a manual review, or a cleared investigation. A label records whether the user was fraudulent or not. 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 userId your app sets in the SDK or sends to Track. You can’t label a device.
  • A label has one of two outcomes: fraud or not_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 label on the item in Block users and devices or Unblock users and devices instead.

Create a fraud label

Records a fraud or not_fraud label for a user.

Body parameters

Response

A 202 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 labels user-123 as fraudulent.
Radar returns this response:
This request records a label that clears a user:

Errors

A 404 response looks like this: