---
title: "Inbound webhooks"
description: "Create an inbound webhook URL so an order or ticketing system can start a Pluraprint automation with a signed message. Read recent messages and rotate secrets."
url: https://pluraprint.com/docs/automations/inbound-webhooks
---
# Inbound webhooks

Create an inbound webhook URL so an order or ticketing system can start a Pluraprint automation with a signed message. Read recent messages and rotate secrets.

An inbound webhook is a Pluraprint URL that another system, such as an order or ticketing system, sends messages to. Each verified message can start an automation.

## Create one

1. Open **Connections**, choose **New connection** and then **Inbound webhook**.
2. Name it, and add the **fields** your automations need (see below).
3. Save. Pluraprint shows the endpoint URL and a signing secret. Copy the secret now: it is shown only this once. The endpoint stays visible under **Endpoint and recent messages** on the row’s menu.

## Send a message

Send an HTTPS `POST` with a JSON object body (`Content-Type: application/json`) to the endpoint. Sign it the way [Standard Webhooks](https://www.standardwebhooks.com/) describes, with these headers:

| Header | Value |
| --- | --- |
| `webhook-id` | A unique id for the message. A retry must reuse it. |
| `webhook-timestamp` | When it was sent, in Unix seconds. It must be within five minutes of Pluraprint’s clock. |
| `webhook-signature` | `v1,` and the base64 HMAC-SHA256 of `id.timestamp.body`, keyed with the secret without its `whsec_` prefix (base64-decoded). |

Most Standard Webhooks libraries sign with the `whsec_` secret directly. The verification sample on [Webhooks](https://pluraprint.com/docs/automations/webhooks) shows the same calculation.

Pluraprint answers:

| Status | Meaning |
| --- | --- |
| `202` | Accepted. |
| `200` | Already received under this `webhook-id`; nothing new happened. |
| `400` | A Standard Webhooks header is missing. |
| `401` | The signature does not match, or the timestamp is too old. |
| `404` | No such endpoint, or the connection is turned off. |
| `413` | The body is larger than the connection allows (64 KB unless you change it, up to 256 KB). |
| `415` | The body is not JSON. |
| `422` | The body is not a JSON object, or a required field is missing or of the wrong kind. |
| `429` | Too many messages: more than the connection’s per-minute limit. Retry after `Retry-After`. |

Retry anything but `2xx`, `404` and `422` with the same `webhook-id`.

## Fields

Fields read typed values out of the body so automations can check and use them. Each has a **key** (for example `order_id`), a **label**, a dotted **body path** (`data.order.id`) and a kind: text, number or yes/no. A **required** field that is missing refuses the message with `422`.

Automations see a field as `external.fields.<key>` (for example `{{ external.fields.order_id }}`). The message type, read from the **type path** (`type` unless you change it), is `external.type`. Pluraprint never stores the body itself, only what the fields read.

## Start an automation

In **Automations**, choose the trigger **Message received at “…”** for the connection. Its fields appear in the condition editor and the variable picker. Automations started this way have no print job or person as their subject, so notifications from them go to the people, roles or addresses you choose.

## Recent messages

**Endpoint and recent messages** lists the last 50 messages with their outcome: accepted, duplicate, bad signature, too old, fields missing or rate limited. Messages are kept for 30 days.

## Rotating the secret

Choose **Rotate signing secret** on the row’s menu. Pluraprint keeps accepting the old secret for the overlap you choose, so you can update the sending system without losing messages.
