POST
/
users
curl --request POST \
  --url https://use.hoop.dev/api/users \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "groups": [
    "sre"
  ],
  "name": "John Wick",
  "password": "password",
  "picture": "",
  "slack_id": "U053ELZHB53",
  "status": "active"
}'
{
  "email": "jsmith@example.com",
  "groups": [
    "sre"
  ],
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "John Wick",
  "password": "password",
  "picture": "",
  "role": "standard",
  "slack_id": "U053ELZHB53",
  "status": "active",
  "verified": true
}

Body

application/json
The request body resource
email
string
required

Email address of the user

groups
string[]

Groups registered for this user

Example:
["sre"]
name
string

Display name

Example:

"John Wick"

password
string

Local auth cases have a password

Example:

"password"

picture
string

The profile picture url to display

Example:

""

slack_id
string

The identifier of slack to send messages to users

Example:

"U053ELZHB53"

status
enum<string>
default:active

The status of the user. Inactive users cannot access the system

Available options:
active,
inactive,
reviewing,
invited

Response

201
application/json
Created
email
string
required

Email address of the user

groups
string[]

Groups registered for this user

Example:
["sre"]
id
string

Unique identifier of the resource

name
string

Display name

Example:

"John Wick"

password
string

Local auth cases have a password

Example:

"password"

picture
string

The profile picture url to display

Example:

""

role
enum<string>

Permission related to the user

  • admin - Has super privileges and has access to any resource in the system
  • standard - Grant access to standard routes.
  • unregistered - Grant access to unregistered routes. It's a transient state where the user is authenticated but is not registered. This state is only available for multi tenant environments
Available options:
admin,
standard,
unregistered
Example:

"standard"

slack_id
string

The identifier of slack to send messages to users

Example:

"U053ELZHB53"

status
enum<string>
default:active

The status of the user. Inactive users cannot access the system

Available options:
active,
inactive,
reviewing,
invited
verified
boolean

DEPRECATED in flavor of role