Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list webhook configurations associated with users. Specifically, the "User List Hooks" operation retrieves a paginated list of webhooks for a user account. This is useful in scenarios where you want to monitor or manage event notifications configured on user repositories or accounts within Gitea.

Practical examples include:

  • Auditing all webhooks set up by a user to ensure they are correctly configured.
  • Automating the retrieval of webhook information for integration with other systems.
  • Monitoring webhook usage and troubleshooting event delivery issues.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination to specify which subset of results to fetch.
Limit The number of results per page (page size). Controls how many webhook entries are returned in one response.

Output

The node outputs JSON data representing the list of user webhooks retrieved from the Gitea API. Each item in the output corresponds to a webhook object containing details such as its configuration, URL, events it listens to, and status.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be provided via credentials.
  • The node uses the Gitea REST API endpoint /api/v1 to fetch user webhook data.

Troubleshooting

  • Empty results or no hooks returned: Verify that the user has webhooks configured and that the correct user context is used.
  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions to access user webhook information.
  • Pagination issues: If too few or too many results are returned, adjust the "Page" and "Limit" properties accordingly.
  • API connectivity problems: Confirm the Gitea base URL is correct and reachable from the n8n environment.

Links and References

Discussion