# Create a new Zapier webhook subscription

`POST /api/integration/zapier/webhooks`

Authentication: no security requirement declared for this operation.

Parameters:

- `Authorization` (header, string, required)
  Type: string

Responses:

- 201: Webhook subscription created successfully

Content type: application/json

Type: object

Schema: [ZapierWebhookSubscription](https://sourcey-gauzy.pages.dev/api-reference/models/zapierwebhooksubscription/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `targetUrl` (required)
  Type: string

- `event` (required)
  Type: string

- `integrationId` (required)
  Type: string

- 400: Bad Request - Missing required fields

- 401: Unauthorized - Invalid or missing authorization token

- 403: Forbidden - Invalid token

- 500: Internal Server Error

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/integration/zapier/webhooks' \
  -H 'Authorization: string'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/integration/zapier/webhooks', {
  method: 'POST',
  headers: {
    'Authorization': 'string',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post(
    'http://localhost:3000/api/integration/zapier/webhooks',
    headers={
        'Authorization': 'string',
    },
)
print(response.text)
```
