GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a user's avatar image from the GitLab API (version 4) using the user's public email address. It supports specifying the image size for Gravatar images. This is useful for workflows that need to fetch user avatars for display or processing, such as in user profile management or integration with other systems that require user images.

Use Case Examples

  1. Fetch a user's avatar by providing their public email to display in a team dashboard.
  2. Retrieve avatar images in different sizes for use in a custom application or report.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Parameters sent as query string in the request, including the user's public email (required) and optional size for the avatar image.

Output

JSON

  • avatarUrl - URL of the user's avatar image returned by the GitLab API.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the 'email' query parameter is provided and correctly formatted, as it is required to fetch the avatar.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have the necessary permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and accessible.
  • Common errors may include 401 Unauthorized if authentication fails, or 400 Bad Request if required parameters are missing or invalid.

Links

Discussion