WApi Interface

Version: 1.2
Minimum supported version: 1.0
Code version: 6.22.0

Overview

The WApi api can be used through various protocols, in a synchronous or a asynchronous way.

Http request usage:

The usage mode is synchronous.

The WApi web service can be accessed using that url: https://api.wimi.pro.

WApi has to be called in POST mode. The body of the request contains the the WApi input message (json format).
The body of the response contains the WApi response (json format).

The HTTP status code returned by the WApi is always 200. Responses errors must be extracted from the response message (body of the response)


Format description

The request and response messages are based on the same format.

Login request example:

{
    "header": {
        "target": "auth.user.login",
        "identification": {
            "account_name": "mywimi"
        },
        "auth": {
            "login": "firstname.lastname@wimi.pro",
            "password": "whatever"
        },
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "a key that can be used to map the response with the request in async mode"
    },
    "body": {
        "data": null
    }
}

Login response example:

{
    "header": {
        "target": "auth.user.login.info",
        "identification": {
            "account_name": "mywimi"
        },
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "a key that can be used to map the response with the request in async mode",
        "token": "MTU0MDAw:MOB--202545756bd71499f9"
    },
    "body": {
            ...
        }
    }
}

So, the response target is the request target + ".info".
The "msg_key" of the response is the same as the request "msg_key".

Globally speaking, the response header is the same as the request header with some adjustments.

The Header format is generic (common to all request / responses).
The Body format is specific to each target - however the error management is generic

Header fields

target

(string) - Used to identify the WApi function called

identification

(optional object) - Used to provide the ids of the various objects used by the function call - the listed entries are specific to the target being called.

"identification": {
    "account_id": 19472,
    "user_id": 154031,
    "project_id": 131213
    }

auth

(optional object) - Used to provide user authentication

  • login: (string) user login
  • password: (string) user password
"auth": {
    "login": "firstname.lastname@wimi.pro",
    "password": "whatever"
}
                    

token

(optional string) - Used to provide the session token (returned by auth.user.login)

api_version

(string) - Api version used

msg_key

(string) - Message key also returned in the message response

output_format

(optional object) - used to provide output formatting parameters:

  • populate_http_status_code: (bool) used to indicate that the http status code must be returned when the request is made through http. By default, the http status code is always 200
"output_format": {
    "populate_http_status_code": true
}

debug

(optional object) - used to provide special debugging parameters:

  • indent_output: (bool) used to turn on json pretty print format in the response message
"debug": {
    "indent_output": true
}

Body fields

data

(optional object) - Used in the request and response WApi messages.
The format is specific to each target.

error

(optional object) - Only found in response WApi messages.

  • id: (int) id of the error (based on the closest http status code)
  • str: (string) string associated to the id (for bettre readability)
  • debug_msg: (optional string) Additional debug data
  • detail_id: (optional int) error sub type
  • detail_str: (optional string) string associated to the error sub type
"error": {
    "id": 401,
    "str": "Unauthorized",
    "debug_msg": "account not found: tmp5756bd709d99413601xxx",
    "detail_id": 1022,
    "detail_str": "invalid_account"
}

Contact

If you are having issues using our Api, contact us: support@wimi.pro

Actions List

