GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a user's avatar image from the GitLab API (version 4) using the user's public email address. It is useful for scenarios where you want to fetch or display user avatars based on their email, such as in user profile management or social integrations.

Use Case Examples

  1. Fetch a user's avatar by providing their public email to display on a dashboard.
  2. Retrieve avatar images for a list of users to show in a team collaboration tool.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use if not skipping authentication.
baseUrl The base URL of the GitLab instance to send the request to.
Method HTTP method to use for the request.
Query Parameters Parameters sent as query string in the request URL.

Output

JSON

  • avatarUrl - URL of the user's avatar image retrieved from 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 skipping authentication, verify that the GitLab instance allows unauthenticated requests for avatar retrieval.
  • Check the baseUrl to ensure it points to a valid GitLab instance.
  • Common errors may include 401 Unauthorized if authentication is required but not provided, or 400 Bad Request if required parameters are missing.

Links

Discussion