For developers

Maidful API documentation

Connect your tools with API keys and signed webhooks.

Authentication

Base URL
https://maidful.co/api/v1

Owners create keys in Settings > Integrations > Webhooks > API keys. Copy the key when it appears: it is shown only once. Use Authorization: Bearer API_KEY or X-API-Key: API_KEY on every request. Keep keys on your server, never in browser code.

Each key belongs to one company and works while its creator remains an active owner. Revoking a key also removes its REST-hook subscriptions. API access and webhooks are available on every plan.

The limit is 120 requests per minute per key, with an additional 300 requests per minute per IP address. A 429 response means you should wait until the next minute and retry with backoff.

Requests and responses use JSON. POST /hooks also accepts application/x-www-form-urlencoded. Dates use the company’s local YYYY-MM-DD and times use HH:MM with timezone; timestamps use ISO 8601. Money is integer cents with a currency. The Zapier integration also adds decimal dollar fields.

API endpoints

All paths below are relative to the base URL. Every endpoint requires an API key. Request examples show the HTTP method, URL, headers and optional JSON body. Omit optional fields you do not need; contact inputs reject unknown fields.

Identify the connection

GET /me

Returns the authenticated company and API key names and IDs. Zapier uses the company name as the connection label.

Request fields

  • No path, query or body fields.
Example request
{
  "method": "GET",
  "url": "https://maidful.co/api/v1/me",
  "headers": {
    "Authorization": "Bearer <API_KEY>"
  }
}
Example response (200 OK)
{
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "key": {
    "id": "key_sample",
    "name": "Zapier"
  }
}

List available events

GET /events

Returns the API version and all supported event IDs with descriptions.

Request fields

  • No path, query or body fields.
Example request
{
  "method": "GET",
  "url": "https://maidful.co/api/v1/events",
  "headers": {
    "Authorization": "Bearer <API_KEY>"
  }
}
Example response (200 OK)
{
  "apiVersion": "2026-11-10",
  "events": [
    {
      "id": "visit.booked",
      "description": "A new booking: the first visit of a new plan or a one-time clean (once per booking, from the booking page, the schedule, an accepted estimate or the assistant)."
    },
    {
      "id": "visit.changed",
      "description": "A visit moved to another day or time, or its team, cleaners, length or price changed."
    },
    {
      "id": "visit.cancelled",
      "description": "A visit was cancelled or skipped."
    },
    {
      "id": "visit.completed",
      "description": "A visit was marked done (the last cleaner clocked out, or the office marked it done)."
    },
    {
      "id": "booking.requested",
      "description": "A booking from the booking page waits for approval (booking by request)."
    },
    {
      "id": "client.created",
      "description": "A client was added (by hand, from a booking or a won lead; imports are not sent)."
    },
    {
      "id": "lead.created",
      "description": "A new lead arrived (booking page, website quote form or the leads board)."
    },
    {
      "id": "payment.received",
      "description": "Money came in: a card charge on a visit, a cash, check or transfer payment, or a payment on an invoice."
    },
    {
      "id": "payment.failed",
      "description": "A card charge on a visit was declined."
    },
    {
      "id": "invoice.paid",
      "description": "An invoice was paid in full."
    },
    {
      "id": "review.received",
      "description": "A client rated a visit (1 to 5 stars, with their comment)."
    }
  ]
}

Get event payloads

GET /events/{event}

Returns up to three distinct recent real payloads, newest first, from stored deliveries. If none exist, returns one fictional sample. The array items have the same envelope as delivered webhooks.

Request fields

  • event (path, required): one of the event IDs in the table below. An unknown event returns 404.
  • No query or body fields.
