Integrations
Integrations is the console page for webhook endpoints. You give Karyo a web address. Karyo then sends a signed message to it each time a matching event happens in the warehouse, such as a pick order picked or a shipment dispatched. The page shows each delivery and lets you retry it. It does not connect Karyo to a carrier or an ERP system. Those connections are work for an implementer.
Switch it on
A Company administrator who holds settings.manage at the Company switches it on at
Admin > Capabilities, on the row named Integrations. The panel previews what appears and
asks you to confirm.
The capability needs no setting. You need two other things before it does anything useful:
- The
integrations.manageaction. The Administrator profile and the Integrations profile hold it, and it can be granted at the Company, a Business Unit or one Facility. - A web address that can receive a POST and answer with a 2xx status.
A subscription belongs to the Facility the console is working in. Select the Facility first.
What appears when it is on
- Integrations in the Admin sidebar, in the Configure group.
- On the page, headed Webhooks: three figures (Active subscriptions, Total subscriptions and Relay), a list of subscriptions with a search box, and a detail pane.
- In the detail pane: Send test, Delete, the event types, and Recent deliveries.
The Relay figure always reads OK. It is a fixed label and does not check the relay. Judge the relay by the deliveries.
Using it
To add an endpoint:
- Open Admin > Integrations and press + New subscription.
- Fill in Name and Target URL.
- In Event types list the events to send, separated by commas.
*means every event. A name ending in*matches by prefix, for examplepick-order.*. Any other name must match exactly. - Press Create.
- Copy the signing secret now. The page says it will not be shown again, and nothing can show it later. If you lose it, use the rotation route described below.
Karyo checks the address when you save. It refuses a loopback address, a private-network address,
a link-local address and the names localhost and metadata.google.internal. It requires https.
An operator can enable karyo.webhooks.allow-http for test receivers only; it defaults to off.
The HTTPS requirement applies at delivery time too, but host validation runs only when you save.
The page can create, test and delete a subscription. It cannot edit one. A subscription made
here is always active. To replace its secret without losing history, call
POST /api/v1/webhook-subscriptions/{id}/rotate-secret. The API returns the new secret once.
There is no overlap window: new attempts use the new secret after rotation commits, including retries.
Requests already in flight may still use the old secret. The page cannot rotate a secret.
The Paused label can appear only for a subscription paused through the API. A paused subscription is not a queue. Events that happen while it is paused are never delivered later. Karyo does not replay earlier events to a new subscription.
Karyo sends a JSON message with the headers X-Karyo-Event, X-Karyo-Delivery,
X-Karyo-Timestamp and X-Karyo-Signature. The signature is sha256= followed by an HMAC-SHA256
of the timestamp, a full stop and the body, made with the subscription's secret. Your receiver
must check it and must expect the same delivery more than once. The exact envelope, a
verification example and every event type are in the
event catalogue.
A subscription receives the events of its Facility. It also receives the master-data events of the Business Unit that owns the Facility. It never receives Company-level events.
To check an endpoint, press Send test. The page says "Test event queued", and a webhook.ping
event follows on the next cycle. The relay runs every five seconds by default.
Recent deliveries lists up to 100 deliveries for the selected subscription, newest first. Each row shows a status, the event type, the last response code and the number of attempts. The dropdown filters by All, Failed or Dead.
| Status | Meaning |
|---|---|
| PENDING | Queued and waiting for an attempt. |
| DELIVERED | The receiver answered with a 2xx status. |
| FAILED | The last attempt failed. Karyo will try again. |
| DEAD | Every attempt failed. Karyo has stopped. |
Any other status code counts as a failure. So does no answer within 10 seconds, the default limit. Karyo does not follow a redirect. By default Karyo makes eight attempts, and the wait before the next one starts at 10 seconds, doubles each time and never exceeds one hour. A FAILED or DEAD row has a redeliver button. It puts the delivery back in the queue with a full set of new attempts.
Deleting a subscription also deletes its delivery history, dead deliveries included.
When you switch it off
The sidebar entry and the page disappear. Nothing is deleted. The subscriptions, the deliveries
and the REST routes under /api/v1/webhook-subscriptions and /api/v1/webhook-deliveries stay.
Switching it off does not stop the relay. The relay never checks the switch, so active subscriptions keep receiving events and retrying. To stop them, delete the subscriptions first. There is no rule that lets open work finish for this capability.
Next
- Administer Karyo for the rest of the Admin section
- Webhooks and the event catalogue
- SPI catalogue for the carrier adapter seam an implementer builds on
- Core and Extended for the capability's reference