Skip to main content
POST
/
users
Add a new user. New user will be admin.
curl --request POST \
  --url https://1-some-client.some-server.healvi-chat/third-party/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "<string>"
}'
{
  "id": 123,
  "name": "<string>",
  "email": 123,
  "roles": [
    "<string>"
  ],
  "permissions": [
    "<string>"
  ],
  "created_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-01-01T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
email
string

Must be unique across users.

Response

200 - application/json

Success

User from business which operates this app.

id
integer

Internal ID.

name
string
email
integer | null
roles
string[]

List of roles. "admin" has all permissions implicitly.

permissions
string[]

List of permissions.

created_at
string<date-time> | null
Example:

"2023-01-01T12:00:00Z"

updated_at
string<date-time> | null
Example:

"2023-01-01T12:00:00Z"