---
ai:
  exclude: true
search:
  tags:
    - Webhooks
    - POST
seo:
  description: >-
    Create a webhook via the URL. The authenticated user must be an… Reference
    for the POST /rest/api/webhooks endpoint in the Confluence Data Center API.
sidebar:
  label: Create webhook
  badge: POST
title: Create webhook
type: openapi-operation
---
Create a webhook via the URL. The authenticated user must be an administrator to call this resource.

`POST /rest/api/webhooks`

**Request body** (`application/json`, required)

the webhook to be created.

- `name` (string)
- `configuration` (object)
- `url` (string)
- `credentials` (RestWebhookCredentials)
- `statistics` (object)
- `events` (string[])
- `active` (boolean)
- `scopeType` (string)
- `sslVerificationRequired` (boolean)

Request body example:

```json
{
  "name": "string",
  "configuration": {},
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "statistics": {},
  "events": [
    "string"
  ],
  "active": true,
  "scopeType": "string",
  "sslVerificationRequired": true
}
```

**Responses**

- `201` — returns a created webhook.
- `400` — returned if The webhook parameters were invalid or not supplied.
- `401` — The currently authenticated user has insufficient permissions to create webhooks.

Response example, 201:

```json
{
  "createdDate": "2019-08-24T14:15:22Z",
  "name": "string",
  "id": 0,
  "active": true,
  "configuration": {},
  "scope": {
    "id": "string",
    "type": "string"
  },
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "events": [
    {
      "id": "string",
      "i18nKey": "string"
    }
  ],
  "updatedDate": "2019-08-24T14:15:22Z",
  "sslVerificationRequired": true
}
```