auth.user.CheckUserPassword Used to check the user password
auth.user.Login Used to login a user and retrieve an access token
auth.user.Logout Used to logout a user
auth.user.RequestNewPassword Used to request an email containing a link to reset the password in case the user forgot it
activity.event.ExportAsCSV export the list of activity events in a CSV file
activity.event.GetList Get a list of activity events
activity.event.GetNextList Ask for the next X results from events
activity.event.GetUnreadCount Get unread event count by projects
activity.event.MarkItemsHistoryAsRead
calendar.event.AddComment Add a comment to a calendar event
calendar.event.AddExternalAttachment Attach an external file to a calendar event
calendar.event.AddWimiAttachment Attach a wimi file to a calendar event
calendar.event.ConversationArchive Archive a conversation
calendar.event.ConversationClearUnseen Clear unseen count for conversation
calendar.event.ConversationSetSilent Set silent for conversation
calendar.event.Create Create a calendar event
calendar.event.DeleteComment Delete a calendar event comment
calendar.event.DownloadAttachment Download a calendar event attachment
calendar.event.EditComment Edit a comment of a calendar event
calendar.event.Get Get the details of a calendar events
calendar.event.GetAttachmentList get the list of files attached to a calendar event
calendar.event.GetComments Get teh comments of a calendar event
calendar.event.GetList Get a list of events
calendar.event.GetListUnified Get a list of events for unified calendars
calendar.event.GetSubscriptionLink Get a calendar subscription link
calendar.event.GetUnifiedSubscriptionLink Get calendar subscription link for unified projects
calendar.event.PreviewAttachment Request attachment preview
calendar.event.Remove Delete a calendar event
calendar.event.RemoveExternalAttachment remove an external attachment from the calendar
calendar.event.RemoveRecurrenceOccurrence Delete a recurrence occurrence
calendar.event.RemoveWimiAttachment remove a wimi attachment from the calendar
calendar.event.Update Update a calendar event - only the provided data are updated.
calendar.event.UpdateProject Move a calendar event from one project to another
chat.chat.AddAttachment Attach a file to a chat
chat.chat.AddInternalAttachment Attach a internal file to a chat
chat.chat.AddMembers Add members to a chat
chat.chat.AddUsers Add users to a chat
chat.chat.CanceledTyping Send a notification that the user canceled typing
chat.chat.ClearUnseen Clear unseen count for chat
chat.chat.Create Create a group chat
chat.chat.CreateChannel Create channel chat
chat.chat.DeleteMessage Delete a message
chat.chat.Disable Disable a chat for a user
chat.chat.DownloadAttachment Download a chat attachment
chat.chat.EditMessage Edit a message
chat.chat.EditName Edit a chat name
chat.chat.FavoriteMessage Favorite a message
chat.chat.GetAttachmentList Get attachment list
chat.chat.GetChat Get chat
chat.chat.GetFavorites Get favorite list
chat.chat.GetLinks Get shared links in a chat
chat.chat.GetList Get chat list
chat.chat.GetMessageBeforeAfter Search through chat messages
chat.chat.LoadMessages Get chat messages from offset of given message id, until limit
chat.chat.PostMessage Post message to chat
chat.chat.PreviewAttachment Request attachment preview
chat.chat.RemoveMembers Remove members from a chat
chat.chat.RemoveUsers Remove users from a chat
chat.chat.Search Search through chat messages
chat.chat.SetMessageIntegrationAttachment Set the integration attachment for a message
chat.chat.SetSilent Set silent for chat
chat.chat.StartedTyping Send a notification that the user is typing
chat.chat.UnfavoriteMessage Unfavorite a message
chat.chat.UpdateGroupChatProfilePicture
chat.message.AddMessageReaction Add a reaction for a message
chat.message.DeleteMessageReaction Delete a reaction for a message
comment.comment.GetUserCommentedItems Get user commented items
document.directory.AddComment Add comment to a directory
document.directory.AddLink Add link to directory
document.directory.AddMembersToDir Add members to dir
document.directory.ConversationArchive Archive a conversation
document.directory.ConversationClearUnseen Clear unseen count for conversation
document.directory.ConversationSetSilent Set silent for conversation
document.directory.Copy Copy a directory elsewhere
document.directory.Create Creates a directory
document.directory.DeleteComment Delete a directory comment
document.directory.DeniedList Get the list of denied directories for a user
document.directory.EditComment Edit a comment of a directory
document.directory.EditMembersAccessToDirectories Edits members access on one or several directories
document.directory.EditName Edits the name of a directory
document.directory.GetComments Get comments of a directory
document.directory.GetDirectoryUsers Get list of all users having access to given directory
document.directory.GetMembersAccess Get users access of a dir
document.directory.GetReadOnlyStateForUser Get the read only state of the directory for the current user
document.directory.LinkPathInfo Get file path info
document.directory.Move Move directories to a folder
document.directory.MoveLink Move links from one directory to another
document.directory.MoveToGarbageCollector Permanently delete one or more directories
document.directory.MoveToTrash Delete one or more directories
document.directory.PathInfo Get directory path info
document.directory.RemoveMembersFromDir Remove members from dir
document.directory.RemoveProperty Remove a property from a directory
document.directory.Restore Restore one or more directories from trash
document.directory.SetDirectoryDefault Get comments of a directory
document.directory.SetPropertyValue Add a property to a directory
document.entry.DirList List folders found in a folder
document.entry.List List the files and folders found in a folder
document.entry.TrashList List the files, the link and folders found in the trash
document.file.ActivateSharing Activate sharing on one file
document.file.AddComment Add a file comment
document.file.AddTag Add a tag on a file
document.file.AttachmentIntoDoc Take an attachment from chat or task and add it to the documennt module
document.file.CheckConflict check a file name conflict
document.file.CheckConflicts Check conflicts of a specific name in a folder
document.file.ConversationArchive Archive a conversation
document.file.ConversationClearUnseen Clear unseen count for conversation
document.file.ConversationSetSilent Set silent for conversation
document.file.Copy Copy a file elsewhere
document.file.DeactivateSharing Deactivate sharing on one file
document.file.DeleteComment Delete a file comment
document.file.Download download a file
document.file.EditComment Edit a file comment
document.file.EditDescription Edit a file description
document.file.EditName Edits the name of a file
document.file.GetComments Get the comments of a file
document.file.GetDownloadToken Get a download token to be used only one time.
document.file.GetEvents Get the historical events of a file
document.file.GetProperties get the properties of a file
document.file.GetVersions Get a file's versions list
document.file.GuestLink Get guest link of a file - DEPRECATED - use ActivateSharing
document.file.IsVersionOf Checks if a version of a file is on the server (by md5)
document.file.LinkTag Link a tag to a file
document.file.Lock Used to lock a file.
document.file.Move Move files to a folder
document.file.MoveToGarbageCollector Permanently delete one or more files
document.file.MoveToTrash Delete one or more files
document.file.NotifyOpen Warn users that a specific file is being opened
document.file.PathInfo Get file path info
document.file.RemoveProperty Remove a property from a file
document.file.RemoveTag Remove a tag in a file
document.file.RemoveTagByLabel Remove a tag in a file using the label
document.file.Restore Restore one or more files
document.file.SetPropertyValue Set a property to a file
document.file.Unlock Used to unlock a file.
document.file.Unversion Unversion one file
document.file.Upload Upload a file
document.service.BringBack Bring backs a service file back to the wimi (and removes the .html in wimi if it succeeds). Only works with google ATM.
document.service.CheckToken Check service token
document.service.Download Directly download the document from the service. Only google is supported right now.
document.service.Edit Edit (and upload) a file to service. Only google is supported right now.
document.service.GetEntries Get service entries
document.service.ImportEntries Import service entries
document.sharing.Activate Activate sharing on one directory
document.sharing.AllowInvisibleSub Allow invisible subdirectories on a shared folder
document.sharing.AllowUpload Allow upload on a given shared folder
document.sharing.Deactivate Deactivate sharing on one directory
document.sharing.DisallowInvisibleSub Disallow invisible subs on a shared folder
document.sharing.DisallowUpload Disallow upload on a given shared folder
document.sharing.RemovePassword Remove a password of a shared folder
document.sharing.SetExpirationDate Set an expiration date for an item
document.sharing.SetPassword Set a password for an item
document.trash.EmptyTrash Empty the trash
document.trash.List List the files found in the trash given a set of filters
document.trash.RestoreFile Restore one or more files
document.validation.AddValidatorsToRequest Add validators to a doc validation request
document.validation.CreateRequest Create a doc validation request
document.validation.EditRequestDescription Edit doc validation request description
document.validation.ListRequests List all doc validation requests for that user
document.validation.ListRequestsAsRequester List all doc validation requests associated to a requester
document.validation.ListRequestsAsValidator List all doc validation requests associated to a validator
document.validation.ListResponses List all doc validation responses for a user
document.validation.RemindValidator send a reminder email to a validator
document.validation.RemoveRequest Remove a doc validation request
document.validation.RemoveValidatorsFromRequest Remove validators from a doc validation request
document.validation.ResetResponseStatus Reset a response for a validator
document.validation.UpdateRequestExpiryDate Update expiry date of a doc validation request
document.validation.UpdateRequestStatus Update status of a doc validation request
document.validation.UpdateResponseStatus Update a response for a validator
gantt.gantt.AddList Add a list to gantt view
gantt.gantt.BatchAddList Add lists to gantt view
gantt.gantt.BatchRemoveList Batch remove lists from gantt view
gantt.gantt.RemoveList Remove a list from gantt view
link.link.AddComment Add a link comment
link.link.AddTag Add a tag on a link
link.link.ConversationArchive Archive a conversation
link.link.ConversationClearUnseen Clear unseen count for conversation
link.link.ConversationSetSilent Set silent for conversation
link.link.DeleteComment Delete a link comment
link.link.Edit Edit url and/or title of link
link.link.EditComment Edit a link comment
link.link.GetComments Get comments of a link
link.link.GetEvents Get the historical events of a link
link.link.LinkTag Link a tag to a link
link.link.PathInfo Get link path info
link.link.RemoveTag Remove a tag in a link
link.link.RemoveTagByLabel Remove a tag in a link using the label
link.link.RestoreLink Restore link from trash
link.link.TrashLink Put a list of links to trash
main.account.ActivateUsers Activate list of users
main.account.AddUser Add a user
main.account.CancelAccountDeletion Cancel account deletion
main.account.CompleteCardLessClient
main.account.ConfirmDeleteAccount Finale step of account deletion
main.account.CreateCardLessClient
main.account.DeactivateUsers Deactivate list of users
main.account.DeleteAccount Delete the account
main.account.DeleteUsers Delete list of users permanently
main.account.EditCategory Edit a category
main.account.EditUser Edit a user
main.account.ExportUsers Export users in a file
main.account.ExportUsersRights Export users rights in a file
main.account.GenerateAPIKey Generate an API Key for the current account
main.account.GetAccountExternalInfo Get external information for an account
main.account.GetAllAvailableUsers Get all available users. Which mean a status will be returned.
main.account.GetBillingInfo List offers for account
main.account.GetCalendars Get the calendars of a user
main.account.GetCategories Get categories of a user
main.account.GetGAppsUsers Get gapps users and format the output to correspond the ones of Wimi
main.account.GetListOfUsersSharingSameProjects Get list of users sharing the same projects
main.account.GetMemberProjectsAuth Get list of privileges on projects for a member
main.account.GetProject Get a user project
main.account.GetProjectTemplates Get the project templates for that account
main.account.GetProjects Get projects of a user
main.account.GetProjectsStats Get projects stats for user available projects
main.account.GetResourceIdListForChat Get the resourceId for a chat
main.account.GetResourceIdListForSharing Get the resourceId for a project or an account
main.account.GetServiceUsers Get the users of the given service and format the output to correspond the ones of Wimi
main.account.GetSettings Get settings for the account
main.account.GetTrustchainId Get the resourceId for a project or an account
main.account.GetTutorialInfo Return the necessary info to display the welcome tutorial
main.account.GetUser Get a user
main.account.GetUserIdListForResourcesAccess Get the ids of users that can access an account or project resources considering the access to the module we are in
main.account.GetUserProjectsAuth Get list of privileges on projects for a user
main.account.GetUsers Get all users
main.account.ImportGAppsUser Import a gapps user in wimi
main.account.ImportUsersFromCSV Import users from csv
main.account.RegenerateGeneralPassword Regenerate the password of the Wimi Backup user of this account
main.account.RemoveAPIKey Remove an API Key for the current account
main.account.SelfDeactivate Deactivate the current user
main.account.SetBillingInfo Set billing info of account
main.account.SetSettings Set settings for the account
main.account.SetUISetting Customization - set ui settings
main.account.SetWelcomeActivity Set welcome activity
main.account.ToggleThirdPartyService Enable/Disable a third party service for the account
main.group.AddMember Add a member to a group
main.group.AddTag Add a tag on a user group
main.group.BatchAddMembers Batch add members to a group
main.group.Create Create a user group
main.group.Delete Delete a user group
main.group.Edit Edit a user group
main.group.LinkTag Link a tag to a group
main.group.List List the user group of this account
main.group.RemoveMember Remove a member from a group
main.group.RemoveTag Remove a tag in a user group
main.group.RemoveTagByLabel Remove a tag in a user group using the label
main.project.ActivateModules Activate modules on a project
main.project.AddTag Add a tag on a project
main.project.Archive Archive a project
main.project.Create Create a project
main.project.DeactivateModules Deactivate modules on a project
main.project.Delete Delete a project definitely
main.project.GetUsersAuth Get list of all users auth on that project
main.project.GetUsersList Get list of all users in a project (via user_id)
main.project.LinkTag Link a tag to a project
main.project.RemoveTag Remove a tag in a project
main.project.RemoveTagByLabel Remove a tag in a project using the label
main.project.RemoveUserGroups Removes user groups from a project
main.project.RemoveUsers Removes users from a project
main.project.ReplaceUser Replace a user in another in a project
main.project.Restore Unarchive a project
main.project.SetDriveSync Enable/Disable the drive synchronisation for all users
main.project.SetMemberAuth Set the member auth on a project
main.project.SetUserAuth Set the user auth on a project
main.project.SetUserGroupAuth Set the user group auth on a project
main.project.Update Update a project.
main.project.UpdateDefaultModule Update default module
main.search.Search Search items in the wimi with a query
main.search.SearchMore Ask for the next X results from Wimi's global search
main.session.ClosePopup Close a popup with a given id for a user
main.session.GenerateAutologinToken Generate an autologin token for the given user
main.session.Load Load some info about the session
main.session.SendMessage Send a message to a list of users
main.tag.BatchMergeTags merge several tags into another
main.tag.BatchRemove remove several tags
main.tag.ChangeColor Change the color of a tag
main.tag.Create create a tag
main.tag.Get get a tag
main.tag.GetAll get all tags for this account
main.tag.GetByLabel get a tag by its label
main.tag.GetStats get tags stats for this account
main.tag.ImportFromCSV Import tags from csv
main.tag.MergeTags merge one tag into another
main.tag.Remove remove a tag (globally)
main.tag.Rename rename a tag (globally)
main.user.AddTag Add a tag on a user
main.user.BatchUpdateProperty Batch add or update properties for the user
main.user.CreateAutologinToken Create a token and a URL used to automatically connect the user to the web app
main.user.CreateLimitedToken Create a token with restricted accesses to be used instead of the auth token from external applications
main.user.CreateLimitedTokenForService Create a token with restricted accesses for a specific service
main.user.CreateServiceToken Create a token that can be used by an external service to create a limited access token for that user
main.user.DeleteLimitedToken Delete a limited token
main.user.DeleteServiceToken Delete a user service token
main.user.EditArmouredDevice Add or edit a device
main.user.GetArmouredDeviceList Get all the device added and usable
main.user.GetArmouredUserToken Get an armoured user token
main.user.GetCaldavSyncSettings Get Caldav synchronization settings
main.user.GetGlobalStatus Get global status of a user.
main.user.GetNotificationSettings get user notification settings (enabled/disabled)
main.user.GetTankerSecret Return the tanker secret for current user
main.user.GetUserServicesInfo Get third party services info for a user
main.user.LinkTag Link a tag to a user
main.user.ListProperties Get all the user properties
main.user.LoadNewPassword Used to load the new password page
main.user.RemoveProperty Remove a property for the user
main.user.RemoveTag Remove a tag in a user
main.user.RemoveTagByLabel Remove a tag in a user using the label
main.user.RevokeService Revoke a third party service for a user
main.user.SendDeviceAcceptationRequest Request a device creation
main.user.SendDeviceCreationRequest Request a device creation
main.user.SendDeviceValidationEmail Send a mail to the user so he can validate his device
main.user.SendResourceSharingRequest Request the sharing of resource for a user
main.user.SetNewPassword Used to set a new password after the old one was forgotten or expired
main.user.SetNotificationSettings set user notification settings (enabled/disabled)
main.user.SetProjectCaldavSync Set Caldav synchronization for a project
main.user.SetStatus Set the status of the user. Status is linked to the session_id.
main.user.SetUserLanguage Set a user language
main.user.SetUserSharingStatus Set the sharing status for a user (useful for wimi armoured)
main.user.Update Update the user information
main.user.UpdateProperty Add or update a property for the user
main.user.UpdateTankerSecret Update the user tanker secret
meeting.meeting.Add Add a meeting
meeting.meeting.AddDates Add dates to a meeting
meeting.meeting.AddExternalParticipants Add external participants to a meeting
meeting.meeting.AddInternalParticipants Add internal participants to a meeting
meeting.meeting.Delete Delete a meeting
meeting.meeting.Edit Edit a meeting
meeting.meeting.FixDate Fix a date
meeting.meeting.Get Get a meeting
meeting.meeting.GetList Get meetings
meeting.meeting.RemoveParticipants Remove participants from a meeting
meeting.meeting.UnfixDate Unfix a date
meeting.meeting.UpdateStatus Add external users to a meeting
reporting.task.Burndown Get burndown
reporting.task.Load Load all stats
reporting.task.Performance Get performance
reporting.task.Status Get status
reporting.task.Tags Get tags
reporting.task.Workload Get workload
sharing.sharing.Download Download a file from a sharing folder
sharing.sharing.DownloadFile Download a file from a sharing file
sharing.sharing.Folder List entries of folder
sharing.sharing.Load Get information required to load sharing doc page
sharing.sharing.LoadFile Get information required to load file sharing page
sharing.sharing.RequestLinkPreview
sharing.sharing.Upload Upload a file via a sharing folder
task.filter.Add Adds a filter on tasks to the project or on unified tasks
task.filter.Apply Apply a filter on the tasks of the given projects
task.filter.Delete Delete a filter
task.filter.Edit Edits a filter on tasks
task.filter.Get Get a tasks filter
task.filter.List List tasks filters
task.filter.ListUnified List unified tasks filters
task.subtask.ChangeStatus Change status of a subtask
task.subtask.Create Create a subtask for the given task
task.subtask.Delete Delete a subtask
task.subtask.Move Move a subtask to another position (and/or task)
task.subtask.Update Update a subtask
task.task.AddComment Add a comment to a task
task.task.AddExternalAttachment Attach an external file to a task
task.task.AddReminder Add a reminder for a task
task.task.AddTag Add a tag in a task
task.task.AddWimiAttachment Attach a wimi file to a task
task.task.BatchDelete Delete a batch of tasks
task.task.BatchDuplicate Copy a batch of tasks
task.task.BatchMove Move a batch of tasks to a position
task.task.BatchMoveAfter Move a batch of tasks after another
task.task.ChangeStatus Change the status of a given task
task.task.ChangeStatusBulk Change the status of several tasks
task.task.ConversationArchive Archive conversation
task.task.ConversationClearUnseen Clear unseen count for conversation
task.task.ConversationSetSilent Set silent for conversation
task.task.Create Create a task
task.task.Delete Delete a task
task.task.DeleteComment Delete a task comment
task.task.DeleteDates Delete Dates from a Task
task.task.DisableRecurrence Disable a recurrence for a task
task.task.DownloadAttachment Attach a file to a task
task.task.Duplicate Copy a task
task.task.EditComment Edit a comment of a task
task.task.Follow Add self as follower to this task
task.task.GenerateNextOccurrence Generate the next occurrence of a task
task.task.Get Get a task with all its data
task.task.GetAll Get all tasks of a list
task.task.GetAttachmentList Get the list of files attached to a task
task.task.GetNbNotCompletedForProject Get the total amount of not completed tasks for the given project
task.task.History Get a task history
task.task.LinkTag Link a tag to a task
task.task.Move Move a task to new position
task.task.MoveAfter Move a task after another
task.task.PreviewAttachment Request attachment preview
task.task.Relocate Relocate a task in an other project
task.task.RemoveExternalAttachment remove an external attachment from the task
task.task.RemoveReminder Remove a reminder for a task
task.task.RemoveTag Remove a tag in a task
task.task.RemoveTagByLabel Remove a tag in a task using the label
task.task.RemoveWimiAttachment Remove a wimi attachment from a task
task.task.SendReminder send a reminder to the owners of a task
task.task.SetRecurrence Set or update a recurrence for the given task
task.task.ToggleDefaultOverdueAlert Add or remove the default overdue alert for a task
task.task.Unfollow Remove self as follower from this task
task.task.Update Update a task
task.tlist.AddLink Create a link between 2 lists given a specific relation type
task.tlist.BatchSetHidden Set the tasks lists the user does not want to display
task.tlist.ChangeLine Change line in gantt view
task.tlist.Create Create a task list
task.tlist.Dashboard Get all necessary data for displaying the tasks module dashboard
task.tlist.DashboardGlobal Get all necessary data for displaying the tasks module dashboard
Same as dashboard but for a user, not a project
task.tlist.Delete Delete a task list
task.tlist.ExportAsCSV Exports all tasks and lists of a project as csv
task.tlist.ExportAsXLS Exports all tasks and lists of a project as XLS
task.tlist.ExportFilteredAsXLS Exports all tasks and lists as csv given filter options
task.tlist.Follow Add self as follower to this list
task.tlist.GetAcceptedTasks Get all Tasks that are accepted
task.tlist.GetAll Returns all tasks lists of a project
task.tlist.GetList Returns a task list with its stats
task.tlist.ImportFromCSV Import tasks and lists from csv
task.tlist.ImportFromXLS Import tasks and lists from xls
task.tlist.Move Move a task list
task.tlist.RemoveLink Remove link between 2 lists
task.tlist.Unfollow Remove self as follower from this list
task.tlist.Update Update a task list
task.tlist.UpdateDates Move a list in a line
task.tlist.UpdateExcludeAcceptedTask
task.trash.List List all trashed tasks lists and their tasks (also trashed)

