Create a user

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:

1. New user creating an organization for the first time
2. New user being invited via email by an organization admin form submission
3. New user being invited via email by an organization admin import
4. New user clicking on organization invite link

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

Endpoints

1. Create a new user

  • POST /users
    • Permissions: none

Parameters

  • name - string - required
  • email - string - requrired (Must be unique)
  • password - string - required
    • At least 8 characters
    • At least one lower case english alphabet letter (a-z)
    • At least one upper case english alphabet letter (A-Z)
    • At least one digit (0-9)
    • At least a symbol (any character that's not of the above)
  • invitation - string - optional: Unique invitation code to join an organization
  • join - string - optional: Unique invitation code contained within the organiaztion invite link

Response

  • id - string: User Id
  • access_token - string: Access token user will use to call other API operations

Example

$ 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"
}

1.1 Create a user from invite email

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.

Was this page helpful?