{"openapi":"3.1.0","info":{"title":"MoveBoard API","version":"1.0.0","description":"MoveBoard's REST API lets your own tools, an automation service or an assistant read and work your MoveBoard: leads and orders, customers, quotes, jobs, follow-ups, notes, calls and texts from another phone system, payments and users — and, with Read messages, your customer conversations.\n\n**Keys.** An admin makes a key in Settings › Integrations › API keys: its name, whether it may only read or also make changes, which areas it may use, and the MoveBoard user it acts as. The key is shown once. It never expires; revoke it there any time. Send it on every call as `Authorization: Bearer <key>`.\n\n**Read messages (messages:read).** Customer conversations — texts on your MoveBoard numbers, emails and portal messages (GET /texts, GET /messages, the message.received webhook) — need one more permission on the key: Read messages. No key has it at first, a new key included. An admin turns it on for one key in Settings › Integrations › API keys (it warns first) and can turn it off there any time. Without it those addresses answer 403 and no message webhook is sent. GET /me says whether the key has it (`key.read_messages`).\n\n**Who does it.** Every read and change is the chosen user's, with that user's permissions — exactly what they could do on the screens. Changes go through the same saves as the screens, so the order log records them (with \"via API key\" and the key's name after them) and your company's emails, texts, Workflows and notifications follow as they do for the office. Tip: make a user just for the key, with only the permissions it needs.\n\n**Limits.** 60 calls a minute and 150,000 a month per key. Every answer says where you are: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (the minute) and X-Monthly-Limit, X-Monthly-Remaining, X-Monthly-Reset (the month, UTC). Over a limit: 429 with Retry-After in seconds. There is no charge for API calls.\n\n**Format.** JSON in and out. Days are YYYY-MM-DD; times are ISO 8601 (answers in UTC); arrival windows are HH:MM on the branch's own clock. Ids are numbers that never change. Lists come newest first in pages: pass `next_cursor` back as `cursor` until `has_more` is false.\n\n**Errors.** `{ \"error\": { \"code\", \"message\" } }` with 400 (the request is not right), 401 (no key or not valid), 403 (the key or its user may not), 404 (not there, or the user may not see it), 405, 409 (already there), 422 (a MoveBoard rule said no — the message is the one the office would see), 429 (limit), 503 (try again shortly).\n\n**Webhooks.** To hear about new leads the moment they arrive, see [New-lead webhook](/help/integrations/new-lead-webhook). For every event (orders, jobs, payments, tasks, notes, customers' messages), subscribe with POST /webhooks or add an endpoint in Settings › Integrations › Webhooks: [Webhooks](/help/integrations/webhooks). message.received (a customer's text, email or portal message, `data.channel` sms, email or portal; the object is one item of GET /texts or GET /messages) needs Read messages and must be named: `[\"*\"]` (every event) does not include it."},"servers":[{"url":"https://app2.elromco.com/api/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Key"},{"name":"Leads and orders"},{"name":"Quotes"},{"name":"Jobs"},{"name":"Follow-ups"},{"name":"Notes"},{"name":"Calls and texts"},{"name":"Messages"},{"name":"Customers"},{"name":"Payments"},{"name":"Users"},{"name":"Webhooks"}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"Who am I","description":"The key, its company and branch, the user it acts as, and this month's use. Good for testing a key.","tags":["Key"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders":{"get":{"operationId":"listOrders","summary":"Find leads and orders","description":"Newest first. Every filter is optional and they combine. Archived orders only when asked for by status and the key's user may see archived.\n\nKey needs: **Leads and orders**.","tags":["Leads and orders"],"parameters":[{"name":"phone","in":"query","required":false,"description":"The customer's main or other phone (10 digits)","schema":{"type":"string"}},{"name":"email","in":"query","required":false,"description":"The customer's email, exact","schema":{"type":"string"}},{"name":"name","in":"query","required":false,"description":"Part of the customer's name","schema":{"type":"string"}},{"name":"number","in":"query","required":false,"description":"The order number","schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"description":"Your system's id (Secondary ID)","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Status codes, comma separated, e.g. NEW,FOLLOW_UP","schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"description":"A customer's id","schema":{"type":"integer"}},{"name":"move_date_from","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"move_date_to","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"created_since","in":"query","required":false,"description":"ISO 8601 time","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 time: what changed since your last sync","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 (default 25)","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createOrder","summary":"Create a lead","description":"Lands as a New order, exactly like a lead from a lead provider: the customer is matched by email inside the branch (else made), the lead source by name, your assignment rules pick the salesperson (unless assigned_to says), and the New lead notification and the new-lead webhook go out. The same lead sent twice (same email, phone, move date and ZIP codes) is refused with 409. Stops between the pickup and the drop-off go in `stops`, in order. A size named in size.description must be one of your move sizes (GET /move-sizes), else 422.\n\nKey needs: **Leads and orders**, read and change.","tags":["Leads and orders"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOrder"},"example":{"customer":{"first_name":"Dana","last_name":"Reyes","email":"dana@example.com","phone":"5125550142"},"move_date":"2026-12-05","move_type":"RESIDENTIAL","size":{"lead_number":3},"origin":{"street":"100 Congress Ave","city":"Austin","state":"TX","zip":"78701"},"destination":{"zip":"78745"},"notes":"Piano on the 2nd floor","source":"Website","external_id":"SM-48213"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}":{"get":{"operationId":"getOrder","summary":"Get an order","description":"With its move days and stops.\n\nKey needs: **Leads and orders**.","tags":["Leads and orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateOrder","summary":"Change an order","description":"Each change goes through the same save the order window uses, as the key's user and with their permissions: details first, then the move date, window and size, then the salesperson, then the closer, then the status. The closer (`closer`: a user id, or null to clear the pick) is saved as the order's Closer list saves it: the key's user needs the Assign leads permission, the person must be one of the branch's active office staff, and the branch must track the closer (Settings › Sales & orders › Lead assignment), else 422. The status changes as the Orders list's Change status does: your automatic messages and Workflows for that status go out; archiving an order with payroll on it is refused. If one is refused, the answer says which, and `applied` lists those already made.\n\nKey needs: **Leads and orders**, read and change.","tags":["Leads and orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderChanges"},"example":{"status":"FOLLOW_UP","assigned_to":412,"move_date":"2026-12-06"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/quote":{"get":{"operationId":"getQuote","summary":"Get the quote","description":"Priced exactly as the order window prices it: each move day's crew, trucks, rates, hours, lines and total, the order's total, paid so far and valuation.\n\nKey needs: **Quotes**.","tags":["Quotes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateQuote","summary":"Change the quote's inputs","description":"Crew, trucks, labor and travel rate, labor hours, on one move day (job_id; default the first). Hours switch the calculator off for the order, as typing them on the screen does. Answers with the quote priced again.\n\nKey needs: **Quotes**, read and change.","tags":["Quotes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteChanges"},"example":{"crew":3,"trucks":1,"labor_rate":149}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/jobs":{"get":{"operationId":"listOrderJobs","summary":"An order's move days","description":"Key needs: **Jobs**.","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/tasks":{"get":{"operationId":"listOrderTasks","summary":"An order's follow-ups","description":"Key needs: **Follow-ups**.","tags":["Follow-ups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"open (default), completed or all","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createTask","summary":"Add a follow-up","description":"On the order's Tasks, for the key's user unless assigned_to names someone (that needs the user's permission to make tasks for others). With a due time it reminds as the office's own tasks do.\n\nKey needs: **Follow-ups**, read and change.","tags":["Follow-ups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTask"},"example":{"title":"Call back about the piano","due_at":"2026-11-17T15:00:00-06:00","assigned_to":412}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/notes":{"get":{"operationId":"listNotes","summary":"An order's notes","description":"Key needs: **Notes**.","tags":["Notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"audience","in":"query","required":false,"description":"office, crew, dispatch or customer (comma separated)","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createNote","summary":"Add a note","description":"audience [\"crew\"] makes a crew-only note: the foreman reads it in the Movers App, the customer never sees it.\n\nKey needs: **Notes**, read and change.","tags":["Notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewNote"},"example":{"content":"Gate code 4411. Park on the street.","audience":["crew"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/calls":{"get":{"operationId":"listOrderCalls","summary":"An order's calls and logged texts","description":"Key needs: **Calls and texts**.","tags":["Calls and texts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCalls"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/payments":{"get":{"operationId":"listOrderPayments","summary":"An order's payments","description":"Key needs: **Payments**.","tags":["Payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tasks/{id}/complete":{"post":{"operationId":"completeTask","summary":"Complete a follow-up","description":"Key needs: **Follow-ups**, read and change.","tags":["Follow-ups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs":{"get":{"operationId":"listJobs","summary":"Jobs by date","description":"Move days of booked, reserved and completed orders (or the order statuses you ask for), with their crew and trucks.\n\nKey needs: **Jobs**.","tags":["Jobs"],"parameters":[{"name":"date_from","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"order_status","in":"query","required":false,"description":"Status codes, comma separated (default BOOKED,RESERVED,COMPLETED)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 (default 25)","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/{id}":{"get":{"operationId":"getJob","summary":"Get a job","description":"Key needs: **Jobs**.","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calls":{"post":{"operationId":"logCall","summary":"Log a call from your phone system","description":"Shows on the customer's order like MoveBoard's own phone calls (\"Inbound call from … — ended (2m 36s)\") with your phone system's name after it, and on the Calls page. The summary and the recording link go in an office note beside it. The order is the one you name, else the newest order with the customer's number that the key's user may see; none: the call waits on the Calls page for the office to attach it.\n\nKey needs: **Calls and texts**, read and change.","tags":["Calls and texts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCall"},"example":{"direction":"inbound","from":"+15125550142","to":"+15125550100","started_at":"2026-11-16T14:05:00Z","duration_seconds":156,"summary":"Asked to move the date to Dec 6.","recording_url":"https://example.com/rec/123.mp3","source":"CloudPhone","external_id":"call-98123"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallLogged"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/texts":{"post":{"operationId":"logText","summary":"Log a text from your phone system","description":"Kept on the customer's order where the office logs things that happened elsewhere, with the words and your phone system's name. Never sent from MoveBoard. No order with that number: 404.\n\nKey needs: **Calls and texts**, read and change.","tags":["Calls and texts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewText"},"example":{"direction":"inbound","from":"+15125550142","to":"+15125550100","body":"Can we start at 9 instead?","sent_at":"2026-11-16T14:20:00Z","source":"CloudPhone","external_id":"sms-55102"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallLogged"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listTexts","summary":"Texts in and out","description":"Every text sent or received on your company's MoveBoard texting numbers, newest first, with the order and the customer it is on. Office notices MoveBoard texts to your staff are not included, and a text from a number that matches no order, customer account or storage tenant is never filed, so it is not here either. A text that is only an opt-out word (STOP, UNSUBSCRIBE…) is still a message: it is here, with `keyword: \"stop\"` (an opt-in word such as START: `\"start\"`). Texts logged with POST /texts from another phone system are not here (they are notes on the order: GET /orders/{id}/calls). A key acting as a user who is not an admin sees the texts on the orders that user can open.\n\nKey needs: **Read messages**.","tags":["Messages"],"parameters":[{"name":"order_id","in":"query","required":false,"description":"One order's texts","schema":{"type":"integer"}},{"name":"customer_id","in":"query","required":false,"description":"One customer's texts","schema":{"type":"integer"}},{"name":"phone","in":"query","required":false,"description":"The customer's (or your) number, at least 10 digits; looks back 90 days unless date_from is given","schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"description":"inbound or outbound","schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"description":"YYYY-MM-DD on the branch's clock, or an ISO 8601 time","schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"description":"YYYY-MM-DD on the branch's clock (the whole day), or an ISO 8601 time","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 (default 25)","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Text"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/messages":{"get":{"operationId":"listMessages","summary":"Emails and portal messages","description":"The rest of the order's Messages: emails sent to customers and the customers' emails your connected mailboxes filed, and messages in the customer's portal (orders, customer accounts, storage), newest first. `body` is plain text; `body_html` is an email's HTML. Files are listed by name. MoveBoard's notices to your office are not included. A key acting as a user who is not an admin sees the messages on the orders that user can open.\n\nKey needs: **Read messages**.","tags":["Messages"],"parameters":[{"name":"channel","in":"query","required":false,"description":"email or portal (comma separated; default both)","schema":{"type":"string"}},{"name":"order_id","in":"query","required":false,"description":"One order's messages","schema":{"type":"integer"}},{"name":"customer_id","in":"query","required":false,"description":"One customer's messages","schema":{"type":"integer"}},{"name":"direction","in":"query","required":false,"description":"inbound or outbound","schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"description":"YYYY-MM-DD on the branch's clock, or an ISO 8601 time","schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"description":"YYYY-MM-DD on the branch's clock (the whole day), or an ISO 8601 time","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 25 (default 10): an email carries its full HTML","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers":{"get":{"operationId":"listCustomers","summary":"Find customers","description":"Key needs: **Customers**.","tags":["Customers"],"parameters":[{"name":"email","in":"query","required":false,"description":"Exact","schema":{"type":"string"}},{"name":"phone","in":"query","required":false,"description":"Main or other phone (10 digits)","schema":{"type":"string"}},{"name":"name","in":"query","required":false,"description":"Part of the name","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 (default 25)","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createCustomer","summary":"Find or create a customer","description":"Matched the way a new order matches a customer: by email inside the branch, or by phone when no email is given. Found: 200 with matched true. Else a new customer with no order yet (201).\n\nKey needs: **Customers**, read and change.","tags":["Customers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCustomer"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers/{id}":{"get":{"operationId":"getCustomer","summary":"Get a customer","description":"Key needs: **Customers**.","tags":["Customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateCustomer","summary":"Change a customer","description":"Name, email, phone — through the order window's customer save on their newest order (the order log says so). An email another customer signs in with is refused.\n\nKey needs: **Customers**, read and change.","tags":["Customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCustomer"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payments":{"get":{"operationId":"listPayments","summary":"Payments","description":"Read only. The company's payments need the key's user to see Reports › Payments collected; one order's payments (order_id) need only the order.\n\nKey needs: **Payments**.","tags":["Payments"],"parameters":[{"name":"date_from","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"order_id","in":"query","required":false,"description":"One order's payments","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 (default 25)","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payments/{id}":{"get":{"operationId":"getPayment","summary":"Get a payment","description":"Key needs: **Payments**.","tags":["Payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/users":{"get":{"operationId":"listUsers","summary":"Users (for assigning)","description":"The office people an order or a follow-up can be given to, with their positions.\n\nKey needs: **Users**.","tags":["Users"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/statuses":{"get":{"operationId":"listStatuses","summary":"Order statuses","description":"MoveBoard's status codes with the words the office sees.","tags":["Leads and orders"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Status"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/move-sizes":{"get":{"operationId":"listMoveSizes","summary":"Move sizes","description":"The branch's move sizes and their Lead # (size.lead_number on POST /orders).\n\nKey needs: **Leads and orders**.","tags":["Leads and orders"],"parameters":[{"name":"branch_id","in":"query","required":false,"description":"One of the key user's branches (default the key's)","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MoveSize"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events":{"get":{"operationId":"listEvents","summary":"Recent events of a type","description":"Newest first, exactly as they were sent. With none of that type yet (nothing subscribed), events are made from your newest real records, each with a stable id — an automation service's samples. Only the ones the key's user may read: an admin, or a user with the permissions for that event (orders: Can see unassigned orders and Can see other user's orders; payments: Can see Payments Collected Report).\n\nKey needs: **Webhooks**.","tags":["Webhooks"],"parameters":[{"name":"type","in":"query","required":false,"description":"The event type, e.g. order.status_changed","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 10 (default 3)","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"operationId":"listWebhooks","summary":"Subscriptions","description":"The subscriptions API keys made in the key user's branches (a key whose user is not an admin: only its own).\n\nKey needs: **Webhooks**.","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Subscription"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"subscribeWebhook","summary":"Subscribe an address to events","description":"For automation services: one subscription per automation, up to 100 per branch (apart from the 10 an admin adds on Settings › Integrations › Webhooks, where these show as added by an app). Events are signed and retried as every webhook is (the event list and the payload are under Webhooks below); an address that answers 410 is removed. The key's user needs the permissions for every event asked (an admin has them all): orders, jobs, follow-ups, notes and customers — Can see unassigned orders and Can see other user's orders; payments — Can see Payments Collected Report. message.received needs the key's Read messages and must be named (\"*\" does not include it). Each delivery checks them again with the one object; a user who loses one stops receiving it (the delivery log says why).\n\nKey needs: **Webhooks**, read and change.","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhook"},"example":{"url":"https://hooks.example.com/moveboard/123","events":["order.status_changed"],"description":"Automation"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}}},"400":{"description":"The request is not right; the message says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{id}":{"delete":{"operationId":"unsubscribeWebhook","summary":"Unsubscribe","description":"Removes a subscription an API key made (a key whose user is not an admin: only its own). Already removed (or never there): 404.\n\nKey needs: **Webhooks**, read and change.","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"removed":{"type":"boolean"}}}}}},"401":{"description":"No key, or not a valid one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or its user may not do this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not there, or the key's user may not see it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A MoveBoard rule said no (the office's own words)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the key's limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"lead.created":{"post":{"summary":"A new lead comes in (website, lead provider, AI receptionist or the office)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"lead.created"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["channel","object"],"properties":{"channel":{"type":"string","enum":["website","lead_provider","ai_receptionist","office"]},"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"customer.created":{"post":{"summary":"A new customer is made","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"customer.created"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Customer"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"order.updated":{"post":{"summary":"Anything on an order changes (details, dates, prices, addresses, status, payments)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"order.updated"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"order.status_changed":{"post":{"summary":"An order's status changes","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"order.status_changed"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["from","to","object"],"properties":{"from":{"type":["string","null"]},"to":{"type":"string"},"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"order.assigned":{"post":{"summary":"An order is assigned to a salesperson","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"order.assigned"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"order.booked":{"post":{"summary":"An order is booked","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"order.booked"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["from","object"],"properties":{"from":{"type":"string"},"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"order.cancelled":{"post":{"summary":"An order is canceled","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"order.cancelled"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["from","object"],"properties":{"from":{"type":"string"},"object":{"$ref":"#/components/schemas/Order"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"job.scheduled":{"post":{"summary":"A job is put on the schedule (each day of a booked order)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"job.scheduled"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Job"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"job.rescheduled":{"post":{"summary":"A booked job's moving date changes","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"job.rescheduled"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Job"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"job.crew_assigned":{"post":{"summary":"A crew is assigned to a job on Dispatch","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"job.crew_assigned"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Job"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"job.status_changed":{"post":{"summary":"A job's status changes (en route, arrived, loading … completed)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"job.status_changed"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["from","to","object"],"properties":{"from":{"type":["string","null"]},"to":{"type":"string"},"object":{"$ref":"#/components/schemas/Job"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"job.completed":{"post":{"summary":"A job is completed","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"job.completed"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Job"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"payment.received":{"post":{"summary":"A payment is taken (deposit, card, cash, cheque, invoice)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"payment.received"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Payment"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"payment.refunded":{"post":{"summary":"A payment is refunded","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"payment.refunded"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Payment"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"payment.failed":{"post":{"summary":"A card charge fails (declined, or not charged)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"payment.failed"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["order_id","object"],"properties":{"order_id":{"type":"integer"},"object":{"$ref":"#/components/schemas/PaymentAttempt"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"task.created":{"post":{"summary":"A task is made","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"task.created"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Task"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"task.completed":{"post":{"summary":"A task is completed","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"task.completed"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Task"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"note.created":{"post":{"summary":"A note is written (office, crew or customer)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"note.created"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/Note"}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}},"message.received":{"post":{"summary":"A customer sends a text, an email or a portal message (only while an API key has Read messages; not part of All events)","parameters":[{"in":"header","name":"X-Webhook-Event","required":true,"schema":{"type":"string"},"description":"The event type"},{"in":"header","name":"X-Webhook-Event-Id","required":true,"schema":{"type":"string"},"description":"The event id: the same on every retry and resend, on every endpoint. Dedupe on it"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"},"description":"The same value as X-Webhook-Event-Id"},{"in":"header","name":"X-Webhook-Delivery","required":true,"schema":{"type":"string"},"description":"This endpoint's delivery: the same on its retries, new for a resend"},{"in":"header","name":"X-Webhook-Timestamp","required":true,"schema":{"type":"string"},"description":"Unix seconds when this try was signed"},{"in":"header","name":"X-Webhook-Signature","required":true,"schema":{"type":"string"},"description":"v1= + hex HMAC-SHA256(endpoint secret, timestamp + '.' + raw body)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","api_version","occurred_at","company_id","branch_id","test","data"],"properties":{"id":{"type":"string","description":"the event id"},"type":{"const":"message.received"},"api_version":{"type":"string"},"occurred_at":{"type":"string","description":"UTC, when it happened"},"company_id":{"type":"integer"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test"},"data":{"type":"object","required":["channel","object"],"properties":{"channel":{"type":"string","enum":["sms","email","portal"]},"object":{"oneOf":[{"$ref":"#/components/schemas/Text"},{"$ref":"#/components/schemas/Message"}]}}}}}}}},"responses":{"2XX":{"description":"Delivered. Anything else (or no answer in 10 s) is tried again 1, 5, 15 and 40 minutes later; 410 switches the endpoint off"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Your MoveBoard API key (mbk_…)"}},"schemas":{"Order":{"type":"object","properties":{"id":{"type":"integer","description":"MoveBoard's id of the order (stable)"},"number":{"type":["string","null"],"description":"The order number the office sees"},"external_id":{"type":["string","null"],"description":"Another system's id for the order (MoveBoard's Secondary ID; imported orders keep their old number here)"},"status":{"type":["string","null"],"description":"MoveBoard's status code: NEW, FOLLOW_UP, CAN_BOOK_ONLINE, RESERVED, BOOKED, COMPLETED, CANCELLED, …"},"branch_id":{"type":["integer","null"]},"customer":{"type":"object","properties":{"id":{"type":["integer","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"other_phone":{"type":["string","null"]}}},"move_date":{"type":["string","null"],"format":"date","description":"YYYY-MM-DD"},"move_type":{"type":["string","null"]},"size":{"type":"object","properties":{"description":{"type":["string","null"]},"cu_ft":{"type":["number","null"]}}},"crew":{"type":["integer","null"]},"trucks":{"type":["integer","null"]},"estimate":{"type":"object","properties":{"min":{"type":["number","null"]},"max":{"type":["number","null"]}}},"paid":{"type":"number"},"assigned_to":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}}},"closer":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}},"description":"Who closed the booking, where the order's branch tracks the closer (Settings › Sales & orders › Lead assignment › Track the closer on bookings): the person picked as Closer, else the staff member who booked it. null when nobody has (a booking the customer made online has no closer until one is set), and always null in a branch that does not track the closer."},"lead_source":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"updated_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"booked_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"status_changed_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"days":{"type":"array","items":{"$ref":"#/components/schemas/Day"},"description":"GET /orders/{id} only: the move days and their stops"}}},"Customer":{"type":"object","properties":{"id":{"type":"integer"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"other_phone":{"type":["string","null"]},"branch_id":{"type":["integer","null"]},"account_id":{"type":["integer","null"]},"orders":{"type":"integer"},"created_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"updated_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"matched":{"type":"boolean","description":"POST /customers only: true when an existing customer was found"}}},"Job":{"type":"object","properties":{"id":{"type":"integer","description":"The move day's id (also the quote's job_id)"},"order_id":{"type":"integer"},"order_number":{"type":["string","null"]},"customer":{"$ref":"#/components/schemas/OrderCustomer"},"order_status":{"type":["string","null"]},"branch_id":{"type":["integer","null"]},"date":{"type":["string","null"],"format":"date","description":"YYYY-MM-DD"},"service":{"type":["string","null"]},"arrival_window":{"type":"object","properties":{"from":{"type":["string","null"],"description":"HH:MM on the branch's clock"},"to":{"type":["string","null"]}}},"crew_arrives_at":{"type":["string","null"]},"status":{"type":["string","null"],"description":"The job's own status once dispatched"},"crew_needed":{"type":["integer","null"]},"trucks_needed":{"type":["integer","null"]},"crew":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":["integer","null"]},"name":{"type":["string","null"]},"foreman":{"type":"boolean"},"driver":{"type":"boolean"},"status":{"type":["string","null"]}}}},"trucks":{"type":"array","items":{"type":"string"}},"worked_seconds":{"type":"integer","description":"GET /jobs/{id} only"}}},"Payment":{"type":"object","properties":{"id":{"type":"integer"},"order_id":{"type":["integer","null"]},"order_number":{"type":["string","null"]},"customer":{"$ref":"#/components/schemas/OrderCustomer"},"date":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"amount":{"type":["number","null"]},"kind":{"type":["string","null"],"description":"e.g. DEPOSIT, PAYMENT"},"status":{"type":["string","null"]},"method":{"type":["string","null"],"description":"CREDIT_CARD, CASH, CHECK, CUSTOM, …"},"description":{"type":["string","null"]},"card":{"type":["object","null"],"properties":{"last4":{"type":"string"},"brand":{"type":["string","null"]}}}}},"PaymentAttempt":{"type":"object","required":["id","order_id","order_number","amount","status","message","created_at","customer"],"properties":{"id":{"type":"integer"},"order_id":{"type":["integer","null"]},"order_number":{"type":["string","null"]},"amount":{"type":["number","null"]},"status":{"type":"string","enum":["declined","not_charged"]},"message":{"type":["string","null"]},"created_at":{"type":["string","null"],"description":"ISO-8601 UTC"},"customer":{"type":["object","null"],"description":"the order's customer","properties":{"id":{"type":["integer","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]}}}}},"Task":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/OrderCustomer","description":"The order's customer, when the follow-up is about an order"},"id":{"type":"integer"},"title":{"type":"string"},"notes":{"type":["string","null"]},"due_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"status":{"type":"string","enum":["open","completed"]},"priority":{"type":"string"},"kind":{"type":"string"},"assigned_to":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}}},"order_id":{"type":["integer","null"]},"completed_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"created_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"created_by":{"type":["string","null"]}}},"Note":{"type":"object","properties":{"order_id":{"type":["integer","null"]},"customer":{"$ref":"#/components/schemas/OrderCustomer"},"id":{"type":"integer"},"content":{"type":"string"},"audience":{"type":"array","items":{"type":"string","enum":["office","crew","dispatch","customer"]}},"created_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"updated_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"created_by":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}}}}},"Text":{"type":"object","required":["id","channel","direction","body","from","to","sent_at","status","keyword","order_id","order_number","customer_id","customer_name","account_id","storage_tenant_id","sent_by","automatic","attachments"],"properties":{"id":{"type":"integer"},"channel":{"type":"string","enum":["sms"]},"direction":{"type":"string","enum":["inbound","outbound"]},"body":{"type":"string"},"from":{"type":["string","null"],"description":"the number as stored (E.164)"},"to":{"type":["string","null"],"description":"the number as stored (E.164)"},"sent_at":{"type":["string","null"],"description":"ISO-8601 UTC: when it was sent (outbound) or received (inbound)"},"status":{"type":["string","null"],"description":"RECEIVED for an inbound text; QUEUED, SENT, DELIVERED, UNDELIVERED or FAILED for an outbound one"},"keyword":{"type":["string","null"],"enum":["stop","start",null],"description":"inbound only: stop when the whole text is an opt-out word (STOP, UNSUBSCRIBE, CANCEL…: the number is opted out), start for an opt-in word (START, YES, UNSTOP…); otherwise null"},"order_id":{"type":["integer","null"],"description":"the order it is on"},"order_number":{"type":["string","null"]},"customer_id":{"type":["integer","null"]},"customer_name":{"type":["string","null"]},"account_id":{"type":["integer","null"],"description":"a customer account's conversation"},"storage_tenant_id":{"type":["integer","null"],"description":"a storage tenant's conversation"},"sent_by":{"type":["object","null"],"description":"outbound: the office person who sent it (id), or the name an automation or the AI receptionist sent it under (id null); null for inbound and for automatic messages","properties":{"id":{"type":["integer","null"]},"name":{"type":["string","null"]}}},"automatic":{"type":"boolean","description":"sent by an automation (a Workflow, a reminder)"},"attachments":{"type":"array","description":"the files it carried: names only","items":{"type":"object","required":["name","content_type"],"properties":{"name":{"type":"string"},"content_type":{"type":["string","null"]}}}}}},"Message":{"type":"object","required":["id","channel","direction","subject","body","body_html","from","to","cc","sent_at","order_id","order_number","customer_id","customer_name","account_id","storage_tenant_id","sent_by","automatic","attachments"],"properties":{"id":{"type":"integer"},"channel":{"type":"string","enum":["email","portal"]},"direction":{"type":"string","enum":["inbound","outbound"]},"subject":{"type":["string","null"],"description":"email only"},"body":{"type":"string","description":"plain text (an email's words taken from its HTML)"},"body_html":{"type":["string","null"],"description":"email only: the HTML as sent or received"},"from":{"type":["string","null"],"description":"email only"},"to":{"type":["string","null"],"description":"email only (comma separated)"},"cc":{"type":["string","null"],"description":"email only"},"sent_at":{"type":["string","null"],"description":"ISO-8601 UTC: when it was sent or received"},"order_id":{"type":["integer","null"],"description":"the order it is on"},"order_number":{"type":["string","null"]},"customer_id":{"type":["integer","null"]},"customer_name":{"type":["string","null"]},"account_id":{"type":["integer","null"],"description":"a customer account's conversation"},"storage_tenant_id":{"type":["integer","null"],"description":"a storage tenant's conversation"},"sent_by":{"type":["object","null"],"description":"outbound: the office person who sent it (id), or the name an automation or the AI receptionist sent it under (id null); null for inbound and for automatic messages","properties":{"id":{"type":["integer","null"]},"name":{"type":["string","null"]}}},"automatic":{"type":"boolean","description":"sent by an automation"},"attachments":{"type":"array","description":"the files it carried: names only","items":{"type":"object","required":["name","content_type"],"properties":{"name":{"type":"string"},"content_type":{"type":["string","null"]}}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","forbidden","not_found","method_not_allowed","conflict","refused","rate_limited","unavailable"]},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"Me":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"scope":{"type":"string","enum":["read","write"]},"areas":{"type":"array","items":{"type":"string"}},"read_messages":{"type":"boolean","description":"Read messages (messages:read): the key may read customer conversations (GET /texts, GET /messages, message.received)"}}},"company":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}}},"branch":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}}},"branches":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"description":"The branches the key's user works in (POST /orders takes branch_id)"},"branch_id":{"type":"integer"},"acts_as":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"admin":{"type":"boolean"}}},"limits":{"type":"object","properties":{"per_minute":{"type":"integer"},"per_month":{"type":"integer"},"used_this_month":{"type":"integer"}}}}},"Stop":{"type":"object","properties":{"type":{"type":"string","description":"pickup, dropoff, or another kind of stop"},"address":{"type":["string","null"]},"street":{"type":["string","null"]},"unit":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"zip":{"type":["string","null"]},"floor":{"type":["integer","null"]}}},"Day":{"type":"object","properties":{"job_id":{"type":"integer"},"date":{"type":["string","null"],"format":"date","description":"YYYY-MM-DD"},"service":{"type":["string","null"]},"arrival_window":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}}},"crew":{"type":["integer","null"]},"trucks":{"type":["integer","null"]},"stops":{"type":"array","items":{"$ref":"#/components/schemas/Stop"}}}},"QuoteLine":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"min":{"type":["number","null"]},"max":{"type":["number","null"]}}},"Quote":{"type":"object","properties":{"order_id":{"type":"integer"},"estimate_type":{"type":["string","null"],"description":"NON_BINDING, BINDING or FLAT_RATE"},"binding":{"type":["boolean","null"]},"days":{"type":"array","items":{"type":"object","properties":{"job_id":{"type":"integer"},"date":{"type":["string","null"],"format":"date","description":"YYYY-MM-DD"},"service":{"type":["string","null"]},"estimate_type":{"type":["string","null"]},"crew":{"type":"integer"},"trucks":{"type":"integer"},"crew_typed":{"type":"boolean"},"trucks_typed":{"type":"boolean"},"labor_rate":{"type":["number","null"]},"travel_rate":{"type":["number","null"]},"labor_hours":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}}},"travel_hours":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/QuoteLine"}},"discount":{"type":["object","null"],"properties":{"type":{"type":"string"},"value":{"type":["number","null"]}}},"total":{"type":"object","properties":{"min":{"type":["number","null"]},"max":{"type":["number","null"]}}}}}},"total":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}}},"paid":{"type":"number"},"valuation":{"type":["object","null"],"properties":{"type":{"type":["string","null"]},"amount":{"type":["number","null"]},"deductible":{"type":["number","null"]},"cost":{"type":["number","null"]}}}}},"User":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"positions":{"type":"array","items":{"type":"string"}}}},"OrderCustomer":{"type":"object","properties":{"id":{"type":["integer","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]}}},"Status":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"}}},"MoveSize":{"type":"object","properties":{"lead_number":{"type":"integer","description":"What POST /orders takes as size.lead_number"},"name":{"type":"string"},"move_type":{"type":["string","null"]},"kind":{"type":["string","null"]},"cu_ft":{"type":["number","null"]},"active":{"type":"boolean"}}},"Event":{"type":"object","properties":{"id":{"type":"string","description":"The event's own id (unique per event)"},"type":{"type":"string","description":"e.g. lead.created, order.status_changed, order.booked, job.completed, payment.received, task.created, customer.created, note.created, message.received"},"occurred_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"company_id":{"type":"integer"},"api_version":{"type":"string","description":"v1"},"branch_id":{"type":"integer"},"test":{"type":"boolean","description":"true for Send test on the Webhooks page"},"data":{"type":"object","description":"The event's facts (e.g. from, to, channel) and `object`: the order, job, payment, task, note, customer, text or message exactly as this API answers it"}}},"NewWebhook":{"type":"object","properties":{"url":{"type":"string","description":"https address that receives the events"},"events":{"type":"array","items":{"type":"string"},"description":"Event names, or [\"*\"] for every event"},"description":{"type":"string"}},"required":["url","events"]},"Subscription":{"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string"},"events":{"description":"\"*\" or the list of event names"},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"branch_id":{"type":"integer"},"created_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"secret":{"type":"string","description":"POST only, shown once: the signing secret (X-Webhook-Signature)"}}},"Address":{"type":"object","properties":{"street":{"type":"string"},"unit":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"}}},"NewOrder":{"type":"object","properties":{"customer":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"other_phone":{"type":"string"}}},"move_date":{"type":"string","format":"date"},"move_type":{"type":"string","enum":["RESIDENTIAL","COMMERCIAL","MILITARY"]},"estimate_type":{"type":"string","enum":["NON_BINDING","BINDING","FLAT_RATE"]},"service_id":{"type":"integer"},"size":{"type":"object","properties":{"lead_number":{"type":"integer","description":"The move size's Lead # (Settings › Pricing & calculator › Move Size)"},"cu_ft":{"type":"number"},"description":{"type":"string"}}},"origin":{"$ref":"#/components/schemas/Address"},"destination":{"$ref":"#/components/schemas/Address"},"notes":{"type":"string","description":"Becomes the order's notes, as a lead's comments do"},"sales_notes":{"type":"string"},"source":{"type":"string","description":"The lead source name (matched to your lead sources; unknown → Other). Default: the key's name."},"external_id":{"type":"string","description":"Your system's id for the order (Secondary ID)"},"assigned_to":{"type":["integer","null"],"description":"A user id (GET /users). Left out: your assignment rules choose."},"inventory":{"type":"array","items":{"type":"object","properties":{"room":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer"},"cu_ft":{"type":"number","description":"For one item; used when the name is not in your item list"}},"required":["name"]}},"tracking_url":{"type":"string"},"stops":{"type":"array","description":"Stops between the pickup (origin) and the drop-off (destination), in order (up to 10)","items":{"type":"object","properties":{"type":{"type":"string","enum":["pickup","dropoff","both"],"description":"Default pickup"},"street":{"type":"string"},"unit":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"}}}},"branch_id":{"type":"integer","description":"One of the key user's branches (GET /me). Default: the key's branch."}},"required":["customer"]},"OrderChanges":{"type":"object","properties":{"status":{"type":"string","description":"A MoveBoard status code"},"assigned_to":{"type":["integer","null"]},"closer":{"type":["integer","null"],"description":"Who closed the booking: a user id (GET /users), or null to clear the pick (the closer is then the staff member who booked the order, if one did). Only in a branch that tracks the closer, and the key's user needs the Assign leads permission."},"move_date":{"type":"string","format":"date"},"arrival_window":{"type":"object","properties":{"from":{"type":["string","null"],"description":"HH:MM, 24-hour, the branch's clock"},"to":{"type":["string","null"]}}},"size":{"type":"object","properties":{"cu_ft":{"type":"number"},"description":{"type":"string"}}},"external_id":{"type":"string"},"estimate_type":{"type":"string","enum":["NON_BINDING","BINDING","FLAT_RATE"]}}},"QuoteChanges":{"type":"object","properties":{"job_id":{"type":"integer","description":"Which move day (default: the first)"},"crew":{"type":["integer","null"],"description":"null: back to the calculator's"},"trucks":{"type":["integer","null"]},"labor_rate":{"type":["number","null"]},"travel_rate":{"type":["number","null"]},"labor_hours":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}}}}},"NewTask":{"type":"object","properties":{"title":{"type":"string"},"notes":{"type":"string"},"due_at":{"type":"string","format":"date-time"},"assigned_to":{"type":"integer","description":"Default: the key's user"},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"kind":{"type":"string","enum":["call","email","custom","collect_payment"]},"remind_minutes_before":{"type":"integer"}},"required":["title"]},"NewNote":{"type":"object","properties":{"content":{"type":"string"},"audience":{"type":"array","items":{"type":"string","enum":["office","crew","dispatch","customer"]},"description":"Default [\"office\"]. [\"crew\"] alone is a crew-only note: the foreman sees it in the Movers App."}},"required":["content"]},"NewCall":{"type":"object","properties":{"direction":{"type":"string","enum":["inbound","outbound"]},"from":{"type":"string"},"to":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"duration_seconds":{"type":"integer","description":"0 for a missed call"},"answered":{"type":"boolean","description":"Default: duration_seconds > 0"},"recording_url":{"type":"string","description":"https link; kept as a link, never downloaded"},"summary":{"type":"string"},"source":{"type":"string","description":"Your phone system's name, e.g. \"CloudPhone\". It labels the call on the order."},"external_id":{"type":"string","description":"Your call id. The same id sent twice is filed once."},"order_id":{"type":"integer","description":"Optional. Left out: the newest order with the customer's number."}},"required":["direction","from","to","started_at","source"]},"NewText":{"type":"object","properties":{"direction":{"type":"string","enum":["inbound","outbound"]},"from":{"type":"string"},"to":{"type":"string"},"body":{"type":"string"},"sent_at":{"type":"string","format":"date-time"},"source":{"type":"string"},"external_id":{"type":"string"},"order_id":{"type":"integer"}},"required":["direction","from","to","body","source"]},"NewCustomer":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"other_phone":{"type":"string"}}},"CallLogged":{"type":"object","properties":{"id":{"type":["integer","null"]},"order_id":{"type":["integer","null"]},"matched":{"type":"boolean"},"note_id":{"type":["integer","null"]},"duplicate":{"type":"boolean"},"message":{"type":"string"}}},"OrderCalls":{"type":"object","properties":{"calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"direction":{"type":["string","null"]},"from":{"type":["string","null"]},"to":{"type":["string","null"]},"missed":{"type":"boolean"},"duration_seconds":{"type":"integer"},"started_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"source":{"type":"string"},"line":{"type":["string","null"]}}}},"logged":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"kind":{"type":"string"},"performed_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC"},"by":{"type":["string","null"]},"contact":{"type":["string","null"]},"notes":{"type":["string","null"]},"line":{"type":"string"}}}}}}}}}