Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get departmental information in bulk
LARK_CONTACTS_GET_DEPARTMENTAL_INFORMATION_IN_BULKRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. Get departmental information in bulk. This interface supports passing in multiple department IDs and returns detailed information for each department (such as name, person in charge, sub-departments, etc.). Notice:Attention: - This interface supports tenant_access_token and user_access_token. - When using tenant_access_token, data permissions follow the application's contacts permissions, and the returned field data is limited to fields for which the application has permissions. You can determine the application's contacts permissions by referring to Get Application Contacts Permissions Configuration. - When using user_access_token, it defaults to an administrator user, and the administrator's management scope will be verified. When a user has multiple administrator identities that can all view department information, the administrator's management scope will be the maximum set....
Get department list
LARK_CONTACTS_GET_DEPARTMENT_LISTRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. Get department list. This interface is used to obtain the list of eligible department details in batches according to the specified conditions. Notice:Attention: - This API supports tenant_access_token and user_access_token. - When using tenant_access_token, data permissions follow the contacts permissions of the application, and the returned field data consists of fields for which the application has permissions. You can view the contacts authorization scope in the Developer Console - Application Details - Permissions Management. - When using user_access_token, it defaults to an administrator user, and the administrator's management scope will be verified. When a user has multiple administrator identities and can view department information with all of them, the administrator's management scope will be the maximum set. Administrators can view the Help Center document: Administr...
Get employee information in bulk
LARK_CONTACTS_GET_EMPLOYEE_INFORMATION_IN_BULKRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. Get employee information in bulk. This interface is used to query the details of employees according to their IDs in batches.Such as employee name, mobile phone number, email, department and other information. Employee refers to a member of Lark's enterprise who is identified as "Employee", which is equivalent to "User" in the contact OpenAPI. Notice:Attention: - This interface supports tenant_access_token and user_access_token - When using tenant_access_token, the data permissions follow the contacts permissions of the application, and the returned field data is the field for which the application has permissions. You can determine the contacts permissions of the application by Getting the Contacts Permissions Configuration of the Application. - When using user_access_token, the user is considered an administrator by default, and the administrator's management scope will be ver...
Get the employee list in bulk
LARK_CONTACTS_GET_THE_EMPLOYEE_LIST_IN_BULKRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. Get the employee list in bulk. This interface is used to obtain a batch list of eligible employee details according to the specified conditions. Employee refers to a member of Lark's enterprise who is identified as "Employee", which is equivalent to "User" in the contact OpenAPI. Notice:Attention: - This API supports tenant_access_token and user_access_token. - When using tenant_access_token, the data permissions follow the contacts permissions of the application, and the returned field data is the field for which the application has permissions. You can determine the contacts permissions of the application by Getting the contacts permissions configuration. - When using the user_access_token, the user is considered an administrator by default, and the administrator's management scope will be verified. When a user has multiple administrator identities and can view employee inform...
Obtain the list of users directly under a department
LARK_CONTACTS_LIST_DEPARTMENT_USERSRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain the list of users directly under a department. This API is used to obtain the list of users directly under a department based on the department ID. Provider constraints: Notice:- Department ID is required. The root department ID is 0. - When user_access_token is used, the filtering is based on the users' visible scope of organization, and the user data within the users' visible scope of organization ([Log in to the company's Admin to manage scopes]) will be returned. - When tenant_access_token is used, the filtering is based on the app's contact scope. If the requested department ID is 0, the system verifies whether the app has the all-staff contact scope. If the department ID is not 0, the system verifies whether the app has the contact scope of the department. If no, an error code indicating no scope will be returned. If yes, the list of use...
Obtain bulk department information
LARK_CONTACTS_OBTAIN_BULK_DEPARTMENT_INFORMATIONRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain bulk department information. This API is to obtain the information of bulk departments in Contacts. Provider constraints: Notice:- When using tenant_access_token, the application must obtain the access permission of the contacts of the requested department. To access root department information, the application must have an all-staff contact scope. - When using user_access_token, users must obtain the visibility scope of the requested department. To access root department information, the visibility scope must include all employees. Notice:- When using tenant_access_token, the application must obtain the access permission of the contacts of the requested department. To access root department information, the application must have an all-staff contact scope.
Obtain multiple users' information
LARK_CONTACTS_OBTAIN_MULTIPLE_USERS_INFORMATIONRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain multiple users' information. This API is used to obtain the information of bulk users in Contacts.
Obtain parent department information
LARK_CONTACTS_OBTAIN_PARENT_DEPARTMENT_INFORMATIONRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain parent department information. This API is used to recursively obtain the information of parent departments, and return the list of the information of parent departments within the permission scope from child departments to parent departments. Provider constraints: Notice:When tenant_access_token is used, this API only returns the information of parent departments within the visible scope. For example, for Departments A>>B>>C>>D (A has the highest level), if the contact scope is Department B, querying parent departments of department D will return Department B and Department C. When user_access_token is used, this API only returns the information of parent departments visible to the user. For example, for Departments A>>B>>C>>D (A has the highest level), if the contact scope is Department B, querying parent departments of department D will ret...
Obtain single department information
LARK_CONTACTS_OBTAIN_SINGLE_DEPARTMENT_INFORMATIONRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain single department information. This API is used to obtain the information of a single department in contacts. Provider constraints: Notice:- When using tenant_access_token, the app must have the contacts scope of the department to be queried. To obtain root department information, the app must have the all-staff contact scope. - When using user_access_token, you must have the visibility of the department to be queried. To obtain root department information, you must have the visibility of all employees. Notice:- When using tenant_access_token, the app must have the contacts scope of the department to be queried. To obtain root department information, the app must have the all-staff contact scope.
Obtain single user's information
LARK_CONTACTS_OBTAIN_SINGLE_USER_S_INFORMATIONRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain single user's information. This API is used to obtain the information of a single user in Contacts.
Obtain the list of sub-departments
LARK_CONTACTS_OBTAIN_THE_LIST_OF_SUB_DEPARTMENTSRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Obtain the list of sub-departments. This API is used to obtain the list of sub-departments by using the department ID. Provider constraints: Notice:- Department ID is required. The root department ID is 0. - When user_access_token is used, all departments within the user's visible scope of organization (Log in to the company's Admin to manage scopes) will be returned. If a recursive query is executed, only 1,000 departments at most will be filtered for visibility. - When tenant_access_token is used, the departments will be filtered by verification against the range of contacts data that the app can access. If the department ID is 0, the system checks whether the app has the all-staff contact scope. If the department ID is not 0, the system checks whether the app has the contact scope of the department. If no, an error code indicating no scope to acce...
SearchDepartment
LARK_CONTACTS_SEARCHDEPARTMENTRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. SearchDepartment. This interface is used to search for department information, search for department information through keywords such as department names, and return a list of departments that meet the criteria. Notice:Attention: - This interface supports tenant_access_token and user_access_token. - When using tenant_access_token, the data permissions follow the contacts permissions of the app, and the field data returned is the field that the app has permissions for. - When using user_access_token, the default is the administrator user, and the administrator management scope will be verified. When the user has multiple administrator identities to view employee information, the administrator management scope takes the maximum set.
Search Employee Information
LARK_CONTACTS_SEARCH_EMPLOYEE_INFORMATIONRequired connected-account bundle: directory (Directory). Select a connection authorized for this bundle. Search Employee Information. This interface is used to search for employee information, such as searching for employee names, mobile phone numbers, email addresses and other information through keywords. An employee is a member of Lark who is an "Employee", which is equivalent to a "User" in the Contacts OpenAPI Notice:Attention: - This API supports tenant_access_token and user_access_token. - When using tenant_access_token, the data permissions follow the contacts permissions of the application, and the returned field data is the field for which the application has permissions. You can determine the contacts permissions of the application by Getting the Contacts Permissions Configuration of the Application. - When using the user_access_token, the user is considered an administrator by default, and the administrator's management scope will be verified. When a user has multiple a...
Search for departments
LARK_CONTACTS_SEARCH_FOR_DEPARTMENTSRequired connected-account bundle: work_organization (Work Management & Organization). Select a connection authorized for this bundle. Search for departments. This API is used to search for department data with keywords. Department visibility is set by administrators in Admin. Provider constraints: This API is used to search for department data with keywords. Department visibility is set by administrators in Admin. Notice:If a department exists but the user cannot find it, this may also be because the administrator has set the department visibility.
Access to Wiki space information
LARK_DOCS_ACCESS_TO_WIKI_SPACE_INFORMATIONRequired connected-account bundle: content_knowledge (Content & Knowledge). Select a connection authorized for this bundle. Access to Wiki space information. This interface is used to query the information of the Wiki space according to the Wiki space ID. Provider constraints: Space type: - Person Space: Managed by individuals. One person can only have one personal space, and no other administrators can be added. - Team Space: Managed by a team (multiple people), multiple administrators can be added. Space visibility: - Public Space: Visible to all users within the tenant and defaults to member permissions. Additional members cannot be added, but administrators can be added. - Private Space: Only visible to knowledge space administrators and members, administrators and members need to be added manually.
Batch get records
LARK_DOCS_BATCH_GET_RECORDSRequired connected-account bundle: docs_extended (Docs Extended). Select a connection authorized for this bundle. Batch get records. Batch get records by record ids
Batch Query Comments
LARK_DOCS_BATCH_QUERY_COMMENTSRequired connected-account bundle: content_knowledge (Content & Knowledge). Select a connection authorized for this bundle. Batch Query Comments. This API is used to obtain cloud document comment information in batches according to comment ID list, including comment and reply ID, reply content, user ID of reviewer and reply person, etc. Supports returning global comments as well as local comments (which can be distinguished by the "is_whole" field).
Download a file
LARK_DOCS_DOWNLOAD_A_FILERequired connected-account bundle: content_knowledge (Content & Knowledge). Select a connection authorized for this bundle. Download a file. This API is used to download files from a directory in My Space, excluding online documents in Lark Docs, Sheets, and MindNotes. You can download a file based on a specified range.
Download a material
LARK_DOCS_DOWNLOAD_A_MATERIALRequired connected-account bundle: content_knowledge (Content & Knowledge). Select a connection authorized for this bundle. Download a material. This API is used to download materials. Materials refer to files in various production containers, for example, images in a document and files. You can download a material based on a specified range.
Download export file
LARK_DOCS_DOWNLOAD_EXPORT_FILERequired connected-account bundle: content_knowledge (Content & Knowledge). Select a connection authorized for this bundle. Download export file. According to the export product token returned by the Query export task results, download the export product file to the local.