Creating a user with Tactic is easy. There are a couple of paths where creating a user account is necessary, but essentially it boils down to the following:
Note: For #2, #3, and #4, the invited user can be an existing user. In those cases, we do not call the Create User
method, but rather call Respond to Invitation
POST /users
Parameters
name
- string - requiredemail
- string - requrired (Must be unique)password
- string - requiredinvitation
- string - optional: Unique invitation code to join an organizationjoin
- string - optional: Unique invitation code contained within the organiaztion invite linkResponse
id
- string: User Idaccess_token
- string: Access token user will use to call other API operationsExample
$ echo '{"email": "[email protected]","name": "Mariano Iglesias","password": "T3$TingPassword"}' | http POST 'http://localhost:5000/users'HTTP/1.1 201 Created{"id": "user_dd6688dc-114f-473b-9f9b-6152555785ee","access_token": "ACCESS_TOKEN"}
The same request as above, but include the invitation
parameter in the request.
The same request as above, but include the join
parameter in the request.