Create New User
Add User Endpoint
This endpoint allows administrators to add a new user to the system. The request requires a JSON payload containing user details.
Request Parameters
The request body should be in JSON format and include the following parameters:
-
firstName (string): The first name of the user.
-
lastName (string): The last name of the user.
-
email (string): The email address of the user.
-
isActive (boolean): Indicates whether the user account is active.
-
isVerified (boolean): Indicates whether the user's email has been verified.
-
permission (object): An object specifying the permissions granted to the user:
-
audio (boolean): Permission to access audio features.
-
video (boolean): Permission to access video features.
-
text (boolean): Permission to access text features.
-
addPayment (boolean): Permission to manage payment options.
-
userManagement (boolean): Permission to manage other users.
Expected Response
Upon a successful request, the server will respond with a confirmation of the user creation, typically including the user ID and any other relevant details about the newly created user.
Notes
-
Ensure that the email provided is unique and valid to avoid conflicts.
-
Permissions should be assigned based on the user's role within the organization.
-
This endpoint is restricted to users with administrative privileges.
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/admin/user
- Auth: API key in header x-speakai-key and API key in header x-access-token
Request body
Response
Success
Changes
No recorded changes to this operation across all 2 revisions of this API.