HandledGet your keys

Embed Handled in your product

Add Handled's request and provider experience to any product with one script, a typed SDK, a server API and signed webhooks.

1. Add the widget

Create an app in the partner portal, list the domains that will show it, then paste one line. Handled opens as a 480px side panel on desktop and a full-height sheet on mobile.

HTML
<script src="https://handletasks.app/embed.js" data-key="pk_live_your_key" async></script>
Inline inside your page
<div id="handled" style="height:720px"></div>
<script src="https://handletasks.app/embed.js"></script>
<script>Handled.init({ key: "pk_live_your_key", mode: "inline", target: "#handled" });</script>

2. Connect it to your product

JavaScript SDK
<script src="https://handletasks.app/embed.js"></script>
<script>
  Handled.init({ key: "pk_live_your_key" });

  // Optional: link your signed-in user (signature comes from your server)
  Handled.identify({ hostUserId: "user_123", signature: "<from your server>" });

  // Open with context from your product
  Handled.open({ prefill: { text: "Move my office printer to the 3rd floor", budget: 150, workMode: "in_person" } });

  Handled.on("request.saved", (e) => console.log("Saved", e.requestId));
</script>
Handled.init(options)key, mode ('panel' | 'inline'), target, launcher, launcherLabel, accent, tab, user
Handled.open({ prefill, tab })Opens the panel. prefill: text, budget, location, timing, workMode, context
Handled.prefill(prefill)Fills the request composer without opening
Handled.navigate(tab)'request' | 'activity' | 'work' | 'account'
Handled.identify({ hostUserId, signature })Links your signed-in user to a private Handled identity
Handled.logout()Signs the user out of the widget
Handled.on(event, cb)ready, open, closed, identified, request.saved, request.updated, request.deleted, provider.saved, navigate, error
Handled.destroy()Removes the widget and restores the host page. Use when your product unmounts it.
Download TypeScript definitions

3. Link your users

Sign each user ID on your server with your signing secret. Handled creates a private identity tied to your app and that ID — your users never sign in twice, and no one can impersonate them without your secret.

Server
// Node.js — sign your user's ID with your signing secret (never send the secret to the browser)
import crypto from "node:crypto";
const signature = crypto
  .createHmac("sha256", process.env.HANDLED_SIGNING_SECRET)
  .update(user.id)
  .digest("hex");

4. Server API

Authenticate with your secret key. Never use it in a browser.

GET /api/public/v1/meCheck your key
POST /api/public/v1/requestsCreate a request for one of your users
GET /api/public/v1/requests?host_user_id=List requests made through your app
GET /api/public/v1/requests/:idRead one request and its status
PATCH /api/public/v1/requests/:idUpdate text, budget_cents, location, context, work_mode or requested_start
GET /api/public/v1/capabilitiesList your product's capabilities
POST /api/public/v1/capabilitiesRegister name, description, work_modes, service_area and minimum_payout_cents; approval required
PATCH /api/public/v1/capabilities/:idEdit a capability; edits return it to review
DELETE /api/public/v1/capabilities/:idRemove one of your capabilities
GET /api/public/v1/offers?status=offeredHandled requests routed to your capabilities
POST /api/public/v1/offers/:id{ "action": "accept" | "pass" }
cURL
curl -X POST https://handletasks.app/api/public/v1/requests \
  -H "Authorization: Bearer $HANDLED_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host_user_id":"user_123","text":"Set up two monitors at my desk","budget_cents":12000,"work_mode":"in_person"}'

5. Offer your product's capabilities

Add capabilities in the portal (what you handle, remote or in person, area, minimum job value). After review, matching requests from Handled users arrive as offer.created webhooks. Users see your option as "Handled by your product". Requester contact details are never included in offers.

6. Webhooks

request.savedA user saved a request in your widget or via the API
request.updatedThe user edited that request
provider.savedA user set up Work inside your widget
offer.createdA Handled request matched one of your capabilities
offer.updatedYour product accepted or passed on an offer
pingTest event from the portal
Verify the signature
// Verify the Handled-Signature header: t=<unix>,v1=<hex>
const [t, v1] = header.split(",").map((p) => p.split("=")[1]);
const expected = crypto.createHmac("sha256", SIGNING_SECRET).update(`${t}.${rawBody}`).digest("hex");
const valid = /^[0-9a-f]{64}$/i.test(v1 || "")
  && crypto.timingSafeEqual(Buffer.from(v1, "hex"), Buffer.from(expected, "hex"))
  && Math.abs(Date.now() / 1000 - Number(t)) < 300;

Security