Webhooks
Signed HTTP notifications when a job ends, a store is connected or needs you, a creator replies on WhatsApp or sends a Spark Ads Code.
What it's for: being told when something changes (a job ends, a store needs you, a creator answers) instead of asking again and again.
Instead of polling, add a webhook endpoint in the dashboard (Developer → Webhook): GrowSeller sends a POST to your URL when something happens. You can have 5 endpoints; each one chooses its events.
The URL must be a public https:// address. The signing secret (whsec_…) is shown when you add the endpoint, and again only when you make a new one.
Events
Only changes of state are sent, never one event per creator or per message sent: a broadcast to 10,000 creators sends one event when it ends.
| Event | When |
|---|---|
job.completed | A job finished: a broadcast, a collaboration run, a sync or an import. data carries its counts. |
job.failed | A job ended with an error (data.error). |
job.stopped | A job was stopped, by you or by the plan's limit. |
store.needs_reauth | A store must be signed in again; its jobs wait. data: shop_id, name, platform. GET /workspace/shops shows it too (needs_reauth, needs_reauth_at) until the store is connected again. |
store.captcha_required | A store waits for a TikTok security check; its jobs wait. data: shop_id, name, platform. |
whatsapp.message.received | A creator replied on WhatsApp. |
spark_ads_code.received | A creator sent a Spark Ads Code through the form. |
store.connected | A store, email account or WhatsApp number was connected, or a store was signed in again: from the dashboard (TikTok Shop by cookies or by email, Shopee, email, WhatsApp), the API or a connect link. data carries platform (tiktok_shop, shopee, email, whatsapp), id, reconnected and, through a link, connect_link_id. |
webhook.test is sent only by the test button.
The request
POST /hooks/growseller HTTP/1.1
Content-Type: application/json
User-Agent: GrowSeller-Webhooks/1.0
GrowSeller-Event: job.completed
GrowSeller-Delivery: 0193a7c2-…
GrowSeller-Signature: t=1763700000,v1=5d41402abc4b2a76b9719d911017c592…
{
"id": "7f1c…",
"type": "job.completed",
"created_at": "2026-11-21T09:00:00Z",
"data": {
"id": "…", "kind": "message_broadcast", "ref_id": "…", "shop_id": "…", "title": "November promo",
"status": "COMPLETED", "total": 1200, "done": 1200, "success": 1180, "failed": 20, "skipped": 0,
"error": null, "started_at": "…", "finished_at": "…"
}
}id is the event's id: a delivery sent again keeps it, so use it to ignore duplicates. Store events carry shop_id, name and platform; whatsapp.message.received carries the account, chat, message id, type, text, sender and time; spark_ads_code.received carries the store, the form and the codes per video.
Verify the signature
GrowSeller-Signature is t=<unix seconds>,v1=<hex> where v1 is HMAC-SHA256, keyed with your endpoint's secret, of the string <t>.<raw body>. Compute it over the raw body exactly as received, compare in constant time, and reject old timestamps (for example older than five minutes).
import { createHmac, timingSafeEqual } from 'node:crypto';
export function verify(rawBody: string, header: string, secret: string, toleranceSec = 300) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=') as [string, string]));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const given = Buffer.from(parts.v1 ?? '', 'hex');
const want = Buffer.from(expected, 'hex');
return given.length === want.length && timingSafeEqual(given, want);
}Answer fast
Answer with any 2xx within 5 seconds; do slow work after answering. A delivery that gets no answer within 5 seconds fails at once and is not tried again. A quick refusal (an error status or a closed port) is tried again after 1, 5, 30, 120, 300, 480 and 480 minutes: 8 attempts over about a day. Redirects are not followed.
After 50 failed deliveries in a row the endpoint is turned off; turn it on again in the dashboard. Each endpoint's deliveries of the last 7 days are listed there, with a button to send one again.