Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation retrieves a paginated list of variables associated with a specified organization. It is useful when you need to programmatically access configuration or environment variables set at the organization level, for example, to audit, display, or synchronize these variables in other systems.

Practical examples include:

  • Fetching all organization variables to display them in a dashboard.
  • Automating backups of organization-level settings.
  • Integrating organization variables into deployment pipelines or monitoring tools.

Properties

Name Meaning
Org The name of the organization whose variables you want to retrieve.
Page The page number of results to return (1-based). Useful for paginating through large sets.
Limit The number of results per page to return. Controls the page size for pagination.

Output

The output contains a JSON array of organization variables. Each item in the array represents a single variable with its details as returned by the API. The exact structure depends on the external service's response but typically includes variable names, values, and possibly metadata such as creation date or scope.

No binary data output is produced by this operation.

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 service's API endpoint.
  • Pagination parameters (page and limit) are sent as query parameters in the API request.

Troubleshooting

  • Empty results: Ensure the organization name is correct and that the organization has variables defined.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions to read organization variables.
  • Pagination issues: If no results appear on higher page numbers, check if the limit and page values are within the valid range supported by the API.
  • Network or API errors: Confirm network connectivity and that the base URL is correctly configured in the credentials.

Links and References

  • Refer to the external service’s official API documentation for detailed information about organization variables endpoints and pagination behavior.
  • Consult n8n documentation on how to configure API key credentials and use pagination in nodes.

Discussion