For the complete documentation index, see llms.txt. This page is also available as Markdown.

User

This page provides APIs to manage users in Saleschat, including adding users, resetting passwords, generating magic links, and fetching user details.

Create a user and add it to the org

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

  • ask_user_to_update_password_on_login: Default value is False

  • emailConfirmed: User's email will be considered to be confirmed

  • Email to confirm email will not be sent

  • Role of the user added will be Member

  • Sometimes a user may be created without being added to the org and will have to be handled manually

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
Body
emailstring · max: 319Required
passwordstring · min: 8 · max: 64Required
ask_user_to_update_password_on_loginbooleanOptional
first_namestring · max: 40Required
last_namestring · max: 40Required
Responses
200

User created successfully

application/json
user_idstringOptional
post/v1/org/{orgId}/user

Reset a users password

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: True

  • Partner Allowed: True

  • User will be required to reset the password on next login

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
userIdstringRequired
Body
passwordstringRequired
ask_user_to_update_password_on_loginbooleanOptional
Responses
204

Successfully reset

No content

post/v1/org/{orgId}/user/{userId}/password/reset

No content

get
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
userIdstringRequired
Responses
200

Successfully generated magic link

application/json
urlstringOptional
get/v1/org/{orgId}/user/{userId}/magiclink

Get user by email

get
  • Roles Allowed: MEMBER

  • Impersonated User Allowed: True

  • Partner Allowed: True

  • Supports Partial match on email ID

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
Query parameters
qstringRequiredDefault: ""
offsetinteger · int32OptionalDefault: 0
sizeinteger · int32OptionalDefault: 10
Responses
200

Successfully fetched user for email ID

application/json
has_morebooleanOptional
get/v1/org/{orgId}/user

Delete a user

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
userIdstringRequired
Responses
204

Successfully deleted

No content

post/v1/org/{orgId}/user/{userId}/delete

No content

Disable a user

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
userIdstringRequired
Responses
204

Successfully disabled

No content

post/v1/org/{orgId}/user/{userId}/disable

No content

Enable a user

post
  • Roles Allowed: ADMIN

  • Impersonated User Allowed: False

  • Partner Allowed: True

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orgIdstringRequired
userIdstringRequired
Responses
204

Successfully enabled

No content

post/v1/org/{orgId}/user/{userId}/enable

No content

Last updated