---
title: "Create Webhook"
method: POST
path: "/print-mail/v1/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /print-mail/v1/webhooks`

Create a Webhook.

## Request body

- WebhookCreate
  - `url` string, uri, required — An HTTPS URL that PostGrid can invoke for webhook deliveries.
  - `enabledEvents` WebhookEventType[], required — The list of event types this webhook listens for.
  - `payloadFormat` 'jwt' | 'json' — The format in which a Webhook's event payload is delivered.
  - `secret` string — A webhook signing secret with at least 20 non-whitespace characters.
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.

## Response `201`

The newly created Webhook.

- Webhook
  - `id` string, required — A unique ID prefixed with webhook_
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `live` boolean, required — `true` if this is a live mode resource else `false`.
  - `createdAt` string, date-time, required — The UTC time at which this resource was created.
  - `updatedAt` string, date-time, required — The UTC time at which this resource was last updated.

## Other responses

- `400` — The newly created Webhook.
- `401` — The newly created Webhook.
- `404` — The newly created Webhook.
- `422` — The newly created Webhook.
- `429` — The newly created Webhook.
- `500` — The newly created Webhook.

---

[API](https://skmtc.net/postgrid/apis/postgrid-address-verification-api.md) · [All operations](https://skmtc.net/postgrid/apis/postgrid-address-verification-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postgrid/postgrid-address-verification-api/revisions/537d2bbc624a/schema)
