h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node allows administrators to delete an API key from the system by specifying its unique identifier. It is useful in scenarios where an API key needs to be revoked or removed for security reasons, such as when a key is compromised, no longer needed, or associated with a user who should no longer have access.

Practical examples include:

  • Removing an API key that was accidentally shared publicly.
  • Cleaning up old or unused API keys to maintain security hygiene.
  • Revoking access for a user who has left the organization.

Properties

Name Meaning
Key ID The unique identifier of the API key to delete

Output

The node outputs the full HTTP response received from the API after attempting to delete the specified API key. This typically includes status information indicating whether the deletion was successful or if an error occurred.

No binary data output is involved.

Dependencies

  • Requires an API key credential to authenticate requests to the backend service.
  • The base URL for API requests is configured via credentials and environment settings.
  • The node sends an HTTP DELETE request to the endpoint /admin/api_keys/{key_id} where {key_id} is the provided Key ID.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Key ID will result in an error response from the API.
    • Insufficient permissions (not an admin) will prevent deletion and cause authorization errors.
    • Network or connectivity issues may cause request failures.
  • Error messages:

    • "404 Not Found" — The specified API key does not exist. Verify the Key ID.
    • "401 Unauthorized" or "403 Forbidden" — Authentication failed or user lacks permission. Check API credentials and user roles.
    • Timeout or network errors — Ensure the API endpoint is reachable and credentials are valid.

Links and References

  • Refer to your API provider's documentation on managing API keys and the DELETE /admin/api_keys/{key_id} endpoint for more details on expected responses and error codes.

Discussion