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 Appaccesstoken" operation under the "Store App" resource allows users to retrieve an access token for a store app in Lark Suite. This token is essential for authenticating subsequent API requests to Lark services.
Common scenarios where this node is beneficial include:
- Automating workflows that require secure access to Lark Suite APIs.
- Integrating third-party applications with Lark by obtaining necessary tokens programmatically.
- Managing multiple authentication methods (Tenant Token or OAuth2) depending on organizational needs.
Practical example:
- A workflow that fetches the app access token using Tenant Token authentication and then uses it to post messages or manage resources in Lark.
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. |
Notes:
- The "Custom Body" property appears twice in the input but serves the same purpose; it is shown only when "Use Custom Body" is true.
- By default, the node sends standard requests without a custom body unless explicitly configured.
Output
The node outputs JSON data containing the response from the Lark Suite API when requesting the app access token. This typically includes fields such as the access token string and its expiration details.
If binary data were involved (not indicated here), it would represent files or media returned by the API, but this node focuses solely on JSON token data.
Dependencies
- Requires an API key credential for either Tenant Token or OAuth2 authentication method configured in n8n.
- Connects to the Lark Suite API endpoint at
https://open.larksuite.com
. - No additional external dependencies beyond standard HTTP requests.
Troubleshooting
- Authentication errors: Ensure that the correct authentication method is selected and that the corresponding credentials are valid and active.
- Invalid custom body: If "Use Custom Body" is enabled, verify that the JSON provided is correctly formatted and matches the expected API schema.
- Network issues: Confirm that n8n has internet access and can reach the Lark Suite API endpoint.
- API rate limits or permission errors: Check that the API credentials have sufficient permissions and that usage limits are not exceeded.
Links and References
- Lark Suite Developer Documentation
- Lark Suite API Authentication Guide
- n8n Documentation on Creating Credentials