Notifications

Notifications via email

Email notification available only for labeling jobs. Notifications are available only if the "Send notifications" field is filled.
To activate email notifications add SMTP_MAILING_CREDENTIALS and NOTIFICATIONS_EMAIL variables to .env file. For example:
1
SMTP_MAILING_CREDENTIALS=smtps://username:[email protected]
Copied!

Notifications via endpoint

If you need to get notifications on your server you can specify NOTIFICATIONS_URL variable in .env file. For example:
1
NOTIFICATIONS_URL=localhost/notifications
Copied!
Notifications in the following format will be sent to specified url:
1
{
2
"id": 301,
3
"createdAt": "2020-04-27T11:32:28.003Z",
4
"status": "unread",
5
"userId": 1,
6
"groupId": 1,
7
"type": "job_assigned",
8
"meta": {
9
"id": 455,
10
"teamTitle": "admin",
11
"title": "Annotation Job (#1)"
12
},
13
"title": "New job assigned",
14
"description": "\"Annotation Job (#1)\" was assigned to you"
15
}
Copied!
Last modified 1yr ago