Example request
{
  "method": "GET",
  "url": "https://maidful.co/api/v1/events/visit.booked",
  "headers": {
    "Authorization": "Bearer <API_KEY>"
  }
}
Example response (200 OK)
[
  {
    "id": "evt_sample",
    "type": "visit.booked",
    "createdAt": "2026-11-12T18:04:11.000Z",
    "apiVersion": "2026-11-10",
    "company": {
      "id": "co_sample",
      "name": "Sparkle & Sage Home Cleaning"
    },
    "data": {
      "id": "vs_sample",
      "status": "scheduled",
      "date": "2026-11-12",
      "startTime": "09:00",
      "endTime": "12:00",
      "durationMinutes": 180,
      "timezone": "America/Chicago",
      "serviceType": "standard",
      "firstVisit": true,
      "planId": "pl_sample",
      "client": {
        "id": "cl_sample",
        "name": "Jordan Rivera",
        "email": "jordan@example.com",
        "phone": "+15125550142"
      },
      "home": {
        "id": "pr_sample",
        "label": "Home",
        "line1": "2104 Sage Hollow Dr",
        "line2": null,
        "city": "Austin",
        "region": "TX",
        "postal": "78704",
        "country": "US",
        "bedrooms": 3,
        "bathrooms": 2
      },
      "team": {
        "id": "tm_sample",
        "name": "Team Coral"
      },
      "cleaners": [
        {
          "id": "st_sample1",
          "name": "Maria Lopez"
        },
        {
          "id": "st_sample2",
          "name": "Ana Torres"
        }
      ],
      "price": {
        "currency": "USD",
        "subtotalCents": 16500,
        "extrasCents": 2500,
        "taxCents": 0,
        "totalCents": 19000,
        "tipCents": 0
      },
      "payment": {
        "status": "none",
        "method": null,
        "amountCents": null,
        "paidAt": null
      },
      "rating": null,
      "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample"
    }
  }
]

Subscribe to an event

POST /hooks

Creates a signed REST-hook subscription. The same URL and event return the same subscription ID. There can be up to 25 endpoints per company. Retrieve or rotate the signing secret from the endpoint in Settings.

Request fields

  • event (string, required): a supported event ID.
  • hookUrl (string, required unless an alias is supplied): public HTTPS receiver URL, up to 2,000 characters. url and targetUrl are accepted aliases; precedence is url, hookUrl, targetUrl.
  • URLs cannot contain credentials or resolve to private, loopback or link-local networks. Redirects are not followed.
Example request
{
  "method": "POST",
  "url": "https://maidful.co/api/v1/hooks",
  "headers": {
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
  },
  "body": {
    "hookUrl": "https://example.com/webhooks/maidful",
    "event": "client.created"
  }
}
Example response (200 OK)
{
  "id": "hook_sample",
  "event": "client.created",
  "url": "https://example.com/webhooks/maidful"
}

List subscriptions

GET /hooks

Returns only the subscriptions created by the authenticated key, including status and creation timestamp.

Request fields

  • No path, query or body fields.
Example request
{
  "method": "GET",
  "url": "https://maidful.co/api/v1/hooks",
  "headers": {
    "Authorization": "Bearer <API_KEY>"
  }
}
Example response (200 OK)
{
  "hooks": [
    {
      "id": "hook_sample",
      "event": "client.created",
      "url": "https://example.com/webhooks/maidful",
      "status": "active",
      "createdAt": "2026-11-12T18:04:11.000Z"
    }
  ]
}

Remove a subscription

DELETE /hooks/{id}

Deletes a subscription owned by this key. Repeating the request, using an already removed ID or naming another key’s subscription returns ok without changing anything else.

Request fields

  • id (path, required): subscription ID, 1–128 letters, digits, underscores or hyphens.
  • No query or body fields.
Example request
{
  "method": "DELETE",
  "url": "https://maidful.co/api/v1/hooks/hook_sample",
  "headers": {
    "Authorization": "Bearer <API_KEY>"
  }
}
Example response (200 OK)
{
  "ok": true
}

Create a lead

POST /leads

Creates a lead using the app’s shared writer and emits lead.created. Returns the Lead data object directly. The source is zapier. No message is sent and no SMS consent is granted.

Request fields

  • name (string, required): 1–120 characters.
  • email (string, optional): valid email, up to 200 characters; trimmed and lowercased.
  • phone (string, optional): up to 40 characters; normalized to E.164. US and Canadian national numbers are accepted.
  • address (string, optional): up to 200 characters. postal (string, optional): up to 20 characters.
  • frequency (string, optional): weekly, biweekly, every3weeks, every4weeks, monthly or once.
  • note (string, optional): up to 2,000 characters.
  • tags (string array, optional): up to 10 tags, each 1–24 characters; defaults to an empty array.
  • Idempotency-Key (header, optional): 1–200 printable non-space ASCII characters. See Idempotency below.