Actions


auth.user.CheckUserPassword

Used to check the user password

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • success - bool

Example:

{
    "header": {
        "target": "auth.user.CheckUserPassword",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

auth.user.Login

Used to login a user and retrieve an access token

The account must be valid and the user must be activated

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_name - string Optional: ""

Body Data:

  • list_projects - bool Optional: false - set to true to get all user projects in the response
  • fetch_pwd_sha - bool Optional: false

Output:

  • user - User
  • account - Account
  • projects - LIST of Project - can be null
  • need_update - bool

Example:

    {
        "header": {
            "target": "auth.user.login",
            "api_version": "1.2",
            "app_token": "You can generate one from your wimi account setting on wimi.pro",
            "identification": {
                "account_name": "name of your account"
            },
            "auth": {
                "login": "titi.toto@tata.com",
                "password": "your password"
            },
            "msg_key": "message key also returned in the response"
        },
        "body": {
            "data": {
                "list_projects": false
            }
        }
    }

auth.user.Logout

Used to logout a user

keep_self removes all sessions of the user except this one * kill_all removes all the sessions of the user, including this one * both set to false only remove this session * both set to true throws a 400

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • keep_self - bool Optional: false
  • kill_all - bool Optional: false

Output:

  • success - bool

Example:

{
    "header": {
        "target": "auth.user.Logout",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "keep_self": true,
            "kill_all": true
        }
    }
}

auth.user.RequestNewPassword

Used to request an email containing a link to reset the password in case the user forgot it

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int

Body Data:

  • email - string

Output:

  • success - bool

Example:

{
    "header": {
        "target": "auth.user.RequestNewPassword",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345
        }
    },
    "body": {
        "data": {
            "email": "some text"
        }
    }
}

activity.event.ExportAsCSV

export the list of activity events in a CSV file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id_list - int list

