Actions252
- Api Keys Actions
- Attachments Actions
- Blocklists Actions
- Calendar Channel Event Associations Actions
- Find Many Calendar Channel Event Associations
- Create One Calendar Channel Event Association
- Create Many Calendar Channel Event Associations
- Find One Calendar Channel Event Association
- Delete One Calendar Channel Event Association
- Update One Calendar Channel Event Association
- Find Calendar Channel Event Association Duplicates
- Companies Actions
- Calendar Channels Actions
- Calendar Event Participants Actions
- Calendar Events Actions
- Connected Accounts Actions
- Favorite Folders Actions
- Favorites Actions
- Message Channel Message Associations Actions
- Find Many Message Channel Message Associations
- Create One Message Channel Message Association
- Create Many Message Channel Message Associations
- Find One Message Channel Message Association
- Delete One Message Channel Message Association
- Update One Message Channel Message Association
- Find Message Channel Message Association Duplicates
- Message Channels Actions
- Message Folders Actions
- View Fields Actions
- Message Participants Actions
- Messages Actions
- Message Threads Actions
- Notes Actions
- Note Targets Actions
- Opportunities Actions
- People Actions
- Tasks Actions
- Task Targets Actions
- Timeline Activities Actions
- View Filter Groups Actions
- View Filters Actions
- View Groups Actions
- Views Actions
- View Sorts Actions
- Webhooks Actions
- Workflow Automated Triggers Actions
- Workflow Runs Actions
- Workflows Actions
- Workflow Versions Actions
- Workspace Members Actions
Overview
This node operation, Find Api Key Duplicates, is designed to identify duplicate API keys based on provided data. It allows users to submit a list of API key objects and optionally specify which keys (by IDs) to check against. The node then returns information about duplicates found, including nested related objects up to a specified depth.
Common scenarios:
- Cleaning up API key management by detecting and removing duplicate keys.
- Auditing API keys in an organization to ensure uniqueness.
- Integrating with systems that require validation of API key uniqueness before creation or update.
Practical example:
You have a list of API keys with their expiration dates and names, and you want to find if any of these keys already exist in your system to avoid duplication. You provide this list as input, set the desired depth for related object details, and receive a structured response highlighting duplicates.
Properties
| Name | Meaning |
|---|---|
| Depth | Determines how much related object information to include in the response: - 0: Only primary API key information.- 1: Primary API key plus directly related objects.- 2: Primary, directly related, and related objects of those related objects. |
| Data | JSON array of API key objects to check for duplicates. Each object can include properties like expiresAt (expiration date) and name (API key name). |
| Ids | JSON array of API key IDs to specifically check for duplicates. Can be used to limit the scope of the duplicate search. |
Output
The output is a JSON structure containing information about the found duplicate API keys. Depending on the Depth property, the response includes nested related objects:
- At depth 0, only the primary API key data is returned.
- At depth 1, the primary API key data plus its directly related objects are included.
- At depth 2, the response also contains related objects of those related objects, providing a more comprehensive view.
If the node supports binary data output, it would typically represent attachments or files related to the API keys, but no such binary output is indicated here.
Dependencies
- Requires an API authentication token or API key credential to connect to the external Twenty API service.
- The node uses the Twenty API base URL configured via credentials.
- No additional environment variables are explicitly required beyond standard API authentication setup.
Troubleshooting
- Invalid JSON in Data or Ids: If the JSON input for
DataorIdsis malformed, the node will fail. Ensure valid JSON formatting. - Authentication errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key or token is correctly configured.
- Depth value out of range: Using a depth value other than 0, 1, or 2 may result in unexpected behavior or errors. Use only the supported options.
- Empty or null inputs: Providing empty arrays or null values for
DataorIdsmight lead to no results or errors. Ensure meaningful input data is supplied.
Links and References
- Twenty API Documentation — Official API docs for understanding the API key model and related endpoints.
- n8n Documentation — For general guidance on using custom nodes and handling JSON inputs.