Skip to the content
Docs

Automation, webhooks and API

Workflows that react to events, signed webhooks to your own system, and a public REST API with keys and an OpenAPI document.

4 min readLast updated 4 Nov 2026

Automation reacts to what happens in your website the moment it happens. It has three parts: Workflows (do something when an event happens), Webhooks (tell your own system when an event happens) and the API (read and change your website from your own system). Switch it on in Tools > Automation. It is included in the paid plans.

Events#

Every event has a fixed name: order.placed, order.confirmed, order.dispatched, order.delivered, order.cancelled, order.returned, payment.received, payment.refunded, stock.low, stock.changed, stock.received, customer.created, customer.updated, customer.tagged, cart.abandoned, return.requested, return.approved, po.received, risk.flagged and more. They are kept in the order they happened. Nothing is lost if a service is busy: every event is written together with the change it reports and handled at least once.

Workflows#

A workflow is a short list of sentences: When an order is delivered, only if the total is over 1,000 taka, then wait 2 days, then send a message. Steps you can use:

  • send an SMS, WhatsApp or email (it follows your daily cap per buyer, the opt-out list and consent, so a buyer who said stop is never written to), send a web push
  • add or remove a customer tag, add to a segment
  • create a follow-up task, put a note in your inbox
  • confirm, cancel, deliver or return an order (only the moves the order allows)
  • attach a coupon to the message, block cash on delivery for a phone
  • call your own webhook address
  • wait (minutes, hours, or until a time of day), if / else, stop

Ready-made starts: new order WhatsApp + confirm call task, feedback request 2 days after delivery, low stock reminder, risky buyer blocks cash on delivery, abandoned cart SMS after 1 hour. Saving a workflow makes a new version; runs that already started keep the version they began with.

Webhooks#

Add an address (https only) and pick the events. Every delivery is a JSON body { id, type, apiVersion, occurredAt, data } with these headers:

text
X-Jukto-Signature: t=1700000000,v1=<hex>
X-Jukto-Timestamp: 1700000000
X-Jukto-Event: order.placed
X-Jukto-Event-Id: <event id>

The signature is HMAC-SHA256 of <t>.<raw body> with your endpoint secret (shown once when you make it). Check it, and ignore an id you have seen before: a retry or a replay carries the same id. Answer with any 2xx. If you do not, Jukto tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours (5 tries); a 4xx answer other than 408 and 429 is final. After 10 failed deliveries in a row the endpoint is switched off and you get a notice. The Deliveries list shows the status, the answer code and the first 500 characters of the answer, with Replay and Send test.

API#

Make a key in Tools > Automation > API keys: a name, scopes (products, orders, customers, inventory, coupons, events, each read or write; write includes read) and an optional expiry. The key is shown once; you can rotate or revoke it any time. One key belongs to one website.

text
curl https://app.jukto.site/api/v1/w/<website id>/orders?limit=5 \
  -H "Authorization: Bearer jk_live_xxxxxxxx"

curl -X POST https://app.jukto.site/api/v1/w/<website id>/orders/<order id>/confirm \
  -H "Authorization: Bearer jk_live_xxxxxxxx" -H "Content-Type: application/json" -d '{}'

A call is answered by the same code as your dashboard, so the same rules apply. 120 calls a minute per key. Errors: 401 API_KEY_INVALID, 403 API_SCOPE_MISSING or WEBSITE_FORBIDDEN, 409 TOOL_OFF, 429. The full description (every route, the webhook bodies, the import and export fields) is the OpenAPI 3.1 document at /api/v1/openapi.json.

Was this guide helpful?

Comments (0)

Anyone can comment. Please do not post phone numbers, passwords or customer details.

Never shown. Only used to tell you when someone replies.
0 / 2000

Automation, webhooks and API | Jukto Docs