Partner API
Webhooks
Receive signed job events at your HTTPS endpoint.
Webhooks are the primary way you learn that a job moved forward. Configure your HTTPS URL and signing secret under Profile → Partner API, then handle the events below. For the full sync pattern (webhooks + polling), see Status sync.
| Event | When |
|---|---|
| job.created | Job posted |
| job.assigned | Runner assigned / accepted |
| job.status_changed | Any later status change (from_status / to_status) |
| job.completed | Completed (or delivered) |
| job.cancelled | Cancelled / failed cancel path |
You may receive both a specific event and job.status_changed. Deduplicate with event_id.
Content-Type: application/json
X-GoQuick-Signature: t=1732719000,v1=<hex>
X-GoQuick-Event: job.assigned
X-GoQuick-Delivery: evt_…- t = Unix timestamp (seconds)
- v1 = HMAC-SHA256(secret, "{t}.{raw_body}") as hex
- Reject if |now - t| > 5 minutes
- Respond with HTTP 2xx quickly; GoQuick retries failed deliveries (exponential backoff, up to ~8 attempts)
- Delivery history is visible in Profile → Partner API and in admin
{
"event_id": "evt_01JB…",
"event": "job.assigned",
"created_at": "2026-11-27T15:10:00+01:00",
"organization_id": 12,
"data": {
"job": { "...": "same shape as GET job" },
"from_status": "searching",
"to_status": "accepted"
}
}Verify signature (Node.js). Use the raw request body, not a re-serialized JSON object:
const crypto = require("crypto");
function verifyGoQuickSignature(rawBody, signatureHeader, secret, maxSkewSec = 300) {
const parts = Object.fromEntries(
String(signatureHeader || "")
.split(",")
.map((p) => p.trim().split("="))
.filter((kv) => kv.length === 2)
);
const t = parts.t;
const v1 = parts.v1;
if (!t || !v1) return false;
const skew = Math.abs(Date.now() / 1000 - Number(t));
if (skew > maxSkewSec) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${t}.${rawBody}`)
.digest("hex");
try {
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
} catch {
return false;
}
}
// Express: use express.raw({ type: "application/json" }) for this route
app.post("/webhooks/goquick", (req, res) => {
const raw = req.body.toString("utf8");
if (!verifyGoQuickSignature(raw, req.get("X-GoQuick-Signature"), process.env.GOQUICK_WEBHOOK_SECRET)) {
return res.status(401).send("invalid signature");
}
const event = JSON.parse(raw);
// handle event.event / event.data.job
res.status(200).json({ ok: true });
});Verify signature (PHP):
function verifyGoQuickSignature(string $rawBody, ?string $header, string $secret, int $maxSkew = 300): bool
{
$parts = [];
foreach (explode(',', (string) $header) as $piece) {
[$k, $v] = array_pad(explode('=', trim($piece), 2), 2, null);
if ($k && $v !== null) {
$parts[$k] = $v;
}
}
if (empty($parts['t']) || empty($parts['v1'])) {
return false;
}
if (abs(time() - (int) $parts['t']) > $maxSkew) {
return false;
}
$expected = hash_hmac('sha256', $parts['t'].'.'.$rawBody, $secret);
return hash_equals($expected, $parts['v1']);
}