Body Data:

  • min_date - datetime Optional: null
  • max_date - datetime Optional: null
  • type_list - int list Optional: []
  • csv_delimiter - string Optional: ";"
  • csv_enclosure - string Optional: """
  • user_id_list - int list Optional: []
  • filter - string Optional: ""
  • with_account_event - bool Optional: false

Output:

  • success - bool

Example:

{
    "header": {
        "target": "activity.event.ExportAsCSV",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {
            "min_date": "2016-11-27 17:10:05",
            "max_date": "2016-11-27 17:10:05",
            "type_list": [
                1,
                5,
                8,
                9
            ],
            "csv_delimiter": "some text",
            "csv_enclosure": "some text",
            "user_id_list": [
                1234,
                82373,
                1212
            ],
            "filter": "some text",
            "with_account_event": true
        }
    }
}

activity.event.GetList

Get a list of activity events

Get a list of activity events based on the given parameters

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id_list - int list

Body Data:

  • min_date - datetime Optional: null
  • max_date - datetime Optional: null
  • limit - int Optional: 100
  • user_id_list - int list Optional: []
  • filter - string Optional: ""
  • with_account_event - bool Optional: false
  • type_list - int list Optional: []

Output:

  • activity_events - LIST of ActivityEvent
  • total_events_count - int

Example:

{
    "header": {
        "target": "activity.event.GetList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {
            "min_date": "2016-11-27 17:10:05",
            "max_date": "2016-11-27 17:10:05",
            "limit": 12345,
            "user_id_list": [
                1234,
                82373,
                1212
            ],
            "filter": "some text",
            "with_account_event": true,
            "type_list": [
                1,
                5,
                8,
                9
            ]
        }
    }
}

activity.event.GetNextList

Ask for the next X results from events

If we are only displaying the first 100 results, this request should return the next 100 results, etc...

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id_list - int list

Body Data:

  • min_date - datetime Optional: null
  • max_date - datetime Optional: null
  • limit - int Optional: 100
  • user_id_list - int list Optional: []
  • filter - string Optional: ""
  • with_account_event - bool Optional: false
  • type_list - int list Optional: []
  • current_result_count - int

Output:

  • activity_events - LIST of ActivityEvent
  • total_events_count - int

Example:

{
    "header": {
        "target": "activity.event.GetNextList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {
            "min_date": "2016-11-27 17:10:05",
            "max_date": "2016-11-27 17:10:05",
            "limit": 12345,
            "user_id_list": [
                1234,
                82373,
                1212
            ],
            "filter": "some text",
            "with_account_event": true,
            "type_list": [
                1,
                5,
                8,
                9
            ],
            "current_result_count": 12345
        }
    }
}

activity.event.GetUnreadCount

Get unread event count by projects

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • unread - LIST of struct
    • project_id - int
    • total - int
    • document - int
    • task - int
    • calendar - int
    • meeting - int

Example:

{
    "header": {
        "target": "activity.event.GetUnreadCount",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

activity.event.MarkItemsHistoryAsRead



Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • item_history_id_list - int list

Output:

  • item_history_id_list - LIST of int

Example:

{
    "header": {
        "target": "activity.event.MarkItemsHistoryAsRead",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "item_history_id_list": [
                1,
                5,
                8,
                9
            ]
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.AddComment

Add a comment to a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "calendar.event.AddComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

calendar.event.AddExternalAttachment

Attach an external file to a calendar event

Url:

https://api.files.wimi.pro

Call type:

The json message is sent in the X-Wimi-WApi http header of the request.
It has to be encoded (encoding similar to the php function rawurlencode).
The file content is provided in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • file_timestamp - string Optional: ""
  • name - string
  • size - int
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "calendar.event.AddExternalAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "file_timestamp": "some text",
            "name": "some text",
            "size": 12345,
            "_encryption": "no example yet"
        }
    }
}

calendar.event.AddWimiAttachment

Attach a wimi file to a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • file_id - int

Output:

Example:

{
    "header": {
        "target": "calendar.event.AddWimiAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.ConversationArchive

Archive a conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

  • success - bool
  • calendar_event_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "calendar.event.ConversationArchive",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.ConversationClearUnseen

Clear unseen count for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

  • success - bool
  • calendar_event_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "calendar.event.ConversationClearUnseen",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.ConversationSetSilent

Set silent for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • silent - bool
  • silent_until - datetime Optional: null

Output:

  • success - bool
  • calendar_event_id - int
  • user_id - int
  • silent - bool
  • silent_until - datetime - can be missing - can be null

Example:

{
    "header": {
        "target": "calendar.event.ConversationSetSilent",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "silent": true,
            "silent_until": "2016-11-27 17:10:05"
        }
    }
}

calendar.event.Create

Create a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • event - struct

Output:

Example:

{
    "header": {
        "target": "calendar.event.Create",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "event": "no example yet"
        }
    }
}

calendar.event.DeleteComment

Delete a calendar event comment

Mark the message as deleted, does not delete it entirely

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • comment_id - int

Output:

  • success - bool
  • calendar_event_id - int
  • comment - Comment

Example:

{
    "header": {
        "target": "calendar.event.DeleteComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.DownloadAttachment

Download a calendar event attachment

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • attachment_id - int
  • calendar_event_id - CalendarEvent

Output:

  • md5 - string
  • date - string
  • name - string
  • size - int
  • file_path - string
  • attachment - ExternalAttachment

Example:

{
    "header": {
        "target": "calendar.event.DownloadAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "attachment_id": 98513,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.EditComment

Edit a comment of a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • comment_id - int

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "calendar.event.EditComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

calendar.event.Get

Get the details of a calendar events

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

Example:

{
    "header": {
        "target": "calendar.event.Get",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.GetAttachmentList

get the list of files attached to a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

Example:

{
    "header": {
        "target": "calendar.event.GetAttachmentList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.GetComments

Get teh comments of a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

Example:

{
    "header": {
        "target": "calendar.event.GetComments",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.GetList

Get a list of events

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • start_date - datetime Optional: null
  • end_date - datetime Optional: null
  • filters - int list Optional: Array ( [0] => 1 )
  • view_busy - bool Optional: false
  • calendar_event_id_list - int list Optional: []
  • gen_rec_occurrences - bool Optional: true
  • modified_after - int Optional: 0

Output:

Example:

{
    "header": {
        "target": "calendar.event.GetList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "start_date": "2016-11-27 17:10:05",
            "end_date": "2016-11-27 17:10:05",
            "filters": [
                1,
                5,
                8,
                9
            ],
            "view_busy": true,
            "calendar_event_id_list": [
                1,
                5,
                8,
                9
            ],
            "gen_rec_occurrences": true,
            "modified_after": 12345
        }
    }
}

calendar.event.GetListUnified

Get a list of events for unified calendars

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • start_date - datetime
  • end_date - datetime
  • filters - int list Optional: Array ( [0] => 1 )
  • project_id_list - int list Optional: null
  • user_id_list - int list Optional: null
  • gen_rec_occurrences - bool Optional: true

Output:

Example:

{
    "header": {
        "target": "calendar.event.GetListUnified",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "start_date": "2016-11-27 17:10:05",
            "end_date": "2016-11-27 17:10:05",
            "filters": [
                1,
                5,
                8,
                9
            ],
            "project_id_list": [
                1,
                5,
                8,
                9
            ],
            "user_id_list": [
                1,
                5,
                8,
                9
            ],
            "gen_rec_occurrences": true
        }
    }
}

calendar.event.GetSubscriptionLink

Get a calendar subscription link

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Output:

  • link - string - can be null

Example:

{
    "header": {
        "target": "calendar.event.GetSubscriptionLink",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.GetUnifiedSubscriptionLink

Get calendar subscription link for unified projects

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • link - string

Example:

{
    "header": {
        "target": "calendar.event.GetUnifiedSubscriptionLink",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.PreviewAttachment

Request attachment preview

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • attachment_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • preview_type - string Optional: "default"

Output:

  • md5 - string
  • date - string
  • name - string
  • size - int
  • file_path - string
  • preview_status - string
  • preview_type - string
  • doc_type - string
  • doc_id - int

Example:

{
    "header": {
        "target": "calendar.event.PreviewAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "attachment_id": 98513,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "preview_type": "some text"
        }
    }
}

calendar.event.Remove

Delete a calendar event

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Output:

  • event_id - int
  • success - bool

Example:

{
    "header": {
        "target": "calendar.event.Remove",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.RemoveExternalAttachment

remove an external attachment from the calendar

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • attachment_id - int

Output:

  • success - bool
  • attachment_id - int
  • calendar_event_id - int

Example:

{
    "header": {
        "target": "calendar.event.RemoveExternalAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "attachment_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.RemoveRecurrenceOccurrence

Delete a recurrence occurrence

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • recurrence_id - datetime

Output:

  • event_id - int
  • success - bool
  • recurrence_id - datetime

Example:

{
    "header": {
        "target": "calendar.event.RemoveRecurrenceOccurrence",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "recurrence_id": "2016-11-27 17:10:05"
        }
    }
}

calendar.event.RemoveWimiAttachment

remove a wimi attachment from the calendar

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • attachment_id - int

Output:

  • success - bool
  • attachment_id - int
  • calendar_event_id - int

Example:

{
    "header": {
        "target": "calendar.event.RemoveWimiAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "attachment_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

calendar.event.Update

Update a calendar event - only the provided data are updated.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent

Body Data:

  • event - struct

Output:

  • event - CalendarEvent
  • success - bool
  • updated_fields - LIST of string

Example:

{
    "header": {
        "target": "calendar.event.Update",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364
        }
    },
    "body": {
        "data": {
            "event": "no example yet"
        }
    }
}

calendar.event.UpdateProject

Move a calendar event from one project to another

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • calendar_event_id - CalendarEvent
  • target_project_id - int

Output:

Example:

{
    "header": {
        "target": "calendar.event.UpdateProject",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "calendar_event_id": 12364,
            "target_project_id": 94233
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.AddAttachment

Attach a file to a chat

Url:

https://api.files.wimi.pro

Call type:

The json message is sent in the X-Wimi-WApi http header of the request.
It has to be encoded (encoding similar to the php function rawurlencode).
The file content is provided in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Body Data:

  • attachment_title - string Optional: ""
  • attachment_description - string Optional: ""
  • name - string
  • size - int
  • _messageEncryption - any list Optional: []
  • _fileEncryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "chat.chat.AddAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "attachment_title": "some text",
            "attachment_description": "some text",
            "name": "some text",
            "size": 12345,
            "_messageEncryption": "no example yet",
            "_fileEncryption": "no example yet"
        }
    }
}

chat.chat.AddInternalAttachment

Attach a internal file to a chat

Url:

https://api.files.wimi.pro

Call type:

The json message is sent in the X-Wimi-WApi http header of the request.
It has to be encoded (encoding similar to the php function rawurlencode).
The file content is provided in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • file_id - int

Output:

Example:

{
    "header": {
        "target": "chat.chat.AddInternalAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.AddMembers

Add members to a chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • member_id_list - array

Output:

  • success - bool
  • chat_id - int
  • chat_users - LIST of ChatUser
  • chat_members - LIST of ChatMember

Example:

{
    "header": {
        "target": "chat.chat.AddMembers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "member_id_list": [
                {
                    "member_type_id": 123,
                    "member_id": 123
                },
                {
                    "member_type_id": 456,
                    "member_id": 789
                }
            ]
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.AddUsers

Add users to a chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • user_id_list - int list

Output:

  • success - bool
  • chat_id - int
  • added_user_id_list - LIST of int
  • chat_users - LIST of ChatUser

Example:

{
    "header": {
        "target": "chat.chat.AddUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.CanceledTyping

Send a notification that the user canceled typing

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

  • user_id - int
  • chat_id - int

Example:

{
    "header": {
        "target": "chat.chat.CanceledTyping",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.ClearUnseen

Clear unseen count for chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

  • success - bool
  • chat_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "chat.chat.ClearUnseen",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.Create

Create a group chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • users - int list Optional: []
  • user_groups - int list Optional: []
  • name - string Optional: ""
  • use_existing - bool Optional: true
  • _encryption - any list Optional: []

Output:

  • success - bool
  • chat_id - int
  • _encryption - LIST of Encryption - can be null

Example:

{
    "header": {
        "target": "chat.chat.Create",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "users": [
                1234,
                82373,
                1212
            ],
            "user_groups": [
                1234,
                82373,
                1212
            ],
            "name": "some text",
            "use_existing": true,
            "_encryption": "no example yet"
        }
    }
}

chat.chat.CreateChannel

Create channel chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Output:

  • success - bool
  • chat_id - int

Example:

{
    "header": {
        "target": "chat.chat.CreateChannel",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.DeleteMessage

Delete a message

Mark the message as deleted, does not delete it entirely

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int

Body Data:

  • message_index - int Optional: 0

Output:

Example:

{
    "header": {
        "target": "chat.chat.DeleteMessage",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "message_index": 12345
        }
    }
}

chat.chat.Disable

Disable a chat for a user

Remove the chat from the recent chats

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

  • success - bool
  • chat_id - int

Example:

{
    "header": {
        "target": "chat.chat.Disable",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.DownloadAttachment

Download a chat attachment

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • file_id - int
  • chat_id - int

Output:

  • md5 - string
  • date - string
  • name - string
  • size - int
  • file_path - string - can be missing
  • attachment - ExternalAttachment

Example:

{
    "header": {
        "target": "chat.chat.DownloadAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "file_id": 98513,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.EditMessage

Edit a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int

Body Data:

  • message - string
  • message_index - int Optional: 0
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "chat.chat.EditMessage",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "message": "some text",
            "message_index": 12345,
            "_encryption": "no example yet"
        }
    }
}

chat.chat.EditName

Edit a chat name

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Body Data:

  • name - string
  • _encryption - any list Optional: []

Output:

  • success - bool
  • chat_id - int
  • name - string
  • _encryption - LIST of Encryption - can be null

Example:

{
    "header": {
        "target": "chat.chat.EditName",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "name": "some text",
            "_encryption": "no example yet"
        }
    }
}

chat.chat.FavoriteMessage

Favorite a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int

Body Data:

  • message_index - int Optional: 0

Output:

  • success - bool
  • chat_id - int
  • message_index - int
  • message_id - int

Example:

{
    "header": {
        "target": "chat.chat.FavoriteMessage",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "message_index": 12345
        }
    }
}

chat.chat.GetAttachmentList

Get attachment list

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

Example:

{
    "header": {
        "target": "chat.chat.GetAttachmentList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.GetChat

Get chat

with or without messages, default with

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Body Data:

  • with_messages - bool Optional: true
  • limit - int Optional: 30

Output:

  • success - bool
  • chat_id - int
  • chat - ChatFull

Example:

{
    "header": {
        "target": "chat.chat.GetChat",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "with_messages": true,
            "limit": 12345
        }
    }
}

chat.chat.GetFavorites

Get favorite list

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

Example:

{
    "header": {
        "target": "chat.chat.GetFavorites",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.GetLinks

Get shared links in a chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

Example:

{
    "header": {
        "target": "chat.chat.GetLinks",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.GetList

Get chat list

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • success - bool
  • chats - LIST of Chat

Example:

{
    "header": {
        "target": "chat.chat.GetList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.GetMessageBeforeAfter

Search through chat messages

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int

Body Data:

  • message_index - int Optional: 0

Output:

Example:

{
    "header": {
        "target": "chat.chat.GetMessageBeforeAfter",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "message_index": 12345
        }
    }
}

chat.chat.LoadMessages

Get chat messages from offset of given message id, until limit

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int Optional: null

Body Data:

  • offset - int Optional: 0
  • limit - int Optional: 30

Output:

  • success - bool
  • chat_id - int
  • messages - LIST of ChatMessage

Example:

{
    "header": {
        "target": "chat.chat.LoadMessages",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "offset": 12345,
            "limit": 12345
        }
    }
}

chat.chat.PostMessage

Post message to chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • api_key - string Optional: ""
  • chat_id - int

Body Data:

  • message - string
  • integration_attachment - Wimi\WApi\Parameter\WapiParamIntegrationAttachment Optional: null
  • _encryption - any list Optional: []
  • _encryptionIntegration - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "chat.chat.PostMessage",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "message": "some text",
            "integration_attachment": "no example yet",
            "_encryption": "no example yet",
            "_encryptionIntegration": "no example yet"
        }
    }
}

chat.chat.PreviewAttachment

Request attachment preview

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • attachment_id - int Optional: null
  • chat_id - int

Body Data:

  • preview_type - string Optional: "default"

Output:

  • md5 - string
  • date - string
  • name - string
  • size - int
  • file_path - string
  • preview_status - string
  • preview_type - string
  • doc_type - string
  • doc_id - int

Example:

{
    "header": {
        "target": "chat.chat.PreviewAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "preview_type": "some text"
        }
    }
}

chat.chat.RemoveMembers

Remove members from a chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • member_id_list - array

Output:

  • success - bool
  • chat_id - int
  • chat_users - LIST of ChatUser
  • chat_members - LIST of ChatMember

Example:

{
    "header": {
        "target": "chat.chat.RemoveMembers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "member_id_list": [
                {
                    "member_type_id": 123,
                    "member_id": 123
                },
                {
                    "member_type_id": 456,
                    "member_id": 789
                }
            ]
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.RemoveUsers

Remove users from a chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • user_id_list - int list

Output:

  • success - bool
  • chat_id - int
  • removed_user_id_list - LIST of int
  • chat_users - LIST of ChatUser

Example:

{
    "header": {
        "target": "chat.chat.RemoveUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.Search

Search through chat messages

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Body Data:

  • search - string

Output:

Example:

{
    "header": {
        "target": "chat.chat.Search",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "search": "some text"
        }
    }
}

chat.chat.SetMessageIntegrationAttachment

Set the integration attachment for a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • api_key - string Optional: ""
  • chat_id - int
  • message_id - int

Body Data:

  • integration_attachment - Wimi\WApi\Parameter\WapiParamIntegrationAttachment Optional: null
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "chat.chat.SetMessageIntegrationAttachment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "integration_attachment": "no example yet",
            "_encryption": "no example yet"
        }
    }
}

chat.chat.SetSilent

Set silent for chat

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Body Data:

  • silent - bool
  • silent_until - datetime Optional: null

Output:

  • success - bool
  • chat_id - int
  • user_id - int
  • silent - bool
  • silent_until - datetime - can be missing - can be null

Example:

{
    "header": {
        "target": "chat.chat.SetSilent",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {
            "silent": true,
            "silent_until": "2016-11-27 17:10:05"
        }
    }
}

chat.chat.StartedTyping

Send a notification that the user is typing

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int

Output:

  • user_id - int
  • chat_id - int

Example:

{
    "header": {
        "target": "chat.chat.StartedTyping",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234"
        }
    },
    "body": {
        "data": {}
    }
}

chat.chat.UnfavoriteMessage

Unfavorite a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • chat_id - int
  • message_id - int

Body Data:

  • message_index - int Optional: 0

Output:

  • success - bool
  • chat_id - int
  • message_index - int
  • message_id - int

Example:

{
    "header": {
        "target": "chat.chat.UnfavoriteMessage",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "message_index": 12345
        }
    }
}

chat.chat.UpdateGroupChatProfilePicture



Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • chat_id - int
  • name - string Optional: ""
  • size - int Optional: 0

Output:

  • success - bool
  • chat_id - int
  • custom_image_id - int

Example:

{
    "header": {
        "target": "chat.chat.UpdateGroupChatProfilePicture",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "chat_id": "1234",
            "name": "some text",
            "size": 12345
        }
    }
}

chat.message.AddMessageReaction

Add a reaction for a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • api_key - string Optional: ""
  • chat_id - int
  • message_id - int

Body Data:

  • reaction - Emoji
  • _encryption - any list Optional: []

Output:

  • success - bool
  • chat_id - int
  • message_id - int
  • user_id - int
  • reaction - string

Example:

{
    "header": {
        "target": "chat.message.AddMessageReaction",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "reaction": "copyright",
            "_encryption": "no example yet"
        }
    }
}

chat.message.DeleteMessageReaction

Delete a reaction for a message

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • api_key - string Optional: ""
  • chat_id - int
  • message_id - int

Body Data:

  • reaction - Emoji
  • _encryption - any list Optional: []

Output:

  • success - bool
  • chat_id - int
  • message_id - int
  • user_id - int
  • reaction - string

Example:

{
    "header": {
        "target": "chat.message.DeleteMessageReaction",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "chat_id": "1234",
            "message_id": "1234"
        }
    },
    "body": {
        "data": {
            "reaction": "copyright",
            "_encryption": "no example yet"
        }
    }
}

comment.comment.GetUserCommentedItems

Get user commented items

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "comment.comment.GetUserCommentedItems",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.AddComment

Add comment to a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "document.directory.AddComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.directory.AddLink

Add link to directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Body Data:

  • url - string
  • title - string
  • _encryption - any list Optional: []

Output:

  • success - bool
  • link - Link

Example:

{
    "header": {
        "target": "document.directory.AddLink",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "url": "mylabel1",
            "title": "mylabel1",
            "_encryption": "no example yet"
        }
    }
}

document.directory.AddMembersToDir

Add members to dir

Return all users having access to dir

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • group_member_list - array

Output:

  • member_access_list - LIST of MemberAccess
  • dir_id - int
  • dir_auth - int

Example:

{
    "header": {
        "target": "document.directory.AddMembersToDir",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "group_member_list": [
                {
                    "member_type_id": 123,
                    "member_id": 123
                },
                {
                    "member_type_id": 456,
                    "member_id": 789
                }
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.ConversationArchive

Archive a conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • success - bool
  • dir_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "document.directory.ConversationArchive",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.ConversationClearUnseen

Clear unseen count for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • success - bool
  • dir_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "document.directory.ConversationClearUnseen",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.ConversationSetSilent

Set silent for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Body Data:

  • silent - bool
  • silent_until - datetime Optional: null

Output:

  • success - bool
  • dir_id - int
  • user_id - int
  • silent - bool
  • silent_until - datetime - can be missing - can be null

Example:

{
    "header": {
        "target": "document.directory.ConversationSetSilent",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {
            "silent": true,
            "silent_until": "2016-11-27 17:10:05"
        }
    }
}

document.directory.Copy

Copy a directory elsewhere

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • dest_dir_id - int Optional: null

Body Data:

  • name - string

Output:

  • dir_id - int

Example:

{
    "header": {
        "target": "document.directory.Copy",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {
            "name": "some text"
        }
    }
}

document.directory.Create

Creates a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Body Data:

  • name - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "document.directory.Create",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "name": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.directory.DeleteComment

Delete a directory comment

Mark the message as deleted, does not delete it entirely

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • comment_id - int

Output:

  • success - bool
  • dir_id - int
  • comment - Comment

Example:

{
    "header": {
        "target": "document.directory.DeleteComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.DeniedList

Get the list of denied directories for a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • group_member - array

Output:

  • dir_id_list - LIST of int

Example:

{
    "header": {
        "target": "document.directory.DeniedList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "group_member": {
                "member_type_id": 123,
                "member_id": 123
            }
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.EditComment

Edit a comment of a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • comment_id - int

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "document.directory.EditComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.directory.EditMembersAccessToDirectories

Edits members access on one or several directories

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • member_id_list - array

Body Data:

  • dir_access_array - assoc array int to in

Output:

  • success - bool
  • dirs - LIST of struct
    • success - bool
    • dir_id - int
    • dir_auth - int
    • member_access_list - LIST of MemberAccess
    • directory - Directory - can be missing

Example:

{
    "header": {
        "target": "document.directory.EditMembersAccessToDirectories",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "member_id_list": [
                {
                    "member_type_id": 123,
                    "member_id": 123
                },
                {
                    "member_type_id": 456,
                    "member_id": 789
                }
            ]
        }
    },
    "body": {
        "data": {
            "dir_access_array": {
                "1": 0,
                "2": 1,
                "5": 2
            }
        }
    }
}

document.directory.EditName

Edits the name of a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Body Data:

  • name - string
  • _encryption - any list Optional: []

Output:

  • name - string
  • dir_id - int
  • _encryption - LIST of Encryption - can be null

Example:

{
    "header": {
        "target": "document.directory.EditName",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {
            "name": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.directory.GetComments

Get comments of a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

Example:

{
    "header": {
        "target": "document.directory.GetComments",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.GetDirectoryUsers

Get list of all users having access to given directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • users - LIST of User

Example:

{
    "header": {
        "target": "document.directory.GetDirectoryUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.GetMembersAccess

Get users access of a dir

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • dir_id - int
  • dir_auth - int
  • member_access_list - LIST of MemberAccess

Example:

{
    "header": {
        "target": "document.directory.GetMembersAccess",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.GetReadOnlyStateForUser

Get the read only state of the directory for the current user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • success - bool
  • is_read_only - bool

Example:

{
    "header": {
        "target": "document.directory.GetReadOnlyStateForUser",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.LinkPathInfo

Get file path info

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • link_id - Link

Output:

  • path_ids - LIST of int
  • link_id - int

Example:

{
    "header": {
        "target": "document.directory.LinkPathInfo",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "link_id": "no example yet"
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.Move

Move directories to a folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null
  • dir_id_list - int list

Body Data:

  • conflict_rename - bool Optional: false

Output:

  • success - bool
  • conflicts_count - int
  • conflicts - LIST of struct - can be missing
    • dir_id - int
    • dir_name - string
    • alt_name - string
  • nb_dirs - int - can be missing
  • dir_id - int - can be missing
  • dirs - LIST of struct - can be missing
    • error - Error - can be missing
    • success - bool - can be missing
    • dir - Directory - can be missing

Example:

{
    "header": {
        "target": "document.directory.Move",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {
            "conflict_rename": true
        }
    }
}

document.directory.MoveLink

Move links from one directory to another

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null
  • link_id_list - int list

Output:

  • links - LIST of Link
  • dir_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.directory.MoveLink",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "link_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.MoveToGarbageCollector

Permanently delete one or more directories

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id_list - int list

Output:

  • success - bool
  • dirs - LIST of struct
    • error - Error - can be missing
    • success - bool - can be missing
    • dir_id - int - can be missing

Example:

{
    "header": {
        "target": "document.directory.MoveToGarbageCollector",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.MoveToTrash

Delete one or more directories

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id_list - int list

Output:

  • success - bool
  • dirs - LIST of struct
    • error - Error - can be missing
    • success - bool - can be missing
    • dir_id - int - can be missing

Example:

{
    "header": {
        "target": "document.directory.MoveToTrash",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.PathInfo

Get directory path info

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • path_ids - LIST of int
  • path_names - LIST of string

Example:

{
    "header": {
        "target": "document.directory.PathInfo",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.RemoveMembersFromDir

Remove members from dir

Return all users having access to dir

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • group_member_list - array

Output:

  • member_access_list - LIST of MemberAccess
  • dir_id - int
  • dir_auth - int

Example:

{
    "header": {
        "target": "document.directory.RemoveMembersFromDir",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "group_member_list": [
                {
                    "member_type_id": 123,
                    "member_id": 123
                },
                {
                    "member_type_id": 456,
                    "member_id": 789
                }
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.directory.RemoveProperty

Remove a property from a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • property_label - string

Body Data:

  • subdirs - bool Optional: false

Output:

  • success - bool
  • dir_id_list - LIST of int
  • property - Property

Example:

{
    "header": {
        "target": "document.directory.RemoveProperty",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "property_label": "mylabel1"
        }
    },
    "body": {
        "data": {
            "subdirs": true
        }
    }
}

document.directory.Restore

Restore one or more directories from trash

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id_list - int list

Body Data:

  • dir_id - int Optional: null

Output:

  • success - bool
  • dirs - LIST of struct
    • error - int - can be missing
    • error_str - string - can be missing
    • success - bool - can be missing
    • dir_id - int - can be missing
    • parent_id - int - can be missing
    • dir - Directory - can be missing

Example:

{
    "header": {
        "target": "document.directory.Restore",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {
            "dir_id": 785645
        }
    }
}

document.directory.SetDirectoryDefault

Get comments of a directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Body Data:

  • access - int Optional: 0

Output:

  • success - bool
  • dir_id - int
  • access - int

Example:

{
    "header": {
        "target": "document.directory.SetDirectoryDefault",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {
            "access": 12345
        }
    }
}

document.directory.SetPropertyValue

Add a property to a directory

subdirs: whether or not we apply this property to all subdirs of dir * Return list of dir id affected by the property and its value

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int
  • property_label - string

Body Data:

  • value - string
  • subdirs - bool Optional: false

Output:

  • success - bool
  • dir_id_list - LIST of int
  • property - Property

Example:

{
    "header": {
        "target": "document.directory.SetPropertyValue",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645,
            "property_label": "mylabel1"
        }
    },
    "body": {
        "data": {
            "value": "mylabel1",
            "subdirs": true
        }
    }
}

document.entry.DirList

List folders found in a folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Output:

Example:

{
    "header": {
        "target": "document.entry.DirList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.entry.List

List the files and folders found in a folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Body Data:

  • no_comment_count - bool Optional: false
  • process_thumbnail - bool Optional: false

Output:

Example:

{
    "header": {
        "target": "document.entry.List",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "no_comment_count": true,
            "process_thumbnail": true
        }
    }
}

document.entry.TrashList

List the files, the link and folders found in the trash

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Output:

Example:

{
    "header": {
        "target": "document.entry.TrashList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.ActivateSharing

Activate sharing on one file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

  • file_id - int
  • file_master_id - int
  • code - string
  • file - File
  • url - string

Example:

{
    "header": {
        "target": "document.file.ActivateSharing",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.AddComment

Add a file comment

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

  • file_id - int
  • file_master_id - int
  • comment - Comment

Example:

{
    "header": {
        "target": "document.file.AddComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.file.AddTag

Add a tag on a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • label - string

Body Data:

  • _encryption - any list Optional: []

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • tag - Tag

Example:

{
    "header": {
        "target": "document.file.AddTag",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "label": "mylabel1"
        }
    },
    "body": {
        "data": {
            "_encryption": "no example yet"
        }
    }
}

document.file.AttachmentIntoDoc

Take an attachment from chat or task and add it to the documennt module

Take an attachment from chat or task and add it to the document module

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • attachment_id - int
  • dir_id - int Optional: null

Output:

  • success - bool
  • file - File

Example:

{
    "header": {
        "target": "document.file.AttachmentIntoDoc",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "attachment_id": 98513
        }
    },
    "body": {
        "data": {}
    }
}

document.file.CheckConflict

check a file name conflict

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Body Data:

  • name - string

Output:

  • conflict - bool
  • alt_name - string - can be missing

Example:

{
    "header": {
        "target": "document.file.CheckConflict",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "name": "some text"
        }
    }
}

document.file.CheckConflicts

Check conflicts of a specific name in a folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null

Body Data:

  • file_name - string

Output:

  • success - bool
  • conflict - bool
  • conflict_file_id - int - can be missing
  • alt_name - string - can be missing

Example:

{
    "header": {
        "target": "document.file.CheckConflicts",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "file_name": "some text"
        }
    }
}

document.file.ConversationArchive

Archive a conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int

Output:

  • success - bool
  • file_master_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "document.file.ConversationArchive",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375
        }
    },
    "body": {
        "data": {}
    }
}

document.file.ConversationClearUnseen

Clear unseen count for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int

Output:

  • success - bool
  • file_master_id - int
  • user_id - int

Example:

{
    "header": {
        "target": "document.file.ConversationClearUnseen",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375
        }
    },
    "body": {
        "data": {}
    }
}

document.file.ConversationSetSilent

Set silent for conversation

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int

Body Data:

  • silent - bool
  • silent_until - datetime Optional: null

Output:

  • success - bool
  • file_master_id - int
  • user_id - int
  • silent - bool
  • silent_until - datetime - can be missing - can be null

Example:

{
    "header": {
        "target": "document.file.ConversationSetSilent",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375
        }
    },
    "body": {
        "data": {
            "silent": true,
            "silent_until": "2016-11-27 17:10:05"
        }
    }
}

document.file.Copy

Copy a file elsewhere

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int
  • dest_dir_id - int Optional: null

Body Data:

  • name - string

Output:

Example:

{
    "header": {
        "target": "document.file.Copy",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "name": "some text"
        }
    }
}

document.file.DeactivateSharing

Deactivate sharing on one file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

  • file_id - int
  • file_master_id - int

Example:

{
    "header": {
        "target": "document.file.DeactivateSharing",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.DeleteComment

Delete a file comment

Mark the message as deleted, does not delete it entirely

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null
  • comment_id - int

Output:

  • success - bool
  • file_id - int
  • file_master_id - int
  • comment - Comment

Example:

{
    "header": {
        "target": "document.file.DeleteComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {}
    }
}

document.file.Download

download a file

The file content is returned in the message body.

The wapi json message is returned in the X-Wimi-WApi http header of the response and needs to be decoded using the function equivalent to the php function rawurldecode.

The download web request needs to be performed on the filer domain (e.g. api.files.wimi.pro) instead of the standard domain (api.wimi.pro).

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null

Output:

  • md5 - string
  • date - string
  • name - string
  • size - int
  • file_path - string - can be missing
  • file - File

Example:

{
    "header": {
        "target": "document.file.Download",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.EditComment

Edit a file comment

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null
  • comment_id - int

Body Data:

  • comment - string
  • _encryption - any list Optional: []

Output:

  • file_id - int
  • file_master_id - int
  • comment - Comment

Example:

{
    "header": {
        "target": "document.file.EditComment",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "comment_id": 122931
        }
    },
    "body": {
        "data": {
            "comment": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.file.EditDescription

Edit a file description

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • description - string
  • _encryption - any list Optional: []

Output:

  • file_id - int
  • file_master_id - int
  • info - string
  • file - File

Example:

{
    "header": {
        "target": "document.file.EditDescription",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "description": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.file.EditName

Edits the name of a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • name - string
  • _encryption - any list Optional: []

Output:

  • name - string
  • file_id - int
  • file_master_id - int
  • file - File

Example:

{
    "header": {
        "target": "document.file.EditName",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "name": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.file.GetComments

Get the comments of a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null

Output:

Example:

{
    "header": {
        "target": "document.file.GetComments",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.GetDownloadToken

Get a download token to be used only one time.

Token to be used in .files./download.php?download_token= The token generated is set in memcache. It will be removed automatically from memcache after 1 min or when it has been used.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null

Output:

  • token - string

Example:

{
    "header": {
        "target": "document.file.GetDownloadToken",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.GetEvents

Get the historical events of a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

Example:

{
    "header": {
        "target": "document.file.GetEvents",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.GetProperties

get the properties of a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_id_list - int list Optional: []

Output:

  • file_list - LIST of File

Example:

{
    "header": {
        "target": "document.file.GetProperties",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.GetVersions

Get a file's versions list

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

  • versions - LIST of File

Example:

{
    "header": {
        "target": "document.file.GetVersions",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.GuestLink

Get guest link of a file - DEPRECATED - use ActivateSharing

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

  • url - string
  • file - File

Example:

{
    "header": {
        "target": "document.file.GuestLink",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.IsVersionOf

Checks if a version of a file is on the server (by md5)

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • file_id - int

Body Data:

  • file_md5 - string

Output:

  • found - bool

Example:

{
    "header": {
        "target": "document.file.IsVersionOf",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "file_id": 12345
        }
    },
    "body": {
        "data": {
            "file_md5": "some text"
        }
    }
}

document.file.LinkTag

Link a tag to a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • tag_id - int

Body Data:

  • _encryption - any list Optional: []

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • tag - Tag

Example:

{
    "header": {
        "target": "document.file.LinkTag",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "tag_id": 1193
        }
    },
    "body": {
        "data": {
            "_encryption": "no example yet"
        }
    }
}

document.file.Lock

Used to lock a file.

By default, you cannot lock a file if is it already locked by a different user. Use the  force parameter to perform the action regardless of that constraint.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • force - bool Optional: false

Output:

Example:

{
    "header": {
        "target": "document.file.Lock",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "force": true
        }
    }
}

document.file.Move

Move files to a folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null
  • file_id_list - int list

Body Data:

  • operation - string Optional: ""

Output:

  • success - bool
  • conflicts_count - int
  • conflicts - LIST of struct - can be missing
    • file_id - int
    • file_name - string
    • alt_name - string
  • nb_files - int - can be missing
  • dir_id - int - can be missing
  • files - LIST of struct - can be missing
    • error - Error - can be missing
    • success - bool - can be missing
    • file - File - can be missing

Example:

{
    "header": {
        "target": "document.file.Move",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {
            "operation": "some text"
        }
    }
}

document.file.MoveToGarbageCollector

Permanently delete one or more files

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id_list - int list

Body Data:

  • force - bool Optional: false

Output:

  • success - bool
  • files - LIST of struct
    • error - Error - can be missing
    • success - bool - can be missing
    • file_id - int - can be missing

Example:

{
    "header": {
        "target": "document.file.MoveToGarbageCollector",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {
            "force": true
        }
    }
}

document.file.MoveToTrash

Delete one or more files

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id_list - int list

Output:

  • success - bool
  • files - LIST of struct
    • error - Error - can be missing
    • success - bool - can be missing
    • file_id - int - can be missing

Example:

{
    "header": {
        "target": "document.file.MoveToTrash",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.file.NotifyOpen

Warn users that a specific file is being opened

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

Example:

{
    "header": {
        "target": "document.file.NotifyOpen",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.PathInfo

Get file path info

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int Optional: null
  • file_master_id - int Optional: null

Output:

  • path_ids - LIST of int
  • path_names - LIST of string
  • file_id - int

Example:

{
    "header": {
        "target": "document.file.PathInfo",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.file.RemoveProperty

Remove a property from a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • property_label - string

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • property - Property

Example:

{
    "header": {
        "target": "document.file.RemoveProperty",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "property_label": "mylabel1"
        }
    },
    "body": {
        "data": {}
    }
}

document.file.RemoveTag

Remove a tag in a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • tag_id - int

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • tag - Tag

Example:

{
    "header": {
        "target": "document.file.RemoveTag",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "tag_id": 1193
        }
    },
    "body": {
        "data": {}
    }
}

document.file.RemoveTagByLabel

Remove a tag in a file using the label

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • label - string

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • tag - Tag

Example:

{
    "header": {
        "target": "document.file.RemoveTagByLabel",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "label": "mylabel1"
        }
    },
    "body": {
        "data": {}
    }
}

document.file.Restore

Restore one or more files

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id_list - int list

Body Data:

  • dir_id - int Optional: null

Output:

  • success - bool
  • files - LIST of struct
    • success - bool
    • file_id - int
    • parent_id - int
    • file - File - can be missing
    • error - int - can be missing
    • error_str - string - can be missing

Example:

{
    "header": {
        "target": "document.file.Restore",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {
            "dir_id": 785645
        }
    }
}

document.file.SetPropertyValue

Set a property to a file

Add the property + value if the property does not exist on this file yet

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • property_label - string

Body Data:

  • value - string

Output:

  • success - bool
  • file_master_id - int
  • file_id - int
  • property - Property

Example:

{
    "header": {
        "target": "document.file.SetPropertyValue",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "property_label": "mylabel1"
        }
    },
    "body": {
        "data": {
            "value": "mylabel1"
        }
    }
}

document.file.Unlock

Used to unlock a file.

By default, you cannot unlock a file if is it already locked by a different user. Use the  force parameter to perform the action regardless of that constraint.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • force - bool Optional: false

Output:

Example:

{
    "header": {
        "target": "document.file.Unlock",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "force": true
        }
    }
}

document.file.Unversion

Unversion one file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Output:

Example:

{
    "header": {
        "target": "document.file.Unversion",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {}
    }
}

document.file.Upload

Upload a file

If you want to upload a modified version of a file, you need to provide the file_id and set replace_master to true.

Url:

https://api.files.wimi.pro

Call type:

The json message is sent in the X-Wimi-WApi http header of the request.
It has to be encoded (encoding similar to the php function rawurlencode).
The file content is provided in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int Optional: null
  • file_id - int Optional: null

Body Data:

  • notify - bool Optional: false
  • timestamp - string Optional: ""
  • replace_master - bool Optional: false
  • md5 - string Optional: ""
  • name - string
  • info - string Optional: ""
  • size - int
  • process_thumbnail - bool Optional: false
  • _encryption - any list Optional: []
  • _encryption_file_master - any list Optional: []

Output:

  • file - File
  • id_version_of - int

Example:

{
    "header": {
        "target": "document.file.Upload",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "notify": true,
            "timestamp": "some text",
            "replace_master": true,
            "md5": "some text",
            "name": "some text",
            "info": "some text",
            "size": 12345,
            "process_thumbnail": true,
            "_encryption": "no example yet",
            "_encryption_file_master": "no example yet"
        }
    }
}

document.service.BringBack

Bring backs a service file back to the wimi (and removes the .html in wimi if it succeeds). Only works with google ATM.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int
  • dir_id - int Optional: null

Body Data:

  • service - string
  • format - string Optional: ""

Output:

  • success - bool
  • file - File - can be missing
  • dir_id - int - can be missing - can be null
  • old_file_id - int - can be missing - can be null
  • url - string - can be missing
  • msg - string - can be missing
  • formats - LIST of string - can be missing

Example:

{
    "header": {
        "target": "document.service.BringBack",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "service": "some text",
            "format": "some text"
        }
    }
}

document.service.CheckToken

Check service token

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • service - string

Output:

  • success - bool
  • url - string - can be missing

Example:

{
    "header": {
        "target": "document.service.CheckToken",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "service": "some text"
        }
    }
}

document.service.Download

Directly download the document from the service. Only google is supported right now.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • service - string
  • format - string Optional: ""

Output:

  • success - bool
  • formats - LIST of string - can be missing
  • download_url - string - can be missing
  • url - string - can be missing

Example:

{
    "header": {
        "target": "document.service.Download",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "service": "some text",
            "format": "some text"
        }
    }
}

document.service.Edit

Edit (and upload) a file to service. Only google is supported right now.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id - int

Body Data:

  • service - string

Output:

  • success - bool
  • file - File - can be missing
  • id_version_of - int - can be missing - can be null
  • url - string - can be missing

Example:

{
    "header": {
        "target": "document.service.Edit",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id": 9335546
        }
    },
    "body": {
        "data": {
            "service": "some text"
        }
    }
}

document.service.GetEntries

Get service entries

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • service - string
  • folder_ref - string Optional: ""

Output:

  • success - bool
  • entries - object - can be missing
  • url - string - can be missing

Example:

{
    "header": {
        "target": "document.service.GetEntries",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "service": "some text",
            "folder_ref": "some text"
        }
    }
}

document.service.ImportEntries

Import service entries

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • service - string
  • files - Array
  • dir_id - int Optional: null

Output:

  • files - LIST of File

Example:

{
    "header": {
        "target": "document.service.ImportEntries",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "service": "some text",
            "files": [
                1,
                2,
                3,
                4
            ],
            "dir_id": 785645
        }
    }
}

document.sharing.Activate

Activate sharing on one directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • dir_id - int
  • code - string
  • password - string - can be null

Example:

{
    "header": {
        "target": "document.sharing.Activate",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.AllowInvisibleSub

Allow invisible subdirectories on a shared folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Output:

  • dir_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.sharing.AllowInvisibleSub",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.AllowUpload

Allow upload on a given shared folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Output:

  • dir_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.sharing.AllowUpload",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.Deactivate

Deactivate sharing on one directory

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • dir_id - int

Output:

  • dir_id - int

Example:

{
    "header": {
        "target": "document.sharing.Deactivate",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "dir_id": 785645
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.DisallowInvisibleSub

Disallow invisible subs on a shared folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Output:

  • dir_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.sharing.DisallowInvisibleSub",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.DisallowUpload

Disallow upload on a given shared folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Output:

  • dir_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.sharing.DisallowUpload",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.RemovePassword

Remove a password of a shared folder

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Output:

  • item_id - int
  • item_type_id - int
  • success - bool

Example:

{
    "header": {
        "target": "document.sharing.RemovePassword",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {}
    }
}

document.sharing.SetExpirationDate

Set an expiration date for an item

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Body Data:

  • sharing_expiration_date - datetime

Output:

  • item_id - int
  • item_type_id - int
  • success - bool
  • sharing_expiration_date - datetime - can be null

Example:

{
    "header": {
        "target": "document.sharing.SetExpirationDate",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {
            "sharing_expiration_date": "2016-11-27 17:10:05"
        }
    }
}

document.sharing.SetPassword

Set a password for an item

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • sharing_code - string

Body Data:

  • sharing_pwd - string Optional: ""

Output:

  • item_id - int
  • item_type_id - int
  • success - bool
  • password - string

Example:

{
    "header": {
        "target": "document.sharing.SetPassword",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "sharing_code": "sharingcodexyz"
        }
    },
    "body": {
        "data": {
            "sharing_pwd": "some text"
        }
    }
}

document.trash.EmptyTrash

Empty the trash

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Output:

  • success - bool

Example:

{
    "header": {
        "target": "document.trash.EmptyTrash",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.trash.List

List the files found in the trash given a set of filters

Will return full stringified path as additional argument for display purposes

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • query - string Optional: ""
  • before_date - datetime Optional: null
  • after_date - datetime Optional: null
  • deleted_by - int Optional: 0
  • order_by - string Optional: ""
  • order_by_type - string Optional: ""
  • folder_name - string Optional: ""

Output:

  • files - LIST of File
  • count - int

Example:

{
    "header": {
        "target": "document.trash.List",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "query": "some text",
            "before_date": "2016-11-27 17:10:05",
            "after_date": "2016-11-27 17:10:05",
            "deleted_by": 12345,
            "order_by": "some text",
            "order_by_type": "some text",
            "folder_name": "some text"
        }
    }
}

document.trash.RestoreFile

Restore one or more files

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_id_list - int list

Output:

  • success - bool
  • file_path_list - LIST of struct
    • success - bool
    • file_id - int
    • path_ids - LIST of int - can be missing
    • error - int - can be missing
    • error_str - string - can be missing

Example:

{
    "header": {
        "target": "document.trash.RestoreFile",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_id_list": [
                1193,
                5253,
                80983,
                912
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.AddValidatorsToRequest

Add validators to a doc validation request

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int
  • user_id_list - int list

Output:

Example:

{
    "header": {
        "target": "document.validation.AddValidatorsToRequest",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223,
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.CreateRequest

Create a doc validation request

if given a list of user id, it will add these users as validators to the request * If there is already one request (not trashed) on this file, return it

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int

Body Data:

  • expiry_date - datetime Optional: null
  • user_id_list - int list Optional: []
  • description - string Optional: ""
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "document.validation.CreateRequest",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375
        }
    },
    "body": {
        "data": {
            "expiry_date": "2016-11-27 17:10:05",
            "user_id_list": [
                1234,
                82373,
                1212
            ],
            "description": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.validation.EditRequestDescription

Edit doc validation request description

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int

Body Data:

  • description - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "document.validation.EditRequestDescription",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223
        }
    },
    "body": {
        "data": {
            "description": "some text",
            "_encryption": "no example yet"
        }
    }
}

document.validation.ListRequests

List all doc validation requests for that user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.ListRequests",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.ListRequestsAsRequester

List all doc validation requests associated to a requester

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.ListRequestsAsRequester",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.ListRequestsAsValidator

List all doc validation requests associated to a validator

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.ListRequestsAsValidator",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.ListResponses

List all doc validation responses for a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.ListResponses",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.RemindValidator

send a reminder email to a validator

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int
  • response_id - int

Output:

  • success - bool

Example:

{
    "header": {
        "target": "document.validation.RemindValidator",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223,
            "response_id": 23173
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.RemoveRequest

Remove a doc validation request

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.RemoveRequest",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.RemoveValidatorsFromRequest

Remove validators from a doc validation request

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int
  • response_id_list - int list

Output:

Example:

{
    "header": {
        "target": "document.validation.RemoveValidatorsFromRequest",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223,
            "response_id_list": [
                1223,
                1038
            ]
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.ResetResponseStatus

Reset a response for a validator

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int
  • response_id - int

Output:

Example:

{
    "header": {
        "target": "document.validation.ResetResponseStatus",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223,
            "response_id": 23173
        }
    },
    "body": {
        "data": {}
    }
}

document.validation.UpdateRequestExpiryDate

Update expiry date of a doc validation request

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int

Body Data:

  • expiry_date - datetime

Output:

Example:

{
    "header": {
        "target": "document.validation.UpdateRequestExpiryDate",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223
        }
    },
    "body": {
        "data": {
            "expiry_date": "2016-11-27 17:10:05"
        }
    }
}

document.validation.UpdateRequestStatus

Update status of a doc validation request

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int

Body Data:

  • status - int

Output:

Example:

{
    "header": {
        "target": "document.validation.UpdateRequestStatus",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223
        }
    },
    "body": {
        "data": {
            "status": 12345
        }
    }
}

document.validation.UpdateResponseStatus

Update a response for a validator

Possibility to write a comment for this status (will also be put in file comments)

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • file_master_id - int
  • request_id - int
  • response_id - int

Body Data:

  • status - int
  • comment - string Optional: ""

Output:

  • success - bool
  • doc_validation_request - DocValidationRequest
  • doc_validation_response_id - int
  • doc_validation_complete - bool

Example:

{
    "header": {
        "target": "document.validation.UpdateResponseStatus",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "file_master_id": 42375,
            "request_id": 1223,
            "response_id": 23173
        }
    },
    "body": {
        "data": {
            "status": 12345,
            "comment": "some text"
        }
    }
}

gantt.gantt.AddList

Add a list to gantt view

Need a line, a start date and an end date

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • task_list_id - int

Body Data:

  • line - int
  • start_date - date Optional: null
  • end_date - date Optional: null

Output:

Example:

{
    "header": {
        "target": "gantt.gantt.AddList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "task_list_id": 11931
        }
    },
    "body": {
        "data": {
            "line": 12345,
            "start_date": "2016-11-27",
            "end_date": "2016-11-27"
        }
    }
}

gantt.gantt.BatchAddList

Add lists to gantt view

Need a line, a start date and an end date

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • tasks_lists - array assoc

Output:

  • success - bool
  • tasks_lists - LIST of TaskList

Example:

{
    "header": {
        "target": "gantt.gantt.BatchAddList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "tasks_lists": {
                "task_list_id": 123,
                "start_date": "2016-06-15",
                "end_date": "2016-06-15"
            }
        }
    },
    "body": {
        "data": {}
    }
}

gantt.gantt.BatchRemoveList

Batch remove lists from gantt view

Clean line, start date, end date and all linked links

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • task_list_id_list - int list

Output:

  • success - bool
  • tasks_lists - LIST of TaskList

Example:

{
    "header": {
        "target": "gantt.gantt.BatchRemoveList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "task_list_id_list": [
                132423,
                1234
            ]
        }
    },
    "body": {
        "data": {}
    }
}

gantt.gantt.RemoveList

Remove a list from gantt view

Clean line, start date, end date and all linked links

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int
  • task_list_id - int

Output:

Example:

{
    "header": {
        "target": "gantt.gantt.RemoveList",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345,
            "task_list_id": 11931
        }
    },
    "body": {
        "data": {}
    }
}

main.account.ActivateUsers

Activate list of users

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • user_id_list - int list

Output:

  • success - bool
  • user_id_list - LIST of int
  • errors - LIST of object - can be missing

Example:

{
    "header": {
        "target": "main.account.ActivateUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

main.account.AddUser

Add a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • api_key - string Optional: ""
  • clone_user_id - int Optional: null
  • user_group_id_list - int list Optional: []

Body Data:

  • first_name - string
  • last_name - string
  • login - string
  • level - int Optional: 1
  • role - int Optional: 0
  • language - string Optional: "en"
  • password - string Optional: ""
  • gender - string Optional: "M."
  • notif_user - bool Optional: true
  • message - string Optional: ""
  • saml_id - string Optional: ""
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "main.account.AddUser",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "first_name": "some text",
            "last_name": "some text",
            "login": "titi.toto@tata.com",
            "level": 12345,
            "role": 12345,
            "language": "some text",
            "password": "some text",
            "gender": "some text",
            "notif_user": true,
            "message": "some text",
            "saml_id": "some text",
            "_encryption": "no example yet"
        }
    }
}

main.account.CancelAccountDeletion

Cancel account deletion

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int

Output:

  • success - bool

Example:

{
    "header": {
        "target": "main.account.CancelAccountDeletion",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.CompleteCardLessClient



Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • redirect_id - string

Output:

  • success - bool
  • redirect_url - string

Example:

{
    "header": {
        "target": "main.account.CompleteCardLessClient",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "redirect_id": "some text"
        }
    }
}

main.account.ConfirmDeleteAccount

Finale step of account deletion

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int

Output:

  • success - bool

Example:

{
    "header": {
        "target": "main.account.ConfirmDeleteAccount",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.CreateCardLessClient



Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • success - bool
  • cardless_url - string
  • redirect_id - string

Example:

{
    "header": {
        "target": "main.account.CreateCardLessClient",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.DeactivateUsers

Deactivate list of users

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • user_id_list - int list

Output:

  • success - bool
  • user_id_list - LIST of int

Example:

{
    "header": {
        "target": "main.account.DeactivateUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

main.account.DeleteAccount

Delete the account

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • reason - string Optional: ""
  • password - string

Output:

  • success - bool

Example:

{
    "header": {
        "target": "main.account.DeleteAccount",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "reason": "some text",
            "password": "some text"
        }
    }
}

main.account.DeleteUsers

Delete list of users permanently

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • user_id_list - int list

Output:

  • success - bool
  • user_id_list - LIST of int

Example:

{
    "header": {
        "target": "main.account.DeleteUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "user_id_list": [
                1234,
                82373,
                1212
            ]
        }
    },
    "body": {
        "data": {}
    }
}

main.account.EditCategory

Edit a category

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • category_id - int

Body Data:

  • category_name - string
  • _encryption - any list Optional: []

Output:

Example:

{
    "header": {
        "target": "main.account.EditCategory",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "category_id": 94233
        }
    },
    "body": {
        "data": {
            "category_name": "some text",
            "_encryption": "no example yet"
        }
    }
}

main.account.EditUser

Edit a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • target_user_id - int

Body Data:

  • phones - PhoneList Optional: []
  • first_name - string Optional: ""
  • last_name - string Optional: ""
  • login - string Optional: null
  • password - string Optional: ""
  • role - int Optional: 0
  • gender - string Optional: "M."
  • skype - string Optional: ""
  • company - string Optional: ""
  • department - string Optional: ""
  • title - string Optional: ""
  • saml_id - string Optional: ""
  • _encryption - any list Optional: []

Output:

  • user - User
  • fields - LIST of string

Example:

{
    "header": {
        "target": "main.account.EditUser",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "target_user_id": 722323
        }
    },
    "body": {
        "data": {
            "phones": "no example yet",
            "first_name": "some text",
            "last_name": "some text",
            "login": "titi.toto@tata.com",
            "password": "some text",
            "role": 12345,
            "gender": "some text",
            "skype": "some text",
            "company": "some text",
            "department": "some text",
            "title": "some text",
            "saml_id": "some text",
            "_encryption": "no example yet"
        }
    }
}

main.account.ExportUsers

Export users in a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • file_name - string Optional: "users"
  • format - string Optional: "csv"
  • delimiter - string Optional: ";"
  • enclosure - string Optional: """
  • charset - string Optional: "UTF-8"

