TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node allows you to delete a specific API key by its unique identifier. It is useful in scenarios where you need to revoke access or manage API keys programmatically, such as removing outdated or compromised keys from your system.

For example, if you have an automated workflow that manages user access, this node can be used to delete an API key when a user is deactivated or their permissions change.

Properties

Name Meaning
Id The unique identifier of the API key object to delete. This is required to specify which API key should be removed.

Output

The node outputs JSON data representing the result of the deletion operation. Typically, this will include confirmation that the API key was successfully deleted or details about any error encountered.

If the node supports binary data output, it would generally relate to response payloads, but based on the provided code and context, the output is JSON only.

Dependencies

  • Requires an API authentication token or API key credential to authorize requests.
  • Depends on the external Twenty API service endpoint configured via credentials.
  • The base URL for API requests is dynamically set from the node's credentials.

Troubleshooting

  • Missing or invalid Id: If the "Id" property is not provided or incorrect, the API will likely return an error indicating the resource could not be found. Ensure the correct API key ID is supplied.
  • Authentication errors: If the API key credential is missing or invalid, the request will fail with an authorization error. Verify that the API credentials are correctly configured.
  • Network or API errors: Issues connecting to the external API or server errors may cause failures. Check network connectivity and API service status.
  • Permission issues: The authenticated user must have permission to delete API keys; otherwise, the operation will be denied.

Links and References

Discussion