Example request
{
  "method": "POST",
  "url": "https://maidful.co/api/v1/leads",
  "headers": {
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json",
    "Idempotency-Key": "submission-123"
  },
  "body": {
    "name": "Casey Morgan",
    "email": "casey@example.com",
    "phone": "+15125550199",
    "address": "88 Willow Bend",
    "postal": "78745"
  }
}
Example response (200 OK)
{
  "id": "ld_sample",
  "name": "Casey Morgan",
  "email": "casey@example.com",
  "phone": "+15125550199",
  "address": "88 Willow Bend",
  "postal": "78745",
  "source": "zapier",
  "stage": "new",
  "serviceType": null,
  "frequency": null,
  "quoteCents": null,
  "currency": "USD",
  "home": null,
  "createdAt": "2026-11-10T15:20:00.000Z",
  "url": "https://maidful.co/app/leads?lead=ld_sample"
}

Create a client

POST /clients

Creates an active client without a property or booking and emits client.created. Returns the Client data object directly. The source is zapier. No message is sent and no SMS consent is granted.

Request fields

  • firstName (string, required): 1–80 characters.
  • lastName (string, optional): up to 80 characters; defaults to an empty string.
  • email (string, optional): valid email, up to 200 characters; trimmed and lowercased.
  • phone (string, optional): up to 40 characters; normalized to E.164. US and Canadian national numbers are accepted.
  • language (string, optional): en or es; defaults to en.
  • companyName (string, optional): up to 120 characters. notes (string, optional): up to 4,000 characters.
  • tags (string array, optional): up to 10 tags, each 1–24 characters; defaults to an empty array.
  • Idempotency-Key (header, optional): 1–200 printable non-space ASCII characters. See Idempotency below.
Example request
{
  "method": "POST",
  "url": "https://maidful.co/api/v1/clients",
  "headers": {
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json",
    "Idempotency-Key": "submission-123"
  },
  "body": {
    "firstName": "Jordan",
    "lastName": "Rivera",
    "email": "jordan@example.com",
    "phone": "+15125550142",
    "tags": [
      "pets"
    ]
  }
}
Example response (200 OK)
{
  "id": "cl_sample",
  "firstName": "Jordan",
  "lastName": "Rivera",
  "name": "Jordan Rivera",
  "email": "jordan@example.com",
  "phone": "+15125550142",
  "language": "en",
  "status": "active",
  "tags": [
    "pets"
  ],
  "source": "zapier",
  "createdAt": "2026-11-10T15:20:00.000Z",
  "url": "https://maidful.co/app/clients/cl_sample"
}

Errors

Errors are JSON objects with an error code. Invalid request bodies also include an issues object describing validation errors.

HTTP statusMeaning
400Invalid fields, malformed subscription ID, invalid receiver URL, missing search criteria or invalid Idempotency-Key. Codes include invalid_input, invalid_search and invalid_idempotency_key.
401Missing, invalid or revoked API key, or the key’s owner is inactive. Codes include api_key_required, invalid_api_key, api_key_revoked and api_key_owner_inactive.
404Unknown event (unknown_event) or missing company (company_not_found).
409The endpoint limit was reached (too_many_endpoints), or an idempotency key was reused with different input (idempotency_key_reused).
429Too many requests (rate_limited). Wait until the next minute and retry with backoff.
500Unexpected server error (server_error). Retry later; reuse the same idempotency key for a creation request.
Example payload
{
  "error": "idempotency_key_reused"
}

Idempotency

Send Idempotency-Key with POST /leads and POST /clients. Repeating the same validated input with the same key, company and endpoint within 24 hours returns the original response. Different input with the same unexpired key returns 409. Creation and its saved response commit atomically, including concurrent requests.

After 24 hours a key can create a new record. Without the header, every request creates a record. In Zapier, map a unique upstream submission ID to Source submission ID. Without one, identical action input is intentionally deduplicated for 24 hours.

Subscribing the same URL and event is idempotent. For received webhooks, persist the event id (also sent as Idempotency-Key) and ignore events you have already processed. Retries and deliveries to different endpoints keep the same event id.

Webhook events

Maidful sends a POST with a JSON envelope containing id, type, createdAt, apiVersion, company and data. apiVersion changes only for breaking payload changes. Settings can send a ping or a fictional event sample. Imported clients do not emit client.created.

