# \[Solved\] How enable webhook API creation in mattermost

**URL:** <https://forum.mattermost.com/t/solved-how-enable-webhook-api-creation-in-mattermost/6553>\
**Category:** Troubleshooting\
**Created:** [January 23, 2019, 4:37pm UTC](https://forum.mattermost.com/t/solved-how-enable-webhook-api-creation-in-mattermost/6553 "2019-01-23T16:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LionelBino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lionelbino/32/2636_2.png) [@LionelBino](https://forum.mattermost.com/u/LionelBino)\
**Post date:** [January 23, 2019, 4:37pm UTC](https://forum.mattermost.com/t/solved-how-enable-webhook-api-creation-in-mattermost/6553/1 "2019-01-23T16:37:53Z")

</div>

#### Summary

I, how can enable the webhook creation using API? Mattermost always response me the following text:

`Outgoing webhooks have been disabled by the system admin.`

My configuration using says:

```auto
    "EnableIncomingWebhooks": true,
    "EnableOutgoingWebhooks": true,

```

And the system are the following

```auto
Mattermost Version: 5.5.1
Database Schema Version: 5.5.0
Database: mysql

```

#### Steps to reproduce

I using a curl request like this:

```auto
curl --location --request POST "https://omnichat.democrm.com.ar/api/v4/hooks/outgoing" \
  --header "Authorization: Bearer XXXXXXXXXXXXXXX" \
  --header "Content-Type: application/json" \
  --data '{"team_id": "XXXXXXXXX","channel_id": "XXXXXXXXXXX","description": "","display_name": "send to web service","trigger_words": [],"trigger_when": 0,"callback_urls": ["https://miwservicetest.com/v1/out"],"content_type": "application/x-www-form-urlencoded"}'

```

#### Expected behavior

Creation of webhook outgoing success.

#### Observed behavior

Mattermost returns to me the following response:

```auto
{"id":"api.outgoing_webhook.disabled.app_error","message":"Outgoing webhooks have been disabled by the system admin.","detailed_error":"","request_id":"iqztco7t43gcmep999c4csr35r","status_code":403}

```

---

<div class="post-metadata">

**Author:** ![LionelBino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lionelbino/32/2636_2.png) [@LionelBino](https://forum.mattermost.com/u/LionelBino)\
**Post date:** [January 24, 2019, 1:14pm UTC](https://forum.mattermost.com/t/solved-how-enable-webhook-api-creation-in-mattermost/6553/2 "2019-01-24T13:14:36Z")

</div>

I found the error, it is caused when the team channel not have enough permissions, or the channel is not public.
