Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation retrieves the current list of subscriptions for a user. It is useful when you want to fetch paginated subscription data related to a specific user, such as monitoring which repositories or projects a user is subscribed to in a system like Gitea. Practical examples include displaying a user's active subscriptions in a dashboard or automating notifications based on subscription status.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination to specify which page of subscription data to retrieve.
Limit The page size of results. Defines how many subscription entries are returned per page.

Output

The output contains a JSON array of subscription objects corresponding to the requested page and limit parameters. Each object represents a subscription associated with the current user. The exact structure of each subscription object depends on the API response but typically includes details such as subscription ID, repository or project info, and subscription status.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating requests to the external service.
  • The node uses a base URL configured via credentials to connect to the API endpoint.
  • The API expects query parameters page and limit to paginate the subscription list.

Troubleshooting

  • Empty results: If no subscriptions are returned, verify that the user has active subscriptions and that the page and limit parameters are set correctly.
  • Invalid page or limit values: Ensure that page is 1 or greater and limit is a positive integer; otherwise, the API may return errors or empty responses.
  • Authentication errors: Confirm that the API key credential is valid and has sufficient permissions to access user subscription data.
  • Network or API errors: Check connectivity and API availability; transient errors might require retries.

Links and References

  • Refer to the external API documentation for detailed information about the user subscription endpoints and pagination parameters.
  • Consult the n8n documentation on setting up API credentials and using query parameters in nodes.

Discussion