Payloads never include access codes, entry notes, card details, payment-provider IDs, portal links or sign-in tokens. Nullable fields can be null. Payment data has kind visit or invoice; the unrelated reference is null, and the client can also be null.

EventWhen it fires
visit.bookedA new booking (once per booking)
visit.changedMoved, reassigned, longer or shorter, new price
visit.cancelledCancelled or skipped
visit.completedMarked done or the last cleaner clocked out
booking.requestedA booking waits for your approval
client.createdBy hand, from a booking or a won lead
lead.createdBooking page, website form or the leads board
payment.receivedCard, cash, check, transfer or invoice payment
payment.failedA card charge on a visit was declined
invoice.paidPaid in full
review.receivedA client rated a visit
Delivery headers
{
  "Content-Type": "application/json",
  "User-Agent": "Maidful-Webhooks/1.0",
  "Maidful-Event": "visit.booked",
  "Maidful-Event-Id": "evt_sample",
  "Maidful-Delivery": "dlv_sample",
  "Maidful-Attempt": "1",
  "Idempotency-Key": "evt_sample",
  "Maidful-Signature": "t=1794506651,v1=<HMAC_SHA256_HEX>"
}

Payload examples

Expand an event to see its complete JSON payload.

Visit booked (visit.booked)
Example payload
{
  "id": "evt_sample",
  "type": "visit.booked",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "vs_sample",
    "status": "scheduled",
    "date": "2026-11-12",
    "startTime": "09:00",
    "endTime": "12:00",
    "durationMinutes": 180,
    "timezone": "America/Chicago",
    "serviceType": "standard",
    "firstVisit": true,
    "planId": "pl_sample",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera",
      "email": "jordan@example.com",
      "phone": "+15125550142"
    },
    "home": {
      "id": "pr_sample",
      "label": "Home",
      "line1": "2104 Sage Hollow Dr",
      "line2": null,
      "city": "Austin",
      "region": "TX",
      "postal": "78704",
      "country": "US",
      "bedrooms": 3,
      "bathrooms": 2
    },
    "team": {
      "id": "tm_sample",
      "name": "Team Coral"
    },
    "cleaners": [
      {
        "id": "st_sample1",
        "name": "Maria Lopez"
      },
      {
        "id": "st_sample2",
        "name": "Ana Torres"
      }
    ],
    "price": {
      "currency": "USD",
      "subtotalCents": 16500,
      "extrasCents": 2500,
      "taxCents": 0,
      "totalCents": 19000,
      "tipCents": 0
    },
    "payment": {
      "status": "none",
      "method": null,
      "amountCents": null,
      "paidAt": null
    },
    "rating": null,
    "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample"
  }
}
Visit changed (visit.changed)
Example payload
{
  "id": "evt_sample",
  "type": "visit.changed",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "vs_sample",
    "status": "scheduled",
    "date": "2026-11-13",
    "startTime": "09:00",
    "endTime": "12:00",
    "durationMinutes": 180,
    "timezone": "America/Chicago",
    "serviceType": "standard",
    "firstVisit": true,
    "planId": "pl_sample",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera",
      "email": "jordan@example.com",
      "phone": "+15125550142"
    },
    "home": {
      "id": "pr_sample",
      "label": "Home",
      "line1": "2104 Sage Hollow Dr",
      "line2": null,
      "city": "Austin",
      "region": "TX",
      "postal": "78704",
      "country": "US",
      "bedrooms": 3,
      "bathrooms": 2
    },
    "team": {
      "id": "tm_sample",
      "name": "Team Coral"
    },
    "cleaners": [
      {
        "id": "st_sample1",
        "name": "Maria Lopez"
      },
      {
        "id": "st_sample2",
        "name": "Ana Torres"
      }
    ],
    "price": {
      "currency": "USD",
      "subtotalCents": 16500,
      "extrasCents": 2500,
      "taxCents": 0,
      "totalCents": 19000,
      "tipCents": 0
    },
    "payment": {
      "status": "none",
      "method": null,
      "amountCents": null,
      "paidAt": null
    },
    "rating": null,
    "url": "https://maidful.co/app/schedule?date=2026-11-13&visit=vs_sample",
    "changed": [
      "date"
    ],
    "previous": {
      "date": "2026-11-12",
      "startTime": "09:00",
      "durationMinutes": 180,
      "status": "scheduled",
      "teamId": "tm_sample",
      "cleanerIds": [
        "st_sample1",
        "st_sample2"
      ],
      "totalCents": 19000
    }
  }
}
Visit cancelled (visit.cancelled)
Example payload
{
  "id": "evt_sample",
  "type": "visit.cancelled",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "vs_sample",
    "status": "cancelled",
    "date": "2026-11-12",
    "startTime": "09:00",
    "endTime": "12:00",
    "durationMinutes": 180,
    "timezone": "America/Chicago",
    "serviceType": "standard",
    "firstVisit": true,
    "planId": "pl_sample",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera",
      "email": "jordan@example.com",
      "phone": "+15125550142"
    },
    "home": {
      "id": "pr_sample",
      "label": "Home",
      "line1": "2104 Sage Hollow Dr",
      "line2": null,
      "city": "Austin",
      "region": "TX",
      "postal": "78704",
      "country": "US",
      "bedrooms": 3,
      "bathrooms": 2
    },
    "team": {
      "id": "tm_sample",
      "name": "Team Coral"
    },
    "cleaners": [
      {
        "id": "st_sample1",
        "name": "Maria Lopez"
      },
      {
        "id": "st_sample2",
        "name": "Ana Torres"
      }
    ],
    "price": {
      "currency": "USD",
      "subtotalCents": 16500,
      "extrasCents": 2500,
      "taxCents": 0,
      "totalCents": 19000,
      "tipCents": 0
    },
    "payment": {
      "status": "none",
      "method": null,
      "amountCents": null,
      "paidAt": null
    },
    "rating": null,
    "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample",
    "changed": [
      "status"
    ],
    "previous": {
      "date": "2026-11-12",
      "startTime": "09:00",
      "durationMinutes": 180,
      "status": "scheduled",
      "teamId": "tm_sample",
      "cleanerIds": [
        "st_sample1",
        "st_sample2"
      ],
      "totalCents": 19000
    }
  }
}
Visit done (visit.completed)
Example payload
{
  "id": "evt_sample",
  "type": "visit.completed",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "vs_sample",
    "status": "completed",
    "date": "2026-11-12",
    "startTime": "09:00",
    "endTime": "12:00",
    "durationMinutes": 180,
    "timezone": "America/Chicago",
    "serviceType": "standard",
    "firstVisit": true,
    "planId": "pl_sample",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera",
      "email": "jordan@example.com",
      "phone": "+15125550142"
    },
    "home": {
      "id": "pr_sample",
      "label": "Home",
      "line1": "2104 Sage Hollow Dr",
      "line2": null,
      "city": "Austin",
      "region": "TX",
      "postal": "78704",
      "country": "US",
      "bedrooms": 3,
      "bathrooms": 2
    },
    "team": {
      "id": "tm_sample",
      "name": "Team Coral"
    },
    "cleaners": [
      {
        "id": "st_sample1",
        "name": "Maria Lopez"
      },
      {
        "id": "st_sample2",
        "name": "Ana Torres"
      }
    ],
    "price": {
      "currency": "USD",
      "subtotalCents": 16500,
      "extrasCents": 2500,
      "taxCents": 0,
      "totalCents": 19000,
      "tipCents": 0
    },
    "payment": {
      "status": "paid",
      "method": "card",
      "amountCents": 19000,
      "paidAt": "2026-11-12T18:04:11.000Z"
    },
    "rating": null,
    "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample"
  }
}
Booking request (booking.requested)
Example payload
{
  "id": "evt_sample",
  "type": "booking.requested",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "requestId": "pl_sample",
    "clientName": "Jordan Rivera",
    "clientId": "cl_sample",
    "leadId": "ld_sample",
    "date": "2026-11-12",
    "startTime": "09:00",
    "url": "https://maidful.co/app/requests"
  }
}
Client added (client.created)
Example payload
{
  "id": "evt_sample",
  "type": "client.created",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "cl_sample",
    "firstName": "Jordan",
    "lastName": "Rivera",
    "name": "Jordan Rivera",
    "email": "jordan@example.com",
    "phone": "+15125550142",
    "language": "en",
    "status": "active",
    "tags": [
      "pets"
    ],
    "source": "google",
    "createdAt": "2026-11-10T15:20:00.000Z",
    "url": "https://maidful.co/app/clients/cl_sample"
  }
}
New lead (lead.created)
Example payload
{
  "id": "evt_sample",
  "type": "lead.created",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "ld_sample",
    "name": "Casey Morgan",
    "email": "casey@example.com",
    "phone": "+15125550199",
    "address": "88 Willow Bend",
    "postal": "78745",
    "source": "booking_page",
    "stage": "new",
    "serviceType": "deep",
    "frequency": "biweekly",
    "quoteCents": 24500,
    "currency": "USD",
    "home": {
      "bedrooms": 4,
      "bathrooms": 2.5,
      "sqft": 2400
    },
    "createdAt": "2026-11-10T15:20:00.000Z",
    "url": "https://maidful.co/app/leads?lead=ld_sample"
  }
}
Payment received (payment.received)
Example payload
{
  "id": "evt_sample",
  "type": "payment.received",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "kind": "visit",
    "amountCents": 19000,
    "currency": "USD",
    "method": "card",
    "at": "2026-11-12T18:04:11.000Z",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera"
    },
    "visit": {
      "id": "vs_sample",
      "date": "2026-11-12"
    },
    "invoice": null,
    "receiptNumber": null,
    "testMode": false
  }
}
Payment failed (payment.failed)
Example payload
{
  "id": "evt_sample",
  "type": "payment.failed",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "attempt": 1,
    "failureCode": "card_declined",
    "nextRetryAt": "2026-11-13T18:04:11.000Z",
    "visit": {
      "id": "vs_sample",
      "status": "completed",
      "date": "2026-11-12",
      "startTime": "09:00",
      "endTime": "12:00",
      "durationMinutes": 180,
      "timezone": "America/Chicago",
      "serviceType": "standard",
      "firstVisit": true,
      "planId": "pl_sample",
      "client": {
        "id": "cl_sample",
        "name": "Jordan Rivera",
        "email": "jordan@example.com",
        "phone": "+15125550142"
      },
      "home": {
        "id": "pr_sample",
        "label": "Home",
        "line1": "2104 Sage Hollow Dr",
        "line2": null,
        "city": "Austin",
        "region": "TX",
        "postal": "78704",
        "country": "US",
        "bedrooms": 3,
        "bathrooms": 2
      },
      "team": {
        "id": "tm_sample",
        "name": "Team Coral"
      },
      "cleaners": [
        {
          "id": "st_sample1",
          "name": "Maria Lopez"
        },
        {
          "id": "st_sample2",
          "name": "Ana Torres"
        }
      ],
      "price": {
        "currency": "USD",
        "subtotalCents": 16500,
        "extrasCents": 2500,
        "taxCents": 0,
        "totalCents": 19000,
        "tipCents": 0
      },
      "payment": {
        "status": "failed",
        "method": null,
        "amountCents": null,
        "paidAt": null
      },
      "rating": null,
      "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample"
    }
  }
}
Invoice paid (invoice.paid)
Example payload
{
  "id": "evt_sample",
  "type": "invoice.paid",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "id": "in_sample",
    "number": "INV-0042",
    "status": "paid",
    "client": {
      "id": "cl_sample",
      "name": "Jordan Rivera",
      "email": "jordan@example.com"
    },
    "currency": "USD",
    "totalCents": 38000,
    "paidCents": 38000,
    "balanceCents": 0,
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "paidAt": "2026-11-10T16:00:00.000Z",
    "url": "https://maidful.co/app/payments/invoices/in_sample"
  }
}
Rating received (review.received)
Example payload
{
  "id": "evt_sample",
  "type": "review.received",
  "createdAt": "2026-11-12T18:04:11.000Z",
  "apiVersion": "2026-11-10",
  "company": {
    "id": "co_sample",
    "name": "Sparkle & Sage Home Cleaning"
  },
  "data": {
    "stars": 5,
    "comment": "Spotless as always, thank you Maria and Ana!",
    "ratedAt": "2026-11-12T20:15:00.000Z",
    "visit": {
      "id": "vs_sample",
      "status": "completed",
      "date": "2026-11-12",
      "startTime": "09:00",
      "endTime": "12:00",
      "durationMinutes": 180,
      "timezone": "America/Chicago",
      "serviceType": "standard",
      "firstVisit": true,
      "planId": "pl_sample",
      "client": {
        "id": "cl_sample",
        "name": "Jordan Rivera",
        "email": "jordan@example.com",
        "phone": "+15125550142"
      },
      "home": {
        "id": "pr_sample",
        "label": "Home",
        "line1": "2104 Sage Hollow Dr",
        "line2": null,
        "city": "Austin",
        "region": "TX",
        "postal": "78704",
        "country": "US",
        "bedrooms": 3,
        "bathrooms": 2
      },
      "team": {
        "id": "tm_sample",
        "name": "Team Coral"
      },
      "cleaners": [
        {
          "id": "st_sample1",
          "name": "Maria Lopez"
        },
        {
          "id": "st_sample2",
          "name": "Ana Torres"
        }
      ],
      "price": {
        "currency": "USD",
        "subtotalCents": 16500,
        "extrasCents": 2500,
        "taxCents": 0,
        "totalCents": 19000,
        "tipCents": 0
      },
      "payment": {
        "status": "none",
        "method": null,
        "amountCents": null,
        "paidAt": null
      },
      "rating": {
        "stars": 5,
        "comment": "Spotless as always, thank you Maria and Ana!",
        "at": "2026-11-12T20:15:00.000Z"
      },
      "url": "https://maidful.co/app/schedule?date=2026-11-12&visit=vs_sample"
    }
  }
}

