---
title: "Trigger a slash command for mattermost-slash-commands"
method: POST
path: "/api/v4/projects/{id}/services/mattermost_slash_commands/trigger"
tags: ["integrations"]
---

# Trigger a slash command for mattermost-slash-commands

`POST /api/v4/projects/{id}/services/mattermost_slash_commands/trigger`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/services/mattermost_slash_commands/trigger`
- Auth: none declared

Triggers a slash command for mattermost-slash-commands.

## Path parameters

- `id` string, required

## Request body

- PostApiV4ProjectsIdServicesMattermostSlashCommandsTrigger: Trigger a slash command for mattermost-slash-commands
  - `token` string, required: The Mattermost token.

## Response `201`

Trigger a slash command for mattermost-slash-commands

## Other responses

- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
