GitLab API icon

GitLab API

Gitlab

Actions1062

Integrations → getApiV4ProjectsIdServicesSlug

AI-generated

Summary

Retrieve the configuration details of a specific integration service by its slug for a given GitLab project ID using the GitLab API.

Inputs

  • id (required) — The numeric ID of the GitLab project for which to retrieve the integration service.
  • slug (required) — The slug identifier of the integration service to retrieve (e.g., 'slack', 'jira', 'asana').
  • skipAuthentication — Whether to skip authenticating the request; defaults to false.
  • baseUrl — The base URL of the GitLab instance, defaulting to 'https://gitlab.com'.
  • method — The HTTP method to use; defaults to GET for this operation.

Output shape

a single JSON object representing the integration service's configuration for the specified project

The operation uses a REST GET request to the endpoint /api/v4/projects/{id}/services/{slug} and requires authentication by default (unless skipAuthentication is true). The response includes the integration service details for the given project ID and service slug. The 'id' parameter must be provided as an integer project ID, and the 'slug' must be one of the predefined integration names supported by GitLab.

Examples

Example 1: Fetch the Slack integration configuration for project ID 12345.

Provide 'id' as 12345 and 'slug' as 'slack' with authentication enabled.

Links

Discussion