Flussonic Watcher Documentation

User import API

You can import users and settings from third-party systems, databases or spreadsheets using API. It requires API authorization. To do that, include the APIKEY that can be found in the Watcher settings in the x-vsaas-api-key HTTP header.

To import a list of users, create a CSV file and send it to:


CSV file fields:

  • email — the main user ID for authentication that is also used for password recovery.
  • password — plain text password.
  • is_active — 1: active user; 0: blocked user.
  • is_admin — 1: administrator user; 0: regular user.
  • note — a comment to this user.
  • Command-line import:

    curl --data-binary @mydata.csv -H 'Content-type:text/plain; charset=utf-8' -H 'x-vsaas-api-key: API_KEY_ВАШЕГО ВОТЧЕРА' http://WATCHER-HOSTNAME/vsaas/api/v2/users/import

    mydata.csv example:


    One string example:

    echo -e "email,password,is_active,is_admin,note\nivanov@domain.tld,CergitMig,1,0,user1\npetrov@domain.tld,LajQuolOy,0,1,user2" | curl --data-binary @-  -H 'Content-type:text/plain; charset=utf-8' -H 'x-vsaas-api-key: 3a7d9386-6c3a-440d-a75d-e6b3fdc3368e'


    {"success": true}