API

Capture leads from any site.

Connect your contact forms to Trashbox CRM with one endpoint. New inquiries show up as leads you can message, reply to, and follow up with templates.

POST JSON to /submit with your API key. Restrict allowed origins so the key only works from your domains.

const response = await fetch("https://api.trashbox.io/submit", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key": "fapi_your_key_here",
  },
  body: JSON.stringify({
    name: "Ada Lovelace",
    email: "ada@example.com",
    message: "I'd like a quote…",
    _honeypot: "",
    metadata: { page: "/contact" },
  }),
});