---
title: "Trigger a global slack command"
method: POST
path: "/api/v4/slack/trigger"
tags: ["integrations"]
---

# Trigger a global slack command

`POST /api/v4/slack/trigger`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/slack/trigger`
- Auth: none declared

Triggers a global slack command.

## Request body

- PostApiV4SlackTrigger: Trigger a global slack command
  - `text` string, required: Text of the slack command

## Response `201`

Trigger a global slack command

## Other responses

- `401`: Unauthorized

---

[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)
