Actions10
- Api Access Token Actions
- Store App Actions
- Custom App Actions
- User ID Actions
Overview
This node, named "Lark Auth," is designed to manage authentication for Lark Suite API integrations within n8n workflows. Specifically, the "Get Tenantaccesstoken" operation under the "Store App" resource allows users to obtain a tenant access token, which is essential for authenticating API requests on behalf of a tenant in Lark Suite.
Common scenarios include:
- Automating interactions with Lark Suite services that require tenant-level authorization.
- Integrating Lark Suite APIs into business workflows where tenant tokens are needed dynamically.
- Managing multiple authentication methods (Tenant Token or OAuth2) depending on the use case.
Practical example:
- A workflow that retrieves a tenant access token to then call other Lark Suite APIs for managing documents, calendars, or messaging within an organization.
Properties
Name | Meaning |
---|---|
Authentication | Method of authentication to use: either "Tenant Token" or "OAuth2". |
Use Custom Body | Boolean option to specify whether to send a custom JSON body in the request. |
Custom Body | JSON object representing a custom request body to send when "Use Custom Body" is enabled. |
Output
The node outputs JSON data containing the response from the Lark Suite API when requesting the tenant access token. This typically includes fields such as the access token itself and its expiration details.
If binary data were involved (not indicated here), it would represent file or media content, but this node focuses on JSON token data only.
Dependencies
- Requires an API key credential for either Tenant Token authentication or OAuth2 authentication configured in n8n.
- Connects to the Lark Suite API endpoint at
https://open.larksuite.com
. - The user must configure appropriate credentials in n8n to enable successful authentication.
Troubleshooting
- Invalid Credentials: If the provided API key or OAuth2 token is incorrect or expired, the node will fail to retrieve the tenant access token. Ensure credentials are valid and have necessary permissions.
- Incorrect Custom Body Format: When using the "Custom Body" option, malformed JSON or missing required fields may cause API errors. Validate JSON syntax and required parameters.
- Network Issues: Connectivity problems to the Lark Suite API endpoint can cause timeouts or failures. Verify network access and proxy settings if applicable.
- Missing Required Parameters: Omitting mandatory properties or selecting incompatible authentication methods may result in errors. Double-check property selections.
Links and References
- Lark Suite Developer Documentation
- Lark Suite Authentication Guide
- n8n Documentation on Creating Custom Nodes