---
title: "Create an outgoing webhook"
method: POST
path: "/api/v4/hooks/outgoing"
tags: ["webhooks"]
---

# Create an outgoing webhook

`POST /api/v4/hooks/outgoing`

Create an outgoing webhook for a team.
##### Permissions
`manage_webhooks` for the team the webhook is in.

`manage_others_outgoing_webhooks` for the team the webhook is in if the user is different than the requester.

## Request body

- object
  - `team_id` string, required — The ID of the team that the webhook watchs
  - `channel_id` string — The ID of a public channel that the webhook watchs
  - `creator_id` string — The ID of the owner of the webhook if different than the requester.
  - `description` string — The description for this outgoing webhook
  - `display_name` string, required — The display name for this outgoing webhook
  - `trigger_words` string[], required — List of words for the webhook to trigger on
  - `trigger_when` integer — When to trigger the webhook, `0` when a trigger word is present at all and `1` if the message starts with a trigger word
  - `callback_urls` string[], required — The URLs to POST the payloads to when the webhook is triggered
  - `content_type` string — The format to POST the data in, either `application/json` or `application/x-www-form-urlencoded`

## Response `201`

Outgoing webhook creation successful

- 38cb7293OutgoingWebhook
  - `id` string — The unique identifier for this outgoing webhook
  - `create_at` integer — The time in milliseconds a outgoing webhook was created
  - `update_at` integer — The time in milliseconds a outgoing webhook was last updated
  - `delete_at` integer — The time in milliseconds a outgoing webhook was deleted
  - `creator_id` string — The Id of the user who created the webhook
  - `team_id` string — The ID of the team that the webhook watchs
  - `channel_id` string — The ID of a public channel that the webhook watchs
  - `description` string — The description for this outgoing webhook
  - `display_name` string — The display name for this outgoing webhook
  - `trigger_words` string[] — List of words for the webhook to trigger on
  - `trigger_when` integer — When to trigger the webhook, `0` when a trigger word is present at all and `1` if the message starts with a trigger word
  - `callback_urls` string[] — The URLs to POST the payloads to when the webhook is triggered
  - `content_type` string — The format to POST the data in, either `application/json` or `application/x-www-form-urlencoded`

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions
- `404` — Resource not found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
