# Developers

Webhooks, API keys for Zapier and Make, and embeds.

## Webhooks

Open **Settings → Developer → Webhooks** and add a URL. Choose which events to send; each one arrives as a JSON `POST`.

| Event | When |
| --- | --- |
| BOOKING_CREATED | A booking is made |
| BOOKING_REQUESTED | A booking needs your approval |
| BOOKING_RESCHEDULED | A booking moves to a new time |
| BOOKING_CANCELLED | A booking is cancelled |
| BOOKING_NO_SHOW_UPDATED | Someone is marked as a no-show |

### Payload

```
{
  "triggerEvent": "BOOKING_CREATED",
  "createdAt": "2026-11-17T09:31:12.000Z",
  "payload": {
    "uid": "bFJeNb2uX8ANpT3JL5EfXw",
    "title": "Intro call between Maya Patel and Sam Lee",
    "startTime": "2026-11-17T09:30:00.000Z",
    "endTime": "2026-11-17T09:45:00.000Z",
    "organizer": { "name": "Maya Patel", "email": "maya@example.com", "timeZone": "Europe/London" },
    "attendees": [{ "name": "Sam Lee", "email": "sam@example.com", "timeZone": "Europe/London" }],
    "location": "Google Meet",
    "responses": { "notes": { "label": "Additional notes", "value": "Looking forward to it" } }
  }
}
```

### Verify the signature

Add a secret to the webhook and every request carries `X-Webhook-Signature-256`: an HMAC-SHA256 of the raw body, as hex. Compute the same with your secret and compare.

```
import { createHmac, timingSafeEqual } from "node:crypto";

export function isValidWebhook(rawBody: string, header: string, secret: string) {
  const expected = createHmac("sha256", secret).update(rawBody).digest("hex");
  return header.length === expected.length && timingSafeEqual(Buffer.from(header), Buffer.from(expected));
}
```

## API keys

Zapier and Make sign in to Gaple with an API key. Create one on the app's setup page (**Apps → Zapier** or **Apps → Make**). Each key covers your own services or one team's; making a new key stops the old one working.

Keys are shown once. Keep them somewhere safe, like a password manager.

## Embed on your site

Open a service's menu in **Services** and choose **Embed**. Pick inline, a floating button or a pop-up, preview it, and copy the code into your website.
