Create a label
You can create a label by uploading a CSV file with a new column, or while labeling events in the Dashboard. To create a label while labeling events:- Click Add label on an event, or Label as in the events table.
- Type the label name and click Create new label.
- Enter the label details:
- Name: a display name of up to 128 characters. You can rename the label later.
- Slug: the label identifier used in the API and CSV files, generated from the name. Use lowercase letters and numbers, separated by single hyphens or underscores. You can’t change the slug after you create the label.
- Category: the fraud type the label belongs to. You can’t change the category after you create the label.
- Click Create label.
Don’t include personal information, such as names or email addresses, in label names or slugs. Name labels after the fraud type, for example
chargeback_fraud.Categories
Every label belongs to one of these predefined categories:- Payment fraud
- Account takeover
- Multi-accounting
- Fake account
- Promotion abuse
- Platform abuse
- Content abuse
- Other fraud
Confirmed non-fraud
Confirmed non-fraud is a built-in label for events you have verified as legitimate. All your models use it as their non-fraud examples. An event labeled Confirmed non-fraud can’t have any other label. Adding a fraud label to the event removes Confirmed non-fraud, and labeling an event as Confirmed non-fraud removes its other labels after you confirm. Only label events you have actually confirmed as legitimate. An event that wasn’t flagged as fraud isn’t necessarily non-fraud, so leave unconfirmed events unlabeled.Rename or archive a label
Open a label from Fraud Score > Models and click More model actions:- Rename label changes the display name. The slug stays the same.
- Archive label permanently retires the label. You can’t undo this. An archived label stops accepting new labeled events and trains no new model versions, and its slug can’t be reused. Existing labeled events and past model versions stay available until they expire.
Label events
Uploading a CSV file is the recommended way to label events, including large imports such as your historical fraud data. You can also label events from the identification events table, from event details, or with the Server API. All methods update the same labels, and the most recent submission for an event wins. You can label events up to 180 days old. Very recent events can’t be labeled for a few minutes after they’re recorded.Upload a CSV file
- Go to Fraud Score > Models and click Upload data.
- Click Download CSV template to get a file with the expected columns.
- Fill in the file and upload it.
- If the file contains columns that don’t match an existing label, choose a category for each new column, then click Confirm import.
- UTF-8 encoded and comma-separated, up to 10 MB
- One
event_idcolumn with the event IDs - Between 1 and 100 label columns. Each column header is a label slug, such as
payment_fraud, ornon_fraudfor Confirmed non-fraud. - One row per event, with
1for each label that applies and0otherwise
Label multiple events
- Go to Identification and select the events you want to label. Your selection is kept across pages, and is cleared when you change filters.
- Click Label as and select a label.
- Click Apply.
Label a single event
- Go to Identification and open an event.
- In the event details, click Add label.
- Search for a label and select it, or select Confirmed non-fraud.
Submit labels with the Server API
To submit labels from your backend as you confirm fraud outcomes, use thePOST /labels endpoint of the Server API. Labels submitted through the API appear in the Dashboard with the Server API source.
POST /labels accepts events up to 30 days old. To label older events, up to 180 days old, use the Dashboard or a CSV upload.