Signing and verification

Each endpoint has its own whsec_ signing secret. It is shown when the endpoint is added and can be revealed or rotated in Settings. The API key is not the signing secret. Verify Maidful-Signature before parsing or processing the body.

  1. Read t and all v1 values from Maidful-Signature: t=UNIX_SECONDS,v1=HEX_DIGEST.
  2. Compute HMAC-SHA256 with the endpoint secret over the timestamp, a dot and the exact raw request bytes. Do not reserialize parsed JSON.
  3. Reject timestamps more than 300 seconds from now and compare the expected digest with each v1 in constant time. Reject the request if none match.
Node.js verification example
import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyMaidful(header, rawBody, secret, now = Date.now()) {
  if (typeof header !== 'string') return false;
  const parts = header.split(',').map(part => part.trim().split('='));
  const timestamp = parts.find(([key]) => key === 't')?.[1];
  if (!timestamp || !/^\d+$/.test(timestamp)) return false;
  const t = Number(timestamp);
  if (!Number.isSafeInteger(t) || Math.abs(now / 1000 - t) > 300) return false;
  const expected = createHmac('sha256', secret)
    .update(timestamp + '.').update(rawBody).digest();
  return parts.some(([key, value]) => key === 'v1'
    && /^[a-f0-9]{64}$/i.test(value ?? '')
    && timingSafeEqual(Buffer.from(value, 'hex'), expected));
}

Delivery and retries

  • Return any 2xx response within 10 seconds. Redirects are not followed. Persist the event before responding, then process it asynchronously.
  • The first attempt runs immediately. Failures are retried after 1 minute, 4 minutes, 16 minutes, about 1 hour, 4 hours, 17 hours and 24 hours, with ±10% jitter. The retry worker runs every 15 minutes, so actual delivery may be later. There are up to eight attempts over about two days.
  • 410 Gone is never retried and switches off the endpoint. An endpoint with no success for three days and at least five consecutive failed attempts is switched off; owners receive a notification. Fix the receiver, test it and switch it back on.
  • Pending deliveries to removed or switched-off endpoints are cancelled. Tests sent from Settings are never retried and do not affect failure counts.
  • Delivery records are kept for 30 days. Settings shows each attempt, the receiver’s response and the payload, with Resend now for manual redelivery.

Use Maidful with Zapier

Create an API key as the company owner, accept the private invitation and connect Maidful in Zapier. Choose one of 11 instant triggers, Create Lead, Create Client, or Find Client with optional creation when no match exists.

The integration is private and available by invitation. Public listing is subject to Zapier approval.

Maidful

Take your evenings back.

Start a 7-day free trial. We'll move your clients and schedule over for free.