`manage_others_incoming_webhooks` for the team the webhook is in if the user is different than the requester.
operationId:CreateIncomingWebhook
requestBody:
content:
application/json:
schema:
type:object
required:
- channel_id
properties:
channel_id:
type:string
description:The ID of a public channel or private group that receives
the webhook payloads.
user_id:
type:string
description:The ID of the owner of the webhook if different than the requester. Required for [local mode](https://docs.mattermost.com/administration/mmctl-cli-tool.html#local-mode).
display_name:
type:string
description:The display name for this incoming webhook
description:
type:string
description:The description for this incoming webhook
username:
type:string
description:The username this incoming webhook will post as.
icon_url:
type:string
description:The profile picture this incoming webhook will use when
`manage_others_outgoing_webhooks` for the team the webhook is in if the user is different than the requester.
operationId:CreateOutgoingWebhook
requestBody:
content:
application/json:
schema:
type:object
required:
- team_id
- display_name
- trigger_words
- callback_urls
properties:
team_id:
description:The ID of the team that the webhook watchs
type:string
channel_id:
description:The ID of a public channel that the webhook watchs
type:string
creator_id:
description:The ID of the owner of the webhook if different than the requester. Required in [local mode](https://docs.mattermost.com/administration/mmctl-cli-tool.html#local-mode).
type:string
description:
description:The description for this outgoing webhook
type:string
display_name:
description:The display name for this outgoing webhook
type:string
trigger_words:
description:List of words for the webhook to trigger on
type:array
items:
type:string
trigger_when:
description:When to trigger the webhook, `0` when a trigger word is
present at all and `1` if the message starts with a trigger
word
type:integer
callback_urls:
description:The URLs to POST the payloads to when the webhook is
triggered
type:array
items:
type:string
content_type:
description:The format to POST the data in, either `application/json` or
`application/x-www-form-urlencoded`
default:application/x-www-form-urlencoded
type:string
description:Outgoing webhook to be created
required:true
responses:
"201":
description:Outgoing webhook creation successful
content:
application/json:
schema:
$ref:"#/components/schemas/OutgoingWebhook"
"400":
$ref:"#/components/responses/BadRequest"
"401":
$ref:"#/components/responses/Unauthorized"
"403":
$ref:"#/components/responses/Forbidden"
"404":
$ref:"#/components/responses/NotFound"
get:
tags:
- webhooks
summary:List outgoing webhooks
description:>
Get a page of a list of outgoing webhooks. Optionally filter for a
specific team or channel using query parameters.
##### Permissions
`manage_webhooks` for the system or `manage_webhooks` for the specific team/channel.
operationId:GetOutgoingWebhooks
parameters:
- name:page
in:query
description:The page to select.
schema:
type:integer
default:0
- name:per_page
in:query
description:The number of hooks per page.
schema:
type:integer
default:60
- name:team_id
in:query
description:The ID of the team to get hooks for.
schema:
type:string
- name:channel_id
in:query
description:The ID of the channel to get hooks for.