Download OpenAPI specification:Download
Generates an authentication token given a valid username and password.
username | string Username to login as |
password | string 64 characters SHA256 hex digest of password associated with username |
authentication token along with success status
bad input parameter
bad username or password
Initiates the process for resetting a user's password which includes sending an email with a token to authenticate the resetting of a password.
username required | string Example: username=alex Username to reset password for |
successfully initiated flow
bad input parameter
Complete the reset password flow. Overwrites the current password of the user, but does not revoke any valid authentication tokens.
password | string 64 characters SHA256 hex digest of new password |
successfully reset password
bad input parameter
bad authentication token
Mark a user as verified after verifying the token send from the email.
successfully reset password
bad input parameter
bad authentication token
Fuzzy search for users by username to get name
username required | string Example: username=al Username to search on |
list of users found
bad input parameter
bad authentication token
Create a user with given name, email, username and password
username | string Username to login as |
password | string 64 characters SHA256 hex digest of password associated with username |
string [ 5 .. 254 ] characters Email to be associated with user | |
name | string Name associated with user |
successfully created user
bad input parameter
conflicting value with existing user
Get a user's information by their username
user required | string Example: alex Username to describe |
user information
bad input parameter
bad authentication token
Update a user's name, password, or email by their username
user required | string Example: alex Username to update |
name | string new name for user |
string [ 5 .. 254 ] characters new email for user | |
password | string 64 characters new SHA256 hex digest of password |
successfully updated user's information
bad input parameter
bad authentication token
authenticated but not allowed to modify
Delete a user and all their information by username
user required | string Example: alex Username to delete |
successfully deleted user
bad input parameter
bad authentication token
authenticated but not allowed to modify
Get a list of all the chats a user is in. Data returned includes users in the chat, the most recent message, and the name of the chat.
list of chats associated with user
bad input parameter
bad authentication token
Create a new chat with the specified users and initial message. A name must also be passed to the chat.
name | string Display name of the chat |
users | Array of strings Users to be added to the chat |
message | string Initial message to be sent |
successfully created user
bad input parameter
bad authentication token
Get the users in the chat, the most recent message, and the name of the chat by the uuid.
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
information about the request chat
bad input parameter
bad authentication token
authentication but not allowed to read
Update a chat's name or the users in it. Not all body parameters are required and can be mixed and matched. Keep in mind that 'mode' and 'user' must be sent together otherwise a 400 response will be generated
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
name | string new name for the chat |
mode | string Enum: "add" "delete" operation for the modification of users |
user | string user to modify |
successfully updated user's information
bad input parameter
bad authentication token
authenticated but not allowed to modify
Delete a user and all their information by username
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
successfully deleted chat
bad input parameter
bad authentication token
authenticated but not allowed to modify
Get a list of messages sent in a chat. By default, it splits the response into pages of 100 messages each. Though the page and number of items per page can be modified through query parameters.
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
page | number Example: page=1 page to view; default: 0 |
per_page | number Example: per_page=100 number of messages to show per page; default: 100 |
list of messages in a chat
bad input parameter
bad authentication token
authenticated but not allowed to modify
Send a message to the specified chat.
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
type | string type of message message |
message | string message to send |
successfully sent message
bad input parameter
bad authentication token
authenticated but not allowed to modify
Get all data about a specific message in a chat. Retrieved by index of message
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
message required | number Example: 1 index of message |
successfully retrieved message data
bad input parameter
bad authentication token
authentication but not allowed to read
Modify the content of an already sent message
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
message required | number Example: 1 index of message |
message | string new message content |
successfully updated message's information
bad input parameter
bad authentication token
authenticated but not allowed to modify
Delete a message from a chat
chat required | string <uuid> Example: 3e17b51b-01db-4b20-b1f5-95fd054376b7 uuid of chat |
message required | number Example: 1 index of message |
successfully deleted message
bad input parameter
bad authentication token
authenticated but not allowed to modify
Download a file or image from a message in a chat
file required | string <uuid> Example: d1ed2962-aef1-4bcf-a6b6-8f9836366b1f UUID of the file |
file or image
bad input parameter
bad authentication token
authenticated but not allowed to read
Upload a file to be associated with a message
file | string <binary> |
successfully uploaded file/image
bad input parameter
bad authentication token
authenticated but not allowed to write