Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically to retrieve information about a user's key by its ID. It is useful in scenarios where you need to programmatically access details of SSH or deploy keys associated with the current authenticated user in Gitea. For example, it can be used in automation workflows that manage user keys for repositories, audit key usage, or synchronize key data with other systems.

Properties

Name Meaning
Id The numeric identifier of the key to retrieve. This is required and specifies which user key's details to fetch.

Output

The node outputs JSON data representing the details of the specified user key. This typically includes fields such as the key's ID, title, key content, creation date, and possibly other metadata related to the key in Gitea. There is no binary output.

Dependencies

  • Requires an API key credential to authenticate with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API being accessible and the authenticated user having permission to view the specified key.

Troubleshooting

  • Invalid Key ID: If the provided key ID does not exist or the user lacks permission, the API may return a 404 or authorization error. Verify the key ID and user permissions.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient rights.
  • Connection Issues: Confirm the Gitea server URL is correct and reachable from n8n.
  • Malformed Input: The "Id" property must be a valid number; otherwise, the request will fail.

Links and References

Discussion