# Get project webhook

> The project webhook for the project behind the API key. webhook is null when none is configured. The secret is never returned here.

`GET https://api.zavu.dev/v1/invitations/webhook`

The project webhook for the project behind the API key. `webhook` is null when none is configured. The secret is never returned here.

## Responses

### 200

The project webhook, or null.

- `webhook` (object, required, nullable): The project-level webhook. It receives project events such as `invitation.status_changed` for this project only: a parent project does not receive its sub-accounts' events, so configure one per sub-account with that sub-account's API key.
  - `url` (string<uri>, required)
  - `events` (string[], required) One of: `invitation.status_changed`, `broadcast.status_changed`, `domain.verified`, `domain.failed`.
  - `secret` (string): Signing secret for `X-Zavu-Signature`. Returned only by `POST /v1/invitations/webhook`.
  - `active` (boolean, required)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X GET "https://api.zavu.dev/v1/invitations/webhook" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

const result = await zavu.invitations.webhook.retrieve();

console.log(result);
```
