# Create a new webhook configuration. Maximum of 50 webhooks per app.

> You're reading the Mindset v3 documentation. v3 is no longer sold; this is reference for existing customers. Mindset 4 docs are at /docs.

Mindset v3 REST API reference: Webhooks.

**POST** `/api/v1/appuid/{appUid}/webhooks`

## Base URL

Requests go to your region's API host, for example `https://a.api.mindset.ai`. Hosts: `https://a.api.mindset.ai`, `https://b.api.mindset.ai`, `https://c.api.mindset.ai`, `https://d.api.mindset.ai`.

## Authorization

- `x-api-key` (string, required, header)

  Your API key.

## Path parameters

- `appUid` (string, required, path)

  Your application's uid

## Request body

Content type: `application/json`.

- `name` (string, body)

  Descriptive name for the webhook

* `url` (string, required, body)

  Webhook endpoint URL

- `entities` (string\[], required, body)

  Entity types to monitor

* `active` (boolean, body)

  Whether the webhook is active (defaults to true)

```json
{
  "name": "string",
  "url": "string",
  "entities": [
    "agent"
  ],
  "active": true
}
```

## Responses

### 201

Webhook created successfully

```json
{
  "uid": "string",
  "name": "string",
  "url": "string",
  "secret": "string",
  "entities": [
    "string"
  ],
  "active": true,
  "createdAt": "string"
}
```

### 400

Bad Request

### 401

Unauthorized

### 403

Forbidden

### 422

Unprocessable Entity - e.g. maximum number (50) of webhooks reached

### 500

Internal Server Error

## Example request

```bash
curl -X POST "https://a.api.mindset.ai/api/v1/appuid/{appUid}/webhooks" \
  -H "x-api-key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","url":"string","entities":["agent"],"active":true}'
```
