Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a User resource to retrieve information about a specific user hook by its ID. It is useful in scenarios where you need to fetch details of a webhook configured for a user, such as verifying the hook's configuration or status before performing further actions.

For example, if you have set up multiple webhooks for user events and want to programmatically check the details of one particular hook, this node operation allows you to do so by specifying the hook's ID.

Properties

Name Meaning
Id The unique identifier (number) of the user hook to retrieve. This is a required input.

Output

The output will contain a JSON object representing the user hook details corresponding to the specified ID. This typically includes properties such as the hook's URL, events it listens to, active status, and other metadata related to the webhook configuration.

If the node supports binary data output, it would generally relate to any attachments or payloads associated with the hook, but based on the provided code and context, the output is primarily JSON data describing the hook.

Dependencies

  • Requires an API key credential to authenticate requests to the external service.
  • The base URL for the API is configured via credentials.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent hook ID will likely result in an error or empty response.
    • Missing or incorrect API authentication credentials will cause authorization failures.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "Hook not found" or similar indicates the specified ID does not exist; verify the ID.
    • Authentication errors suggest checking the API key or token validity.
    • Timeout or connection errors require network troubleshooting or API endpoint verification.

Links and References

  • Refer to the external API documentation of the service managing user hooks for detailed schema and supported operations.
  • n8n documentation on creating and using custom nodes for API integrations.

Discussion