GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes the current user's personal access tokens from GitLab via the API endpoint `/api/v4/personal_access_tokens/self`. It is useful for scenarios where a user wants to revoke their own personal access tokens programmatically, such as during automated security cleanup or token management workflows.

Use Case Examples

  1. Automated revocation of personal access tokens for security compliance.
  2. Integration workflows that manage GitLab user tokens dynamically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or unauthenticated calls.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method HTTP method used for the request, defaulting to GET but typically DELETE for this operation.
Parameter Schema Hidden property for the parameter schema of the request, not user-configurable.
Request Body Schema Hidden property for the request body schema, not user-configurable.
Request Path The API endpoint path for deleting the personal access tokens of the current user, fixed to `/api/v4/personal_access_tokens/self`.

Output

JSON

  • statusCode - HTTP status code returned by the API indicating success or failure of the token deletion request.
  • responseBody - The JSON response body from the API call, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has sufficient permissions to delete personal access tokens.
  • Verify the baseUrl is correctly set to the GitLab instance URL.
  • Common error: 401 Unauthorized - indicates authentication failure; check API key and authentication settings.
  • Common error: 403 Forbidden - indicates insufficient permissions to delete tokens; verify user rights.

Links

Discussion