Output:

  • success - bool

Example:

{
    "header": {
        "target": "main.account.ExportUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "file_name": "some text",
            "format": "some text",
            "delimiter": "some text",
            "enclosure": "some text",
            "charset": "some text"
        }
    }
}

main.account.ExportUsersRights

Export users rights in a file

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • delimiter - string Optional: ";"

Output:

  • success - bool

Example:

{
    "header": {
        "target": "main.account.ExportUsersRights",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "delimiter": "some text"
        }
    }
}

main.account.GenerateAPIKey

Generate an API Key for the current account

If a key is already linked to this account, generate another key

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • api_key - string

Example:

{
    "header": {
        "target": "main.account.GenerateAPIKey",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetAccountExternalInfo

Get external information for an account

Can be used by the login page

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_name - string Optional: ""

Output:

  • account_info - AccountBase
  • google_enabled - bool
  • onedrive_enabled - bool
  • onedrivepro_enabled - bool
  • sso_name - string - can be missing
  • properties - LIST of Property

Example:

{
    "header": {
        "target": "main.account.GetAccountExternalInfo",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {}
    },
    "body": {
        "data": {}
    }
}

main.account.GetAllAvailableUsers

Get all available users. Which mean a status will be returned.

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • users - LIST of User

Example:

{
    "header": {
        "target": "main.account.GetAllAvailableUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetBillingInfo

List offers for account

You can ask for offers info and users stats info * offers: gives the offers available in this account's zone (plus current) * users stats: gives info on users usages, i.e.: number of guests, active users, etc

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • offers - bool Optional: false
  • users_stats - bool Optional: false

Output:

  • billing_info - BillingInfo
  • offers - LIST of Offer - can be missing
  • users_stats - struct - can be missing
    • all - int
    • standard - struct
      • all - int
      • active - int
      • trash - int
      • deactivated - int
      • deleted - int
    • guest - struct
      • all - int
      • active - int
      • trash - int
      • deactivated - int
      • deleted - int

Example:

{
    "header": {
        "target": "main.account.GetBillingInfo",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "offers": true,
            "users_stats": true
        }
    }
}

main.account.GetCalendars

Get the calendars of a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • calendars - LIST of struct
    • info - struct
      • name - string
      • calendar_id - int
      • webcal_url - string - can be null
      • ctag - int
    • user_access - int

Example:

{
    "header": {
        "target": "main.account.GetCalendars",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetCategories

Get categories of a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "main.account.GetCategories",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetGAppsUsers

Get gapps users and format the output to correspond the ones of Wimi

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

  • success - bool
  • users - LIST of UserService - can be missing - can be null
  • url - string - can be missing

Example:

{
    "header": {
        "target": "main.account.GetGAppsUsers",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetListOfUsersSharingSameProjects

Get list of users sharing the same projects

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • get_status - bool Optional: false

Output:

  • users - LIST of User

Example:

{
    "header": {
        "target": "main.account.GetListOfUsersSharingSameProjects",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {
            "get_status": true
        }
    }
}

main.account.GetMemberProjectsAuth

Get list of privileges on projects for a member

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • group_member - array

Output:

  • member_id - int
  • member_type_id - int
  • projects_auth - LIST of ProjectAuth

Example:

{
    "header": {
        "target": "main.account.GetMemberProjectsAuth",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "group_member": {
                "member_type_id": 123,
                "member_id": 123
            }
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetProject

Get a user project

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int
  • project_id - int

Body Data:

  • project_auth - bool Optional: true
  • project_stats - bool Optional: false
  • project_users - bool Optional: false

Output:

Example:

{
    "header": {
        "target": "main.account.GetProject",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345,
            "project_id": 12345
        }
    },
    "body": {
        "data": {
            "project_auth": true,
            "project_stats": true,
            "project_users": true
        }
    }
}

main.account.GetProjectTemplates

Get the project templates for that account

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Output:

Example:

{
    "header": {
        "target": "main.account.GetProjectTemplates",
        "api_version": "1.2",
        "app_token": "You can generate one from your wimi account setting on wimi.pro",
        "msg_key": "message key also returned in the response",
        "token": "user session token returned by auth.user.Login",
        "identification": {
            "account_id": 12345,
            "user_id": 12345
        }
    },
    "body": {
        "data": {}
    }
}

main.account.GetProjects

Get projects of a user

Url:

https://api.wimi.pro

Call type:

The json message is sent in the http request body.

Header Identification:

  • account_id - int
  • user_id - int

Body Data:

  • calc_document_size - bool Optional: false
  • with_categories - bool