Skip to main content

Adding users

To add a new user, you can simply add the email and leave other details for later. Or you can add all the details you want in one single API call. You can always update the records afterwards if necessary.

To add the user only with the email, the API call is:

curl 'https://api.kisi.io/members' \
-H 'Accept: application/json' \
-H 'Authorization: KISI-LOGIN authentication_token' \
-H 'Content-Type: application/json' \
--data-raw '{"member":{"email":"user@kisi.io"}}'

To add the user with more details, the API call takes this form:

curl 'https://api.kisi.io/members' \
-H 'Accept: application/json' \
-H 'Authorization: KISI-LOGIN authentication_token' \
-H 'Content-Type: application/json' \
--data-raw '{"member":{"email":"user@kisi.io", "link_enabled": true, "login_enabled": true, "password_flow_enabled": true, "name": "User", "image": "string", "send_emails": true, "confirm": true, "place_id": 0, "role_id": "basic", "card_activation_required": true, "access_enabled": true, "last_accessed_at": null}}'
note

For organization model users, the place_id is not relevant, you can skip it.

To update the user after being created, you will need the user_id to include it in the endpoint URL, and the call could be as in this example to update the password_flow_enabled and link_enabled attributes:

curl 'https://api.kisi.io/members/{user_id}' \
-X 'PUT' \
-H 'Accept: application/json' \
-H 'Authorization: KISI-LOGIN authentication_token' \
-H 'Content-Type: application/json' \
--data-raw '{"member":{"password_flow_enabled":true,"link_enabled":true}}'

For any request to the API, you need the authentication_token you obtained from the API when you logged in as an administrator.

Remember you also have the option of creating the user with our white labeling solution. Check out our white labeling guide for more.