POST
/
api
/
v1
/
auth
/
register
curl --request POST \
  --url https://chat.api.toolzz.com.br/api/v1/auth/register \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "password": "<string>",
  "name": "<string>",
  "lastName": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "token": "<string>",
  "institutionId": "<string>",
  "institutionName": "<string>",
  "isActive": true,
  "hasPassword": true,
  "superAdmin": true,
  "members": [
    {}
  ],
  "isMember": true
}

Parameters

email
string

the email of the account

password
string

the new password of the account

name
string

the name of the account

lastName
string

the lastName of the account

Response Description

Below you will see the description of the bot response

id
uuid
required

Unique identifier of the user.

name
string
required

The first name of the user.

lastName
string
required

The last name of the user.

email
string
required

The email address of the user.

token
string
required

Authentication token for the user’s session.

institutionId
uuid

The unique identifier of the associated institution (optional).

institutionName
string

The name of the associated institution (optional).

isActive
boolean

Indicates whether the user’s account is active (optional).

hasPassword
boolean
required

Indicates whether the user has set a password.

superAdmin
boolean
required

Indicates whether the user has super admin privileges.

members
array
required

A list of associated members.

isMember
boolean

Indicates whether the user is a member (optional).

Segurança

Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.