{"openapi":"3.1.0","info":{"title":"BaseCRM API","version":"1.0.0","description":"Customers, activities, appointments, tasks and reminders, classes and their lessons, properties (real estate) and webhooks of one BaseCRM business.\n\nAuthenticate with `Authorization: Bearer <key>` (create keys in BaseCRM → הגדרות → אינטגרציות). Times are ISO 8601; the business clock is Asia/Jerusalem. Errors are `{\"error\":{\"code\",\"message\",\"field\"}}` — branch on `code`. Lists page with `limit` + `cursor`. DELETE /customers archives (restorable); DELETE /tasks is permanent; DELETE /properties is permanent and refused (409) while a property has a collaboration with another broker. DELETE /class-sessions is permanent and refused (409) while the lesson holds attendance or single-lesson registrations — move a lesson with PATCH starts_at. Send `Idempotency-Key` on POST so a retry never creates twice. A write sends only the fields it changes; `null` clears an optional field; a field the route does not take is refused (400 unsupported_field), never dropped.\n\nWebhooks (`webhooks` below): every event is a POST of `{event, business_id, timestamp, data, id}`. Verify `X-BaseCRM-Signature-256: t=<unix seconds>,v1=<hex>` — v1 = HMAC-SHA256(your secret, \"<t>.<raw body>\"); reject a stale t (`X-BaseCRM-Signature` = HMAC-SHA256 of the body alone, kept for older receivers). Also sent: X-BaseCRM-Event, X-BaseCRM-Event-Id (= body id), X-BaseCRM-Delivery-Attempt. Answer 2xx within 10 s. Anything else is retried after 5, 10, 20, 40, 80, 160 and 320 minutes (8 attempts in all); Retry-After is honoured on 429/503, 410 stops the retries, redirects are not followed, and a hook that keeps failing (10 failures over 24 h) is switched off. Delivery is at-least-once and the order is NOT guaranteed: the first attempt leaves when the request that raised the event ends, events raised by background jobs and every retry go out from a queue sent once a minute, so a retried event can arrive after a later one. Deduplicate on `id`. To order, compare `timestamp` (when the event was raised, to the second — the same on every retry) or re-read the record with GET for its current state. An event is a notice, not the record: free text (notes, descriptions, activity details) never rides in `data`."},"servers":[{"url":"https://basecrm.co.il/api/v1"},{"url":"/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"field":{"type":"string"},"details":{"type":"object"}}},"request_id":{"type":"string"}}}}}}},"schemas":{"WebhookEvent":{"type":"object","required":["event","business_id","timestamp","data","id"],"properties":{"event":{"type":"string","description":"The event name (also in X-BaseCRM-Event)"},"business_id":{"type":"integer"},"timestamp":{"type":"string","format":"date-time","description":"When the event was raised (Israel time, to the second); the same on every retry"},"data":{"type":"object","description":"The payload of this event — see each webhook"},"id":{"type":"string","description":"32 hex characters, the same for every hook and every attempt of one event — deduplicate on it (also X-BaseCRM-Event-Id)"}}}}},"paths":{"/openapi.json":{"get":{"summary":"This API as an OpenAPI 3.1 document","operationId":"get_openapi_json","tags":["meta"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[]}},"/me":{"get":{"summary":"The calling key: its business, name and scopes","operationId":"get_me","tags":["meta"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/customers":{"get":{"summary":"List or search customers","operationId":"get_customers","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`.","parameters":[{"name":"q","in":"query","required":false,"description":"Search in name, company, email and phone","schema":{"type":"string"}},{"name":"status_id","in":"query","required":false,"description":"Only this status (see /meta/customer-statuses)","schema":{"type":"string"}},{"name":"contact_type","in":"query","required":false,"description":"customer | lead | supplier | partner | other","schema":{"type":"string"}},{"name":"customer_type","in":"query","required":false,"description":"A key from the business's own list (in a clinic `patient` or `practitioner`), or `none` for customers not classified","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 — only records changed since (incremental sync)","schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"description":"1 to include archived customers","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Create a customer","operationId":"post_customers","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contact_name"],"properties":{"contact_name":{"type":"string","description":"The person's full name. Required on create; cannot be cleared.","maxLength":255},"company_name":{"type":["string","null"],"description":"Business / organisation name (optional).","maxLength":255},"contact_role":{"type":["string","null"],"description":"Job title or role."},"phone":{"type":["string","null"],"description":"Any spelling: 050-1234567, +972501234567. Validated."},"email":{"type":["string","null"],"description":"Email address. Validated.","format":"email"},"tax_id":{"type":["string","null"],"description":"ת״ז / ע.מ / ח.פ — printed on the customer's documents."},"address":{"type":["string","null"],"description":"Street address."},"address_city":{"type":["string","null"],"description":"City.","maxLength":60},"address_postal_code":{"type":["string","null"],"description":"Postal code.","maxLength":10},"customer_type":{"type":"string","description":"The business's own customer type: a key from its list (in a clinic `patient` or `practitioner`), or empty when not classified."},"contact_type":{"type":"string","description":"`lead` = a prospect on the leads pipeline; `customer` = a customer. PATCH lead → customer converts the lead: without status_id in the same request the record moves to the default customer status (customer → lead moves it to the default lead stage). Default on create: customer.","enum":["customer","lead","supplier","partner","other"]},"status_id":{"type":"integer","description":"Lead stage or customer status, from GET /meta/customer-statuses: entries with `for: \"lead\"` are the stages of the leads pipeline, `for: \"customer\"` the customer statuses (two separate lists). Send an id whose `for` matches the record's contact_type. Default on create: the default of that list. A change fires `customer.status_changed`."},"assigned_to":{"type":["integer","null"],"description":"The team member responsible (GET /meta/users); null unassigns."},"is_paying_customer":{"type":"boolean","description":"Whether billing is tracked for this customer. Default on create: true."},"hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's price per appointment in ILS, 0 or more (used for a paying customer only). The name is historic; it is not a rate per hour."},"time_hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's rate per hour on the time clock in ILS, 0 or more (used for a paying customer only). Null = the project's or the business's rate."},"preferred_language":{"type":["string","null"],"description":"The language of this customer's documents and messages; null = Hebrew.","enum":["he","en","ru","fr","ar"]},"follow_up_date":{"type":["string","null"],"format":"date","description":"Next follow-up day (YYYY-MM-DD); null clears."},"notes":{"type":["string","null"],"description":"Free-text notes. Returned only to keys allowed clinical text (GET /me → clinical_text).","maxLength":5000},"default_payment_days":{"type":"integer","description":"Payment terms in days, 0-365 (default on create: 30).","minimum":0,"maximum":365},"payment_terms_month_end":{"type":"boolean","description":"true = the days count from the end of the month (שוטף+N); false = from the document date."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Custom fields by key — the `key` values of GET /meta/custom-fields. Text, number and date as a string or number, a select as one of its `options`, multiselect as a list, checkbox as true/false. Only the keys sent are written; a required field may not be sent empty. An unknown key is skipped (refused by name when custom_fields is the only field sent). Returned by GET /customers/{id} to keys allowed clinical text."},"tags":{"type":"array","maxItems":20,"items":{"type":["integer","string"],"maxLength":50},"description":"Replaces the customer's tags: tag ids or names (a new name creates the tag). [] removes all."},"force_create":{"type":"boolean","description":"true = save even though similar customers exist. Without it a suspected duplicate answers 409 duplicate_suspected with the candidates."}},"example":{"contact_name":"דנה לוי","phone":"050-1234567","email":"dana@example.com","contact_type":"lead","status_id":12,"tags":["VIP"],"custom_fields":{"skin_type":"יבש","campaign":"instagram"}},"additionalProperties":false}}}}}},"/customers/lookup":{"get":{"summary":"Find customers by phone, email or ID number","operationId":"get_customers_lookup","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`.","parameters":[{"name":"phone","in":"query","required":false,"description":"Any spelling: 050-1234567, +972501234567…","schema":{"type":"string"}},{"name":"email","in":"query","required":false,"description":"Case-insensitive exact match","schema":{"type":"string"}},{"name":"id_number","in":"query","required":false,"description":"ת״ז / ע.מ / ח.פ — a missing leading zero still matches","schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"description":"1 to include archived customers","schema":{"type":"string"}}]}},"/customers/{id}":{"get":{"summary":"Get one customer","operationId":"get_customers_by_id","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a customer (only the fields sent)","operationId":"patch_customers_by_id","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_name":{"type":"string","description":"The person's full name. Required on create; cannot be cleared.","maxLength":255},"company_name":{"type":["string","null"],"description":"Business / organisation name (optional).","maxLength":255},"contact_role":{"type":["string","null"],"description":"Job title or role."},"phone":{"type":["string","null"],"description":"Any spelling: 050-1234567, +972501234567. Validated."},"email":{"type":["string","null"],"description":"Email address. Validated.","format":"email"},"tax_id":{"type":["string","null"],"description":"ת״ז / ע.מ / ח.פ — printed on the customer's documents."},"address":{"type":["string","null"],"description":"Street address."},"address_city":{"type":["string","null"],"description":"City.","maxLength":60},"address_postal_code":{"type":["string","null"],"description":"Postal code.","maxLength":10},"customer_type":{"type":"string","description":"The business's own customer type: a key from its list (in a clinic `patient` or `practitioner`), or empty when not classified."},"contact_type":{"type":"string","description":"`lead` = a prospect on the leads pipeline; `customer` = a customer. PATCH lead → customer converts the lead: without status_id in the same request the record moves to the default customer status (customer → lead moves it to the default lead stage). Default on create: customer.","enum":["customer","lead","supplier","partner","other"]},"status_id":{"type":"integer","description":"Lead stage or customer status, from GET /meta/customer-statuses: entries with `for: \"lead\"` are the stages of the leads pipeline, `for: \"customer\"` the customer statuses (two separate lists). Send an id whose `for` matches the record's contact_type. Default on create: the default of that list. A change fires `customer.status_changed`."},"assigned_to":{"type":["integer","null"],"description":"The team member responsible (GET /meta/users); null unassigns."},"is_paying_customer":{"type":"boolean","description":"Whether billing is tracked for this customer. Default on create: true."},"hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's price per appointment in ILS, 0 or more (used for a paying customer only). The name is historic; it is not a rate per hour."},"time_hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's rate per hour on the time clock in ILS, 0 or more (used for a paying customer only). Null = the project's or the business's rate."},"preferred_language":{"type":["string","null"],"description":"The language of this customer's documents and messages; null = Hebrew.","enum":["he","en","ru","fr","ar"]},"follow_up_date":{"type":["string","null"],"format":"date","description":"Next follow-up day (YYYY-MM-DD); null clears."},"notes":{"type":["string","null"],"description":"Free-text notes. Returned only to keys allowed clinical text (GET /me → clinical_text).","maxLength":5000},"billing_name":{"type":["string","null"],"description":"Payer — the name documents are issued to when someone else pays (a parent, an employer). billing_tax_id / billing_address are read only together with it; \"\" or null removes the payer. PATCH only."},"billing_tax_id":{"type":["string","null"],"description":"Payer's ID number — read only together with billing_name."},"billing_address":{"type":["string","null"],"description":"Payer's address — read only together with billing_name."},"default_payment_days":{"type":"integer","description":"Payment terms in days, 0-365 (default on create: 30).","minimum":0,"maximum":365},"payment_terms_month_end":{"type":"boolean","description":"true = the days count from the end of the month (שוטף+N); false = from the document date."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Custom fields by key — the `key` values of GET /meta/custom-fields. Text, number and date as a string or number, a select as one of its `options`, multiselect as a list, checkbox as true/false. Only the keys sent are written; a required field may not be sent empty. An unknown key is skipped (refused by name when custom_fields is the only field sent). Returned by GET /customers/{id} to keys allowed clinical text."},"tags":{"type":"array","maxItems":20,"items":{"type":["integer","string"],"maxLength":50},"description":"Replaces the customer's tags: tag ids or names (a new name creates the tag). [] removes all."},"force_update":{"type":"boolean","description":"true = save even though the new phone / email matches another customer (otherwise 409 duplicate_suspected)."}},"example":{"contact_type":"customer"},"additionalProperties":false},"examples":{"convert_lead":{"summary":"Convert a lead to a customer (moves to the default customer status)","value":{"contact_type":"customer"}},"convert_lead_to_status":{"summary":"Convert a lead and choose the customer status (an id with for: \"customer\")","value":{"contact_type":"customer","status_id":7}},"move_lead_stage":{"summary":"Move a lead to another pipeline stage (an id with for: \"lead\")","value":{"status_id":14}},"custom_fields":{"summary":"Set custom fields (keys from GET /meta/custom-fields)","value":{"custom_fields":{"skin_type":"שמן","allergies":["latex"],"newsletter":true}}}}}}}},"put":{"summary":"Same as PATCH","operationId":"put_customers_by_id","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_name":{"type":"string","description":"The person's full name. Required on create; cannot be cleared.","maxLength":255},"company_name":{"type":["string","null"],"description":"Business / organisation name (optional).","maxLength":255},"contact_role":{"type":["string","null"],"description":"Job title or role."},"phone":{"type":["string","null"],"description":"Any spelling: 050-1234567, +972501234567. Validated."},"email":{"type":["string","null"],"description":"Email address. Validated.","format":"email"},"tax_id":{"type":["string","null"],"description":"ת״ז / ע.מ / ח.פ — printed on the customer's documents."},"address":{"type":["string","null"],"description":"Street address."},"address_city":{"type":["string","null"],"description":"City.","maxLength":60},"address_postal_code":{"type":["string","null"],"description":"Postal code.","maxLength":10},"customer_type":{"type":"string","description":"The business's own customer type: a key from its list (in a clinic `patient` or `practitioner`), or empty when not classified."},"contact_type":{"type":"string","description":"`lead` = a prospect on the leads pipeline; `customer` = a customer. PATCH lead → customer converts the lead: without status_id in the same request the record moves to the default customer status (customer → lead moves it to the default lead stage). Default on create: customer.","enum":["customer","lead","supplier","partner","other"]},"status_id":{"type":"integer","description":"Lead stage or customer status, from GET /meta/customer-statuses: entries with `for: \"lead\"` are the stages of the leads pipeline, `for: \"customer\"` the customer statuses (two separate lists). Send an id whose `for` matches the record's contact_type. Default on create: the default of that list. A change fires `customer.status_changed`."},"assigned_to":{"type":["integer","null"],"description":"The team member responsible (GET /meta/users); null unassigns."},"is_paying_customer":{"type":"boolean","description":"Whether billing is tracked for this customer. Default on create: true."},"hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's price per appointment in ILS, 0 or more (used for a paying customer only). The name is historic; it is not a rate per hour."},"time_hourly_rate":{"type":["number","null"],"minimum":0,"description":"This customer's rate per hour on the time clock in ILS, 0 or more (used for a paying customer only). Null = the project's or the business's rate."},"preferred_language":{"type":["string","null"],"description":"The language of this customer's documents and messages; null = Hebrew.","enum":["he","en","ru","fr","ar"]},"follow_up_date":{"type":["string","null"],"format":"date","description":"Next follow-up day (YYYY-MM-DD); null clears."},"notes":{"type":["string","null"],"description":"Free-text notes. Returned only to keys allowed clinical text (GET /me → clinical_text).","maxLength":5000},"billing_name":{"type":["string","null"],"description":"Payer — the name documents are issued to when someone else pays (a parent, an employer). billing_tax_id / billing_address are read only together with it; \"\" or null removes the payer. PATCH only."},"billing_tax_id":{"type":["string","null"],"description":"Payer's ID number — read only together with billing_name."},"billing_address":{"type":["string","null"],"description":"Payer's address — read only together with billing_name."},"default_payment_days":{"type":"integer","description":"Payment terms in days, 0-365 (default on create: 30).","minimum":0,"maximum":365},"payment_terms_month_end":{"type":"boolean","description":"true = the days count from the end of the month (שוטף+N); false = from the document date."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Custom fields by key — the `key` values of GET /meta/custom-fields. Text, number and date as a string or number, a select as one of its `options`, multiselect as a list, checkbox as true/false. Only the keys sent are written; a required field may not be sent empty. An unknown key is skipped (refused by name when custom_fields is the only field sent). Returned by GET /customers/{id} to keys allowed clinical text."},"tags":{"type":"array","maxItems":20,"items":{"type":["integer","string"],"maxLength":50},"description":"Replaces the customer's tags: tag ids or names (a new name creates the tag). [] removes all."},"force_update":{"type":"boolean","description":"true = save even though the new phone / email matches another customer (otherwise 409 duplicate_suspected)."}},"example":{"contact_type":"customer"},"additionalProperties":false},"examples":{"convert_lead":{"summary":"Convert a lead to a customer (moves to the default customer status)","value":{"contact_type":"customer"}},"convert_lead_to_status":{"summary":"Convert a lead and choose the customer status (an id with for: \"customer\")","value":{"contact_type":"customer","status_id":7}},"move_lead_stage":{"summary":"Move a lead to another pipeline stage (an id with for: \"lead\")","value":{"status_id":14}},"custom_fields":{"summary":"Set custom fields (keys from GET /meta/custom-fields)","value":{"custom_fields":{"skin_type":"שמן","allergies":["latex"],"newsletter":true}}}}}}}},"delete":{"summary":"Archive a customer (restorable, never a permanent delete)","operationId":"delete_customers_by_id","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/customers/{id}/restore":{"post":{"summary":"Restore an archived customer","operationId":"post_customers_by_id_restore","tags":["customers"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/meta/customer-statuses":{"get":{"summary":"The status ids a customer or lead can hold","operationId":"get_meta_customer_statuses","tags":["meta"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`."}},"/meta/custom-fields":{"get":{"summary":"The custom fields of customers","operationId":"get_meta_custom_fields","tags":["meta"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`."}},"/meta/users":{"get":{"summary":"Team members a record can be assigned to","operationId":"get_meta_users","tags":["meta"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `customers:read`."}},"/activities":{"get":{"summary":"List activities (calls, meetings, notes)","operationId":"get_activities","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:read`.","parameters":[{"name":"customer_id","in":"query","required":false,"description":"Only this customer","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Only this activity type (see /meta/activity-types)","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"ISO 8601 — activities at or after","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO 8601 — activities before","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 — only records changed since","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Log an activity on a customer","operationId":"post_activities","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["customer_id","type"],"properties":{"customer_id":{"type":"integer","description":"The customer it belongs to (GET /customers, /customers/lookup). Create only."},"type":{"type":"string","description":"Activity type key from GET /meta/activity-types (built in: call, whatsapp, meeting, email, other — plus the business's own)."},"summary":{"type":"string","description":"Short title. Default: the type's name.","maxLength":200},"details":{"type":["string","null"],"description":"The long write-up. Returned only to keys allowed clinical text."},"interaction_at":{"type":"string","format":"date-time","description":"When it happened. Default on create: now."},"ends_at":{"type":["string","null"],"format":"date-time","description":"When it ended (after interaction_at); null clears."},"follow_up_date":{"type":["string","null"],"format":"date","description":"Follow-up day (YYYY-MM-DD) — also becomes the customer's next follow-up; null clears."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Activity custom fields by key (e.g. a \"call result\" field) — the `key` values of GET /meta/activity-custom-fields. Same value shapes as customer custom_fields. Returned by GET /activities/{id} to keys allowed clinical text. Only the keys sent are written; an unknown key is skipped silently (not refused)."}},"example":{"customer_id":1532,"type":"call","summary":"שיחת תיאום","interaction_at":"2026-10-27T10:30:00+02:00","follow_up_date":"2026-11-03"},"additionalProperties":false}}}}}},"/activities/{id}":{"get":{"summary":"Get one activity","operationId":"get_activities_by_id","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update an activity (only the fields sent)","operationId":"patch_activities_by_id","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Activity type key from GET /meta/activity-types (built in: call, whatsapp, meeting, email, other — plus the business's own)."},"summary":{"type":"string","description":"Short title. Default: the type's name.","maxLength":200},"details":{"type":["string","null"],"description":"The long write-up. Returned only to keys allowed clinical text."},"interaction_at":{"type":"string","format":"date-time","description":"When it happened. Default on create: now."},"ends_at":{"type":["string","null"],"format":"date-time","description":"When it ended (after interaction_at); null clears."},"follow_up_date":{"type":["string","null"],"format":"date","description":"Follow-up day (YYYY-MM-DD) — also becomes the customer's next follow-up; null clears."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Activity custom fields by key (e.g. a \"call result\" field) — the `key` values of GET /meta/activity-custom-fields. Same value shapes as customer custom_fields. Returned by GET /activities/{id} to keys allowed clinical text. Only the keys sent are written; an unknown key is skipped silently (not refused)."}},"example":{"ends_at":"2026-10-27T10:45:00+02:00","follow_up_date":null},"additionalProperties":false}}}}},"put":{"summary":"Same as PATCH","operationId":"put_activities_by_id","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Activity type key from GET /meta/activity-types (built in: call, whatsapp, meeting, email, other — plus the business's own)."},"summary":{"type":"string","description":"Short title. Default: the type's name.","maxLength":200},"details":{"type":["string","null"],"description":"The long write-up. Returned only to keys allowed clinical text."},"interaction_at":{"type":"string","format":"date-time","description":"When it happened. Default on create: now."},"ends_at":{"type":["string","null"],"format":"date-time","description":"When it ended (after interaction_at); null clears."},"follow_up_date":{"type":["string","null"],"format":"date","description":"Follow-up day (YYYY-MM-DD) — also becomes the customer's next follow-up; null clears."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Activity custom fields by key (e.g. a \"call result\" field) — the `key` values of GET /meta/activity-custom-fields. Same value shapes as customer custom_fields. Returned by GET /activities/{id} to keys allowed clinical text. Only the keys sent are written; an unknown key is skipped silently (not refused)."}},"example":{"ends_at":"2026-10-27T10:45:00+02:00","follow_up_date":null},"additionalProperties":false}}}}}},"/meta/activity-types":{"get":{"summary":"The activity types this business uses","operationId":"get_meta_activity_types","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:read`."}},"/meta/activity-custom-fields":{"get":{"summary":"The custom fields of activities — the keys `custom_fields` accepts","operationId":"get_meta_activity_custom_fields","tags":["activities"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `activities:read`."}},"/appointments":{"get":{"summary":"List appointments","operationId":"get_appointments","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:read`.","parameters":[{"name":"from","in":"query","required":false,"description":"YYYY-MM-DD — on or after this date","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"YYYY-MM-DD — on or before this date","schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"description":"Only this customer","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Only this status (see /meta/appointment-statuses)","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 — only records changed since","schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"description":"1 to include archived appointments","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Book an appointment","operationId":"post_appointments","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["customer_id","title"],"properties":{"customer_id":{"type":"integer","description":"The customer (GET /customers, /customers/lookup). Required, except for a session of a project/event (project_id)."},"title":{"type":"string","description":"What is booked, e.g. the service name.","minLength":1,"maxLength":255},"starts_at":{"type":"string","format":"date-time","description":"Start, ISO 8601 (no offset = Israel time). Required on create — or the stored form appointment_date + appointment_time. On PATCH it moves the appointment and keeps its length."},"ends_at":{"type":"string","format":"date-time","description":"End (after starts_at) — or send duration_minutes. One of the two is required on create."},"appointment_date":{"type":"string","format":"date","description":"The stored form of the start day (YYYY-MM-DD) — use instead of starts_at."},"appointment_time":{"type":"string","description":"The stored form of the start time, HH:MM — with appointment_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"duration_minutes":{"type":"integer","description":"Length in minutes — or send ends_at.","minimum":1},"status":{"type":"string","description":"A key from GET /meta/appointment-statuses: scheduled (default), completed, cancelled, no_show, … plus the business's own. A change fires `appointment.status_changed`."},"location":{"type":["string","null"],"description":"Where it takes place."},"description":{"type":["string","null"],"description":"Summary / notes. Replaces the text, or is added after it with append_summary. Returned only to keys allowed clinical text."},"category_id":{"type":["integer","null"],"description":"Category, from GET /meta/appointment-categories; null clears."},"practitioner_id":{"type":["integer","null"],"description":"The staff member's calendar it is booked on (a practitioner of this business — read the id from an existing appointment); null unassigns. A foreign id is 400."},"room_id":{"type":["integer","null"],"description":"The room (read the id from an existing appointment); null clears. A foreign id is 400."},"project_id":{"type":["integer","null"],"description":"A project / event of this business it belongs to; null unlinks."},"property_id":{"type":"integer","description":"Real estate: the property the viewing is for. Create only."},"commitment_id":{"type":["integer","null"],"description":"A payer commitment (התחייבות) of this customer that pays for the session; null detaches."},"pricing_type":{"type":"string","description":"fixed = the price below; hourly = from the customer's hourly rate; free = 0. Default: the business's billing setting.","enum":["fixed","hourly","free"]},"price":{"type":["number","null"],"minimum":0,"description":"Price in ILS for pricing_type fixed; null = the customer's default."},"tags":{"type":"array","items":{"type":["integer","string"]},"description":"Replaces the appointment's tags: tag ids or names (a new name creates the tag)."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Appointment custom fields by key, as defined in BaseCRM (settings → fields → appointments). Same value shapes as customer custom_fields. An unknown key is skipped."},"reject_on_conflict":{"type":"boolean","description":"true = answer 409 time_conflict instead of booking over another appointment. Without it overlaps are booked and listed in meta.conflicts."}},"example":{"customer_id":1532,"title":"צבע + פן","starts_at":"2026-11-02T10:00:00+02:00","duration_minutes":90,"reject_on_conflict":true},"additionalProperties":false}}}}}},"/appointments/{id}":{"get":{"summary":"Get one appointment","operationId":"get_appointments_by_id","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update an appointment: reschedule, change status… (only the fields sent)","operationId":"patch_appointments_by_id","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"The customer (GET /customers, /customers/lookup). Required, except for a session of a project/event (project_id)."},"title":{"type":"string","description":"What is booked, e.g. the service name.","minLength":1,"maxLength":255},"starts_at":{"type":"string","format":"date-time","description":"Start, ISO 8601 (no offset = Israel time). Required on create — or the stored form appointment_date + appointment_time. On PATCH it moves the appointment and keeps its length."},"ends_at":{"type":"string","format":"date-time","description":"End (after starts_at) — or send duration_minutes. One of the two is required on create."},"appointment_date":{"type":"string","format":"date","description":"The stored form of the start day (YYYY-MM-DD) — use instead of starts_at."},"appointment_time":{"type":"string","description":"The stored form of the start time, HH:MM — with appointment_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"duration_minutes":{"type":"integer","description":"Length in minutes — or send ends_at.","minimum":1},"status":{"type":"string","description":"A key from GET /meta/appointment-statuses: scheduled (default), completed, cancelled, no_show, … plus the business's own. A change fires `appointment.status_changed`."},"location":{"type":["string","null"],"description":"Where it takes place."},"description":{"type":["string","null"],"description":"Summary / notes. Replaces the text, or is added after it with append_summary. Returned only to keys allowed clinical text."},"append_summary":{"type":"boolean","description":"PATCH: true = add description after the existing text (a blank line between) instead of replacing it."},"category_id":{"type":["integer","null"],"description":"Category, from GET /meta/appointment-categories; null clears."},"practitioner_id":{"type":["integer","null"],"description":"The staff member's calendar it is booked on (a practitioner of this business — read the id from an existing appointment); null unassigns. A foreign id is 400."},"room_id":{"type":["integer","null"],"description":"The room (read the id from an existing appointment); null clears. A foreign id is 400."},"project_id":{"type":["integer","null"],"description":"A project / event of this business it belongs to; null unlinks."},"commitment_id":{"type":["integer","null"],"description":"A payer commitment (התחייבות) of this customer that pays for the session; null detaches."},"pricing_type":{"type":"string","description":"fixed = the price below; hourly = from the customer's hourly rate; free = 0. Default: the business's billing setting.","enum":["fixed","hourly","free"]},"price":{"type":["number","null"],"minimum":0,"description":"Price in ILS for pricing_type fixed; null = the customer's default."},"tags":{"type":"array","items":{"type":["integer","string"]},"description":"Replaces the appointment's tags: tag ids or names (a new name creates the tag)."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Appointment custom fields by key, as defined in BaseCRM (settings → fields → appointments). Same value shapes as customer custom_fields. An unknown key is skipped."},"reject_on_conflict":{"type":"boolean","description":"true = answer 409 time_conflict instead of booking over another appointment. Without it overlaps are booked and listed in meta.conflicts."}},"example":{"starts_at":"2026-11-04T12:00:00+02:00"},"additionalProperties":false},"examples":{"reschedule":{"summary":"Move to another time (keeps the length)","value":{"starts_at":"2026-11-04T12:00:00+02:00","reject_on_conflict":true}},"cancel":{"summary":"Cancel","value":{"status":"cancelled"}}}}}}},"put":{"summary":"Same as PATCH","operationId":"put_appointments_by_id","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"The customer (GET /customers, /customers/lookup). Required, except for a session of a project/event (project_id)."},"title":{"type":"string","description":"What is booked, e.g. the service name.","minLength":1,"maxLength":255},"starts_at":{"type":"string","format":"date-time","description":"Start, ISO 8601 (no offset = Israel time). Required on create — or the stored form appointment_date + appointment_time. On PATCH it moves the appointment and keeps its length."},"ends_at":{"type":"string","format":"date-time","description":"End (after starts_at) — or send duration_minutes. One of the two is required on create."},"appointment_date":{"type":"string","format":"date","description":"The stored form of the start day (YYYY-MM-DD) — use instead of starts_at."},"appointment_time":{"type":"string","description":"The stored form of the start time, HH:MM — with appointment_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"duration_minutes":{"type":"integer","description":"Length in minutes — or send ends_at.","minimum":1},"status":{"type":"string","description":"A key from GET /meta/appointment-statuses: scheduled (default), completed, cancelled, no_show, … plus the business's own. A change fires `appointment.status_changed`."},"location":{"type":["string","null"],"description":"Where it takes place."},"description":{"type":["string","null"],"description":"Summary / notes. Replaces the text, or is added after it with append_summary. Returned only to keys allowed clinical text."},"append_summary":{"type":"boolean","description":"PATCH: true = add description after the existing text (a blank line between) instead of replacing it."},"category_id":{"type":["integer","null"],"description":"Category, from GET /meta/appointment-categories; null clears."},"practitioner_id":{"type":["integer","null"],"description":"The staff member's calendar it is booked on (a practitioner of this business — read the id from an existing appointment); null unassigns. A foreign id is 400."},"room_id":{"type":["integer","null"],"description":"The room (read the id from an existing appointment); null clears. A foreign id is 400."},"project_id":{"type":["integer","null"],"description":"A project / event of this business it belongs to; null unlinks."},"commitment_id":{"type":["integer","null"],"description":"A payer commitment (התחייבות) of this customer that pays for the session; null detaches."},"pricing_type":{"type":"string","description":"fixed = the price below; hourly = from the customer's hourly rate; free = 0. Default: the business's billing setting.","enum":["fixed","hourly","free"]},"price":{"type":["number","null"],"minimum":0,"description":"Price in ILS for pricing_type fixed; null = the customer's default."},"tags":{"type":"array","items":{"type":["integer","string"]},"description":"Replaces the appointment's tags: tag ids or names (a new name creates the tag)."},"custom_fields":{"type":"object","additionalProperties":true,"description":"Appointment custom fields by key, as defined in BaseCRM (settings → fields → appointments). Same value shapes as customer custom_fields. An unknown key is skipped."},"reject_on_conflict":{"type":"boolean","description":"true = answer 409 time_conflict instead of booking over another appointment. Without it overlaps are booked and listed in meta.conflicts."}},"example":{"starts_at":"2026-11-04T12:00:00+02:00"},"additionalProperties":false},"examples":{"reschedule":{"summary":"Move to another time (keeps the length)","value":{"starts_at":"2026-11-04T12:00:00+02:00","reject_on_conflict":true}},"cancel":{"summary":"Cancel","value":{"status":"cancelled"}}}}}}}},"/appointments/{id}/arrival":{"post":{"summary":"Mark (or clear) \"arrival confirmed\" — e.g. after the customer answered a WhatsApp reminder","operationId":"post_appointments_by_id_arrival","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmed":{"type":"boolean","default":true,"description":"true marks \"arrival confirmed\" (the whole visit); false clears it. Not a status — the appointment stays scheduled. Repeating it changes nothing."},"via":{"type":"string","enum":["customer","staff"],"default":"customer","description":"Who confirmed: \"customer\" (e.g. they answered a WhatsApp or SMS reminder) or \"staff\". Returned as arrival_confirmed_via and in the appointment.updated webhook."}},"example":{"confirmed":true,"via":"customer"},"additionalProperties":false}}}}}},"/appointments/{id}/reschedule-request":{"post":{"summary":"Approve or reject the customer's request to move the appointment (sent from its manage_url)","operationId":"post_appointments_by_id_reschedule_request","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["decision"],"properties":{"decision":{"type":"string","enum":["approve","reject"],"description":"Answer the customer's waiting request (reschedule_request on the appointment). approve moves every service of the visit to the requested time — refused with 409 slot_taken when someone booked it since; reject keeps the original time. The customer is told by e-mail either way."}},"example":{"decision":"approve"},"additionalProperties":false}}}}}},"/appointments/{id}/cancel-request":{"post":{"summary":"Approve or reject the customer's request to cancel the appointment (sent from its manage_url)","operationId":"post_appointments_by_id_cancel_request","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["decision"],"properties":{"decision":{"type":"string","enum":["approve","reject"],"description":"Answer the customer's waiting request to cancel (cancel_request on the appointment — only when the business approves cancellations from the personal link). approve cancels every service of the visit (appointment.status_changed with cancelled_by customer); reject keeps the appointment. The customer is told by e-mail either way."}},"example":{"decision":"reject"},"additionalProperties":false}}}}}},"/meta/appointment-statuses":{"get":{"summary":"The statuses an appointment can hold","operationId":"get_meta_appointment_statuses","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:read`."}},"/meta/appointment-categories":{"get":{"summary":"Appointment categories","operationId":"get_meta_appointment_categories","tags":["appointments"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `appointments:read`."}},"/courses":{"get":{"summary":"List classes (courses)","operationId":"get_courses","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:read`.","parameters":[{"name":"status","in":"query","required":false,"description":"Only this status: active, draft, completed…","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Search in the class name and category","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]}},"/courses/{id}":{"get":{"summary":"Get one class, with the weekly slots of its upcoming lessons","operationId":"get_courses_by_id","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/class-sessions":{"get":{"summary":"List lessons of classes — filter by course_id and a date range","operationId":"get_class_sessions","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:read`.","parameters":[{"name":"course_id","in":"query","required":false,"description":"Only lessons of this class (see GET /courses)","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"YYYY-MM-DD — lessons on or after this date","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"YYYY-MM-DD — lessons on or before this date","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25 (ordered by id; filter by from/to for one week)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Add a lesson to an existing class","operationId":"post_class_sessions","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["course_id","starts_at"],"properties":{"course_id":{"type":"integer","description":"An existing class (GET /courses)"},"starts_at":{"type":"string","format":"date-time","description":"ISO 8601, e.g. 2026-11-02T18:00:00+02:00 (no offset = Israel time). The length comes from the class."},"topic":{"type":"string","maxLength":200,"description":"Public — shown on the schedule board and registration forms"},"notes":{"type":"string","maxLength":5000,"description":"Internal staff note, never shown to customers"},"max_participants":{"type":["integer","null"],"minimum":1,"description":"This lesson only; null = the class capacity"}},"additionalProperties":false}}}}}},"/class-sessions/{id}":{"get":{"summary":"Get one lesson","operationId":"get_class_sessions_by_id","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Move a lesson to another date and hour, or change its topic, note or capacity (only the fields sent)","operationId":"patch_class_sessions_by_id","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time","description":"Move the lesson. It keeps its id, attendance and registrations."},"topic":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":5000},"max_participants":{"type":["integer","null"],"minimum":1}},"additionalProperties":false}}}}},"put":{"summary":"Same as PATCH","operationId":"put_class_sessions_by_id","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time","description":"Move the lesson. It keeps its id, attendance and registrations."},"topic":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":5000},"max_participants":{"type":["integer","null"],"minimum":1}},"additionalProperties":false}}}}},"delete":{"summary":"Delete a lesson permanently (refused while it holds attendance or registrations)","operationId":"delete_class_sessions_by_id","tags":["classes"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `classes:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/properties":{"get":{"summary":"List or search properties (real estate)","operationId":"get_properties","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:read`.","parameters":[{"name":"q","in":"query","required":false,"description":"Search in address, city and neighbourhood","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Only properties in this city (partial match)","schema":{"type":"string"}},{"name":"status_id","in":"query","required":false,"description":"Only this status (see /meta/property-statuses)","schema":{"type":"string"}},{"name":"status_key","in":"query","required":false,"description":"Only this status, by key: recruited, marketing, negotiation, contract, closed, withdrawn…","schema":{"type":"string"}},{"name":"deal_type","in":"query","required":false,"description":"sale | rent","schema":{"type":"string"}},{"name":"property_type","in":"query","required":false,"description":"apartment | house | commercial | land | other","schema":{"type":"string"}},{"name":"owner_customer_id","in":"query","required":false,"description":"Only properties of this owner (a customer id)","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 — only records changed since (incremental sync)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Create a property","operationId":"post_properties","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["address","city"],"properties":{"owner_customer_id":{"type":["integer","null"],"description":"The owner — a customer of this business."},"address":{"type":"string","description":"Street address. Required on create."},"city":{"type":"string","description":"City. Required on create."},"neighborhood":{"type":["string","null"],"description":"Neighbourhood."},"property_type":{"type":"string","enum":["apartment","house","commercial","land","other"]},"deal_type":{"type":"string","enum":["sale","rent"]},"rooms":{"type":["number","null"],"description":"Rooms (3.5 allowed)."},"floor":{"type":["integer","null"],"description":"Floor."},"total_floors":{"type":["integer","null"],"description":"Floors in the building."},"sqm":{"type":["number","null"],"description":"Area in m²."},"price":{"type":["number","null"],"description":"Asking price / monthly rent in ILS."},"is_exclusive":{"type":"boolean","description":"Exclusive listing."},"exclusivity_start":{"type":["string","null"],"format":"date","description":"Exclusivity start (YYYY-MM-DD)."},"exclusivity_end":{"type":["string","null"],"format":"date","description":"Exclusivity end (YYYY-MM-DD)."},"status_id":{"type":"integer","description":"Status id from GET /meta/property-statuses — or send status_key (not both)."},"status_key":{"type":"string","description":"Status by key: recruited, marketing, negotiation, contract, closed, withdrawn… (GET /meta/property-statuses)."},"notes":{"type":["string","null"],"description":"Internal notes."},"marketplace_description":{"type":["string","null"],"description":"The public listing text."},"show_exact_address":{"type":"boolean","description":"Show the exact address on the public listing."},"video_url":{"type":["string","null"],"description":"A video link.","format":"uri"},"virtual_tour_url":{"type":["string","null"],"description":"A virtual tour link.","format":"uri"}},"example":{"address":"הרצל 10","city":"תל אביב","deal_type":"sale","property_type":"apartment","rooms":4,"price":2950000,"status_key":"marketing"},"additionalProperties":false}}}}}},"/properties/{id}":{"get":{"summary":"Get one property","operationId":"get_properties_by_id","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a property (only the fields sent)","operationId":"patch_properties_by_id","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"owner_customer_id":{"type":["integer","null"],"description":"The owner — a customer of this business."},"address":{"type":"string","description":"Street address. Required on create."},"city":{"type":"string","description":"City. Required on create."},"neighborhood":{"type":["string","null"],"description":"Neighbourhood."},"property_type":{"type":"string","enum":["apartment","house","commercial","land","other"]},"deal_type":{"type":"string","enum":["sale","rent"]},"rooms":{"type":["number","null"],"description":"Rooms (3.5 allowed)."},"floor":{"type":["integer","null"],"description":"Floor."},"total_floors":{"type":["integer","null"],"description":"Floors in the building."},"sqm":{"type":["number","null"],"description":"Area in m²."},"price":{"type":["number","null"],"description":"Asking price / monthly rent in ILS."},"is_exclusive":{"type":"boolean","description":"Exclusive listing."},"exclusivity_start":{"type":["string","null"],"format":"date","description":"Exclusivity start (YYYY-MM-DD)."},"exclusivity_end":{"type":["string","null"],"format":"date","description":"Exclusivity end (YYYY-MM-DD)."},"status_id":{"type":"integer","description":"Status id from GET /meta/property-statuses — or send status_key (not both)."},"status_key":{"type":"string","description":"Status by key: recruited, marketing, negotiation, contract, closed, withdrawn… (GET /meta/property-statuses)."},"notes":{"type":["string","null"],"description":"Internal notes."},"marketplace_description":{"type":["string","null"],"description":"The public listing text."},"show_exact_address":{"type":"boolean","description":"Show the exact address on the public listing."},"video_url":{"type":["string","null"],"description":"A video link.","format":"uri"},"virtual_tour_url":{"type":["string","null"],"description":"A virtual tour link.","format":"uri"}},"example":{"status_key":"withdrawn"},"additionalProperties":false}}}}},"put":{"summary":"Same as PATCH","operationId":"put_properties_by_id","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"owner_customer_id":{"type":["integer","null"],"description":"The owner — a customer of this business."},"address":{"type":"string","description":"Street address. Required on create."},"city":{"type":"string","description":"City. Required on create."},"neighborhood":{"type":["string","null"],"description":"Neighbourhood."},"property_type":{"type":"string","enum":["apartment","house","commercial","land","other"]},"deal_type":{"type":"string","enum":["sale","rent"]},"rooms":{"type":["number","null"],"description":"Rooms (3.5 allowed)."},"floor":{"type":["integer","null"],"description":"Floor."},"total_floors":{"type":["integer","null"],"description":"Floors in the building."},"sqm":{"type":["number","null"],"description":"Area in m²."},"price":{"type":["number","null"],"description":"Asking price / monthly rent in ILS."},"is_exclusive":{"type":"boolean","description":"Exclusive listing."},"exclusivity_start":{"type":["string","null"],"format":"date","description":"Exclusivity start (YYYY-MM-DD)."},"exclusivity_end":{"type":["string","null"],"format":"date","description":"Exclusivity end (YYYY-MM-DD)."},"status_id":{"type":"integer","description":"Status id from GET /meta/property-statuses — or send status_key (not both)."},"status_key":{"type":"string","description":"Status by key: recruited, marketing, negotiation, contract, closed, withdrawn… (GET /meta/property-statuses)."},"notes":{"type":["string","null"],"description":"Internal notes."},"marketplace_description":{"type":["string","null"],"description":"The public listing text."},"show_exact_address":{"type":"boolean","description":"Show the exact address on the public listing."},"video_url":{"type":["string","null"],"description":"A video link.","format":"uri"},"virtual_tour_url":{"type":["string","null"],"description":"A virtual tour link.","format":"uri"}},"example":{"status_key":"withdrawn"},"additionalProperties":false}}}}},"delete":{"summary":"Delete a property permanently (refused while it has a collaboration with another broker)","operationId":"delete_properties_by_id","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/meta/property-statuses":{"get":{"summary":"The status ids a property can hold","operationId":"get_meta_property_statuses","tags":["properties"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `properties:read`."}},"/tasks":{"get":{"summary":"List tasks and reminders","operationId":"get_tasks","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:read`.","parameters":[{"name":"status","in":"query","required":false,"description":"Only these statuses, comma separated (see /meta/task-statuses): new,in_progress,on_hold,completed,cancelled","schema":{"type":"string"}},{"name":"open","in":"query","required":false,"description":"1 for open tasks only (new, in_progress, on_hold)","schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"description":"Only tasks linked to this customer","schema":{"type":"string"}},{"name":"property_id","in":"query","required":false,"description":"Only tasks linked to this property","schema":{"type":"string"}},{"name":"project_id","in":"query","required":false,"description":"Only tasks of this project","schema":{"type":"string"}},{"name":"assigned_to","in":"query","required":false,"description":"Only tasks assigned to this team member (see /meta/users)","schema":{"type":"string"}},{"name":"priority","in":"query","required":false,"description":"low | medium | high | urgent","schema":{"type":"string"}},{"name":"due_from","in":"query","required":false,"description":"YYYY-MM-DD — due on or after","schema":{"type":"string"}},{"name":"due_to","in":"query","required":false,"description":"YYYY-MM-DD — due on or before","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Search in the title","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 — only records changed since (incremental sync)","schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"description":"1 to include archived tasks","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100, default 25","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page","schema":{"type":"string"}}]},"post":{"summary":"Create a task (optionally linked to a customer or a property)","operationId":"post_tasks","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:write`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","description":"Required on create; cannot be cleared.","minLength":1,"maxLength":200},"description":{"type":["string","null"],"description":"Details. Returned only to keys allowed clinical text.","maxLength":5000},"status":{"type":"string","description":"Default on create: new. `archived` is not writable — see GET /meta/task-statuses.","enum":["new","in_progress","on_hold","completed","cancelled"]},"priority":{"type":"string","description":"Default on create: medium.","enum":["low","medium","high","urgent"]},"category":{"type":["string","null"],"description":"Free-text category.","maxLength":100},"due_date":{"type":["string","null"],"format":"date","description":"Due day (YYYY-MM-DD); null clears."},"due_time":{"type":["string","null"],"description":"Due time HH:MM — needs a due_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$"},"due_at":{"type":["string","null"],"format":"date-time","description":"Due day and time at once — instead of due_date + due_time (not both); null clears both."},"start_date":{"type":["string","null"],"format":"date","description":"Start day (YYYY-MM-DD)."},"reminder_lead_minutes":{"type":["integer","null"],"description":"Remind the assignee this many minutes before the due moment; -1 = never; null = the business default."},"customer_id":{"type":["integer","null"],"description":"Link the task to a customer (GET /customers, /customers/lookup); null unlinks."},"property_id":{"type":["integer","null"],"description":"Real estate: link to a property; null unlinks."},"project_id":{"type":["integer","null"],"description":"Link to a project; null unlinks."},"assigned_to":{"type":["integer","null"],"description":"Assignee (GET /meta/users). Omitted on create = the key's owner; null = unassigned (an unassigned task is never reminded)."},"estimated_hours":{"type":["number","null"],"description":"Estimated hours."},"tags":{"type":["array","null"],"maxItems":20,"items":{"type":"string"},"description":"Tag names, up to 20 (replaces the list)."}},"example":{"title":"להתקשר לגבי תור המשך","customer_id":1532,"due_at":"2026-11-01T09:00:00+02:00","priority":"high"},"additionalProperties":false}}}}}},"/tasks/{id}":{"get":{"summary":"Get one task","operationId":"get_tasks_by_id","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a task (only the fields sent; null clears)","operationId":"patch_tasks_by_id","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Required on create; cannot be cleared.","minLength":1,"maxLength":200},"description":{"type":["string","null"],"description":"Details. Returned only to keys allowed clinical text.","maxLength":5000},"status":{"type":"string","description":"Default on create: new. `archived` is not writable — see GET /meta/task-statuses.","enum":["new","in_progress","on_hold","completed","cancelled"]},"priority":{"type":"string","description":"Default on create: medium.","enum":["low","medium","high","urgent"]},"category":{"type":["string","null"],"description":"Free-text category.","maxLength":100},"due_date":{"type":["string","null"],"format":"date","description":"Due day (YYYY-MM-DD); null clears."},"due_time":{"type":["string","null"],"description":"Due time HH:MM — needs a due_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$"},"due_at":{"type":["string","null"],"format":"date-time","description":"Due day and time at once — instead of due_date + due_time (not both); null clears both."},"start_date":{"type":["string","null"],"format":"date","description":"Start day (YYYY-MM-DD)."},"reminder_lead_minutes":{"type":["integer","null"],"description":"Remind the assignee this many minutes before the due moment; -1 = never; null = the business default."},"customer_id":{"type":["integer","null"],"description":"Link the task to a customer (GET /customers, /customers/lookup); null unlinks."},"property_id":{"type":["integer","null"],"description":"Real estate: link to a property; null unlinks."},"project_id":{"type":["integer","null"],"description":"Link to a project; null unlinks."},"assigned_to":{"type":["integer","null"],"description":"Assignee (GET /meta/users). Omitted on create = the key's owner; null = unassigned (an unassigned task is never reminded)."},"estimated_hours":{"type":["number","null"],"description":"Estimated hours."},"tags":{"type":["array","null"],"maxItems":20,"items":{"type":"string"},"description":"Tag names, up to 20 (replaces the list)."}},"example":{"status":"completed"},"additionalProperties":false}}}}},"put":{"summary":"Same as PATCH","operationId":"put_tasks_by_id","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Required on create; cannot be cleared.","minLength":1,"maxLength":200},"description":{"type":["string","null"],"description":"Details. Returned only to keys allowed clinical text.","maxLength":5000},"status":{"type":"string","description":"Default on create: new. `archived` is not writable — see GET /meta/task-statuses.","enum":["new","in_progress","on_hold","completed","cancelled"]},"priority":{"type":"string","description":"Default on create: medium.","enum":["low","medium","high","urgent"]},"category":{"type":["string","null"],"description":"Free-text category.","maxLength":100},"due_date":{"type":["string","null"],"format":"date","description":"Due day (YYYY-MM-DD); null clears."},"due_time":{"type":["string","null"],"description":"Due time HH:MM — needs a due_date.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$"},"due_at":{"type":["string","null"],"format":"date-time","description":"Due day and time at once — instead of due_date + due_time (not both); null clears both."},"start_date":{"type":["string","null"],"format":"date","description":"Start day (YYYY-MM-DD)."},"reminder_lead_minutes":{"type":["integer","null"],"description":"Remind the assignee this many minutes before the due moment; -1 = never; null = the business default."},"customer_id":{"type":["integer","null"],"description":"Link the task to a customer (GET /customers, /customers/lookup); null unlinks."},"property_id":{"type":["integer","null"],"description":"Real estate: link to a property; null unlinks."},"project_id":{"type":["integer","null"],"description":"Link to a project; null unlinks."},"assigned_to":{"type":["integer","null"],"description":"Assignee (GET /meta/users). Omitted on create = the key's owner; null = unassigned (an unassigned task is never reminded)."},"estimated_hours":{"type":["number","null"],"description":"Estimated hours."},"tags":{"type":["array","null"],"maxItems":20,"items":{"type":"string"},"description":"Tag names, up to 20 (replaces the list)."}},"example":{"status":"completed"},"additionalProperties":false}}}}},"delete":{"summary":"Delete a task permanently","operationId":"delete_tasks_by_id","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/meta/task-statuses":{"get":{"summary":"The statuses a task can hold","operationId":"get_meta_task_statuses","tags":["tasks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `tasks:read`."}},"/webhooks":{"get":{"summary":"List the business's webhooks","operationId":"get_webhooks","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`."},"post":{"summary":"Subscribe a URL to events (returns no secret — you chose it)","operationId":"post_webhooks","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","events","secret"],"properties":{"url":{"type":"string","description":"Your receiver — https only.","format":"uri"},"events":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Event names (see GET /meta/webhook-events and `webhooks` in this document). Through the API: the customer.*, appointment.*, activity.*, task.* and property.* events whose read scope the key holds; `*` and invoice / document / agreement events are set up in BaseCRM."},"secret":{"type":"string","description":"The signing secret you choose (16+ characters); never returned.","minLength":16},"description":{"type":["string","null"],"description":"A label for you.","maxLength":255}},"example":{"url":"https://example.com/hooks/basecrm","events":["customer.status_changed","appointment.created","appointment.status_changed"],"secret":"a-long-random-secret-1234"},"additionalProperties":false}}}}}},"/webhooks/{id}":{"get":{"summary":"Get one webhook","operationId":"get_webhooks_by_id","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Change a webhook: url, events, secret, is_active, description","operationId":"patch_webhooks_by_id","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Your receiver — https only.","format":"uri"},"events":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Event names (see GET /meta/webhook-events and `webhooks` in this document). Through the API: the customer.*, appointment.*, activity.*, task.* and property.* events whose read scope the key holds; `*` and invoice / document / agreement events are set up in BaseCRM."},"secret":{"type":"string","description":"The signing secret you choose (16+ characters); never returned.","minLength":16},"is_active":{"type":"boolean","description":"PATCH: false pauses the hook, true resumes it."},"description":{"type":["string","null"],"description":"A label for you.","maxLength":255}},"example":{"is_active":false},"additionalProperties":false}}}}},"delete":{"summary":"Remove a webhook","operationId":"delete_webhooks_by_id","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/webhooks/{id}/test":{"post":{"summary":"Send a test event now","operationId":"post_webhooks_by_id_test","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Retry-safe: the same key with the same body is answered once and replayed.","schema":{"type":"string","maxLength":128}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/webhooks/{id}/deliveries":{"get":{"summary":"The delivery queue of a webhook: status, attempts, next retry","operationId":"get_webhooks_by_id_deliveries","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/meta/webhook-events":{"get":{"summary":"The events a webhook can subscribe to","operationId":"get_meta_webhook_events","tags":["webhooks"],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"description":"Requires scope `webhooks:manage`."}}},"webhooks":{"customer.created":{"post":{"summary":"customer.created","description":"Created on a screen, through the API, from a lead form, a public booking or a phone call. A lead form adds `source`.","operationId":"webhook_customer_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"customer.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":1532,"name":"דנה לוי","company":null,"email":"dana@example.com","phone":"050-1234567","customer_type":null},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"customer.updated":{"post":{"summary":"customer.updated","description":"Any save of the customer (screens, API, a lead form filling blanks). `changed` = the columns this write touched; `status` is the status key.","operationId":"webhook_customer_updated","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"customer.updated","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":1532,"name":"דנה לוי","company":null,"email":"dana@example.com","phone":"050-1234567","contact_type":"customer","customer_type":null,"status":"active","status_label":"פעיל","changed":["contact_type","status_id"]},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"customer.status_changed":{"post":{"summary":"customer.status_changed","description":"The lead stage or customer status moved (fired after customer.updated of the same write). Keys are stable; labels are what the business calls them.","operationId":"webhook_customer_status_changed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"customer.status_changed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":1532,"name":"דנה לוי","company":null,"email":"dana@example.com","phone":"050-1234567","contact_type":"lead","from_status":"new","from_status_label":"חדש","to_status":"contacted","to_status_label":"יצירת קשר"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"customer.merged":{"post":{"summary":"customer.merged","description":"Duplicate customers (secondary_ids) were merged into primary_id.","operationId":"webhook_customer_merged","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"customer.merged","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"primary_id":1532,"secondary_ids":[1610],"merged_count":1,"merge_ids":[88]},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"customer.merge_undone":{"post":{"summary":"customer.merge_undone","description":"A merge was undone.","operationId":"webhook_customer_merge_undone","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"customer.merge_undone","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"merge_id":88,"restored_customer_id":1610},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.created":{"post":{"summary":"appointment.created","description":"Booked on the calendar, through the API, or by the customer on the public booking page — the same keys from every door; the booking page adds import_source (\"booking\"). pending_approval true = a booking waiting for the business's approval (status is still scheduled; approval fires appointment.updated with pending_approval false, a decline fires appointment.status_changed with reason \"declined\"). The later occurrences a recurring series generates fire nothing. id and customer_id may arrive as strings. manage_url = the customer's personal link to this appointment (confirm arrival, \"can't make it\", and — when the business allows it — request another time); put it in your WhatsApp / SMS message. It changes when the appointment moves to another day. Also on GET /appointments/{id}, beside reschedule_request and cancel_request.","operationId":"webhook_appointment_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":true,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.updated":{"post":{"summary":"appointment.updated","description":"Any change: moved to another time (appointment_date / appointment_time / ends_at change), edited, cancelled (also by the customer's cancel link or a declined request), a booking request approved (pending_approval → false), arrival confirmed or un-confirmed (arrival_confirmed_at; arrival_confirmed_via = customer from the reminder's link, staff from the calendar; or via POST /appointments/{id}/arrival). Who made other changes is not sent — see cancelled_by on appointment.status_changed. id and customer_id may arrive as strings.","operationId":"webhook_appointment_updated","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.updated","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":"2026-11-01 18:04:12","arrival_confirmed_via":"customer","manage_url":"https://basecrm.co.il/confirm-arrival?t=…"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.status_changed":{"post":{"summary":"appointment.status_changed","description":"The status moved (fired after appointment.updated of the same write): cancelled, completed, no_show… Carries from_status / to_status, and where known: cancelled_by = \"customer\" (the cancel link in their email) or \"staff\" (a person on the calendar, one or in bulk; absent for API keys, a stopped series or a Google deletion); reason = \"declined\" (a booking request the business declined) or \"series_stopped\" (the business stopped a standing series).","operationId":"webhook_appointment_status_changed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.status_changed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-04","appointment_time":"12:00:00","status":"cancelled","duration_minutes":90,"ends_at":"2026-11-04 13:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","from_status":"scheduled","to_status":"cancelled","cancelled_by":"customer"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.reschedule_requested":{"post":{"summary":"appointment.reschedule_requested","description":"The customer asked, from the appointment's personal link (manage_url), to move it to another free time. Nothing moved yet — approve or reject in BaseCRM or with POST /appointments/{id}/reschedule-request. A new request replaces the previous one. Offered only when the business switched on \"customers may request another time\" in the online booking settings.","operationId":"webhook_appointment_reschedule_requested","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.reschedule_requested","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","reschedule_request":{"id":77,"status":"pending","from_date":"2026-11-02","from_time":"10:00","requested_date":"2026-11-04","requested_time":"12:00","has_note":false,"created_at":"2026-10-30 09:12:00","decided_at":null}},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.reschedule_approved":{"post":{"summary":"appointment.reschedule_approved","description":"The business approved: every service of the visit moved by the same offset (each also fires appointment.updated). data = the first service, at its NEW time; manage_url is the new link.","operationId":"webhook_appointment_reschedule_approved","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.reschedule_approved","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-04","appointment_time":"12:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-04 13:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","reschedule_request":{"id":77,"status":"approved","from_date":"2026-11-02","from_time":"10:00","requested_date":"2026-11-04","requested_time":"12:00","has_note":false,"created_at":"2026-10-30 09:12:00","decided_at":"2026-10-30 10:01:00"}},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.reschedule_rejected":{"post":{"summary":"appointment.reschedule_rejected","description":"The business rejected: nothing moved, the appointment keeps its original time.","operationId":"webhook_appointment_reschedule_rejected","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.reschedule_rejected","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","reschedule_request":{"id":77,"status":"rejected","from_date":"2026-11-02","from_time":"10:00","requested_date":"2026-11-04","requested_time":"12:00","has_note":false,"created_at":"2026-10-30 09:12:00","decided_at":"2026-10-30 10:01:00"}},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.cancel_requested":{"post":{"summary":"appointment.cancel_requested","description":"The customer asked, from the appointment's personal link (manage_url), to cancel it. Sent only when the business switched on \"a cancellation from the personal link waits for approval\" — otherwise \"can't make it\" cancels at once (appointment.status_changed, cancelled_by customer). Nothing was cancelled yet: approve or reject in BaseCRM or with POST /appointments/{id}/cancel-request. Approval fires appointment.status_changed (to_status cancelled, cancelled_by customer). The reason the customer wrote stays in BaseCRM.","operationId":"webhook_appointment_cancel_requested","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.cancel_requested","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","cancel_request":{"status":"pending","requested_at":"2026-10-30 09:12:00"}},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.cancel_rejected":{"post":{"summary":"appointment.cancel_rejected","description":"The business rejected the customer's request to cancel: the appointment stands, and the customer was told by e-mail.","operationId":"webhook_appointment_cancel_rejected","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.cancel_rejected","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"scheduled","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","cancel_request":{"status":"rejected","requested_at":null}},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"appointment.payment_changed":{"post":{"summary":"appointment.payment_changed","description":"The appointment's money moved. trigger = marked_paid | unmarked_paid | document_issued | payment_recorded | refunded | document_cancelled; document_id = the document that moved it. payment: state = unpaid | paid_no_document (marked paid, no document) | document_open (a document still owed — paid_amount > 0 means a deposit / part payment, is_partial true) | document_settled (paid in full); price = what the appointment is charged (gross); paid_amount / balance = this appointment's money (null when document.shared — one batch document billing several appointments — has not yet covered it); refunded_amount = credit notes and refund receipts on its documents. Also on GET /appointments/{id} as `payment`. Several doors can announce the same action (marking paid issues a document): read payment.state, not the count of events. Which treatment: category_id (GET /meta/appointment-categories) and title; \"the treatment took place\" is appointment.status_changed with to_status completed.","operationId":"webhook_appointment_payment_changed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"appointment.payment_changed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":9001,"customer_id":1532,"title":"צבע + פן","appointment_date":"2026-11-02","appointment_time":"10:00:00","status":"completed","duration_minutes":90,"ends_at":"2026-11-02 11:30:00","pending_approval":false,"arrival_confirmed_at":null,"arrival_confirmed_via":null,"manage_url":"https://basecrm.co.il/confirm-arrival?t=…","payment":{"state":"document_open","price":450,"paid_amount":150,"balance":300,"is_partial":true,"refunded_amount":0,"document":{"id":4410,"document_type":"305","number":"20045","total":450,"paid":150,"credited":0,"shared":false}},"trigger":"payment_recorded","document_id":4411},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"invoice.created":{"post":{"summary":"invoice.created","description":"A document was issued. Subscribed in BaseCRM only.","operationId":"webhook_invoice_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"invoice.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":4410,"number":"20045","customer_id":1532,"total_amount":"590.00","document_type":"320","invoice_date":"2026-10-27"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"invoice.paid":{"post":{"summary":"invoice.paid","description":"A payment was recorded on a document. Subscribed in BaseCRM only. Paid online, data is: id, number, customer_id, amount_paid, paid_amount, total_amount, fully_paid, receipt_id, payment_method.","operationId":"webhook_invoice_paid","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"invoice.paid","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"receipt_id":4411,"invoice_id":4410,"invoice_number":"20045","amount":590,"payment_method":"cash"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"document.sent":{"post":{"summary":"document.sent","description":"A document email went out. Subscribed in BaseCRM only.","operationId":"webhook_document_sent","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"document.sent","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"send_id":301,"invoice_id":4410,"customer_id":1532,"kind":"initial","reminder_step":null,"sent_at":"2026-10-27 10:00:00","delivery_status":"sent","delivered_at":null,"opened_at":null,"open_is_proxy":false,"bounced_at":null,"reason":null},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"document.delivery_changed":{"post":{"summary":"document.delivery_changed","description":"The mail provider reported a document email delivered, opened or bounced. Same data as document.sent. Subscribed in BaseCRM only.","operationId":"webhook_document_delivery_changed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"document.delivery_changed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"send_id":301,"invoice_id":4410,"customer_id":1532,"kind":"initial","reminder_step":null,"sent_at":"2026-10-27 10:00:00","delivery_status":"delivered","delivered_at":"2026-10-27 10:00:05","opened_at":null,"open_is_proxy":false,"bounced_at":null,"reason":null},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"document.viewed":{"post":{"summary":"document.viewed","description":"The customer opened the shared document page. Subscribed in BaseCRM only.","operationId":"webhook_document_viewed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"document.viewed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"invoice_id":4410,"customer_id":1532,"document_type":"320","invoice_number":"20045","viewed_at":"2026-10-27 11:02:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"document.acknowledged":{"post":{"summary":"document.acknowledged","description":"The customer pressed \"אישור קבלה\" on the shared document. Subscribed in BaseCRM only.","operationId":"webhook_document_acknowledged","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"document.acknowledged","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"invoice_id":4410,"customer_id":1532,"document_type":"320","invoice_number":"20045","acknowledged_at":"2026-10-27 11:03:00","acknowledged_name":"דנה לוי"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"task.created":{"post":{"summary":"task.created","description":"Created on a screen or through the API (not by imports or the recurring generator).","operationId":"webhook_task_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"task.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":702,"title":"להתקשר לגבי תור המשך","priority":"high","category":null,"due_date":"2026-11-01","assigned_to":5,"customer_id":1532,"completed_by":null,"status":"new","due_time":"09:00","due_at":"2026-11-01T09:00:00+02:00","start_date":null,"property_id":null,"project_id":null,"is_archived":false,"completed_at":null,"updated_at":"2026-10-27 10:00:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"task.completed":{"post":{"summary":"task.completed","description":"The status moved into completed, from any door. Same data as task.created.","operationId":"webhook_task_completed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"task.completed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":702,"title":"להתקשר לגבי תור המשך","priority":"high","category":null,"due_date":"2026-11-01","assigned_to":5,"customer_id":1532,"completed_by":5,"status":"completed","due_time":"09:00","due_at":"2026-11-01T09:00:00+02:00","start_date":null,"property_id":null,"project_id":null,"is_archived":false,"completed_at":"2026-10-31 16:20:00","updated_at":"2026-10-31 16:20:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"task.updated":{"post":{"summary":"task.updated","description":"Any write of a task, completion and archive included. Same data as task.created plus `changed` (the fields this write touched).","operationId":"webhook_task_updated","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"task.updated","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":702,"title":"להתקשר לגבי תור המשך","priority":"urgent","category":null,"due_date":"2026-11-01","assigned_to":5,"customer_id":1532,"completed_by":null,"status":"new","due_time":"09:00","due_at":"2026-11-01T09:00:00+02:00","start_date":null,"property_id":null,"project_id":null,"is_archived":false,"completed_at":null,"updated_at":"2026-10-28 08:00:00","changed":["priority"]},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"task.deleted":{"post":{"summary":"task.deleted","description":"Deleted permanently. data = the task as it stood.","operationId":"webhook_task_deleted","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"task.deleted","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":702,"title":"להתקשר לגבי תור המשך","priority":"high","category":null,"due_date":"2026-11-01","assigned_to":5,"customer_id":1532,"completed_by":null,"status":"new","due_time":"09:00","due_at":"2026-11-01T09:00:00+02:00","start_date":null,"property_id":null,"project_id":null,"is_archived":false,"completed_at":null,"updated_at":"2026-10-27 10:00:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"activity.created":{"post":{"summary":"activity.created","description":"A call, meeting, note or email was logged on a customer — on a screen, through the API, or by the email, call and form intakes. No free text: GET /activities/{id} for summary and details.","operationId":"webhook_activity_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"activity.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":5120,"customer_id":1532,"customer_name":"דנה לוי","type":"call","interaction_at":"2026-10-27 10:30:00","ends_at":null,"follow_up_date":"2026-11-03","user_id":5},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"activity.updated":{"post":{"summary":"activity.updated","description":"An activity was edited. Same data as activity.created plus `changed`.","operationId":"webhook_activity_updated","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"activity.updated","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":5120,"customer_id":1532,"customer_name":"דנה לוי","type":"call","interaction_at":"2026-10-27 10:30:00","ends_at":"2026-10-27 10:45:00","follow_up_date":"2026-11-03","user_id":5,"changed":["ends_at"]},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"agreement.card_saved":{"post":{"summary":"agreement.card_saved","description":"Standing order: the customer saved the card of a billing agreement. Subscribed in BaseCRM only.","operationId":"webhook_agreement_card_saved","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"agreement.card_saved","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"agreement_id":61,"customer_id":1532,"card_last4":"4242"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"agreement.charged":{"post":{"summary":"agreement.charged","description":"Standing order: an installment was charged and its document issued. Subscribed in BaseCRM only.","operationId":"webhook_agreement_charged","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"agreement.charged","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"installment_id":610,"customer_id":1532,"amount":250,"document_id":4420},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"agreement.charge_failed":{"post":{"summary":"agreement.charge_failed","description":"Standing order: an installment was parked after its last declined attempt. Subscribed in BaseCRM only.","operationId":"webhook_agreement_charge_failed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"agreement.charge_failed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"agreement_id":61,"installment_id":611,"reason":"declined"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"agreement.cancelled":{"post":{"summary":"agreement.cancelled","description":"A billing agreement was cancelled, by the business or by the customer. Subscribed in BaseCRM only.","operationId":"webhook_agreement_cancelled","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"agreement.cancelled","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"agreement_id":61,"cancelled_by":"customer","installments_cancelled":4},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"agreement.schedule_changed":{"post":{"summary":"agreement.schedule_changed","description":"Standing order: the customer answered a new schedule the business proposed. `decision` is approved or declined; on declined the old schedule simply continues. Subscribed in BaseCRM only.","operationId":"webhook_agreement_schedule_changed","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"agreement.schedule_changed","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"agreement_id":61,"change_id":7,"decision":"approved"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"property.created":{"post":{"summary":"property.created","description":"Real estate: a listing was added. No notes or description: GET /properties/{id}.","operationId":"webhook_property_created","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"property.created","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":210,"address":"הרצל 10","city":"תל אביב","neighborhood":null,"property_type":"apartment","deal_type":"sale","rooms":4,"sqm":95,"price":2950000,"is_exclusive":true,"exclusivity_end":"2027-01-31","owner_customer_id":1532,"status_id":41,"status_key":"marketing","updated_at":"2026-10-27 10:00:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"property.updated":{"post":{"summary":"property.updated","description":"Real estate: a listing changed. Same data as property.created plus `changed`.","operationId":"webhook_property_updated","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"property.updated","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":210,"address":"הרצל 10","city":"תל אביב","neighborhood":null,"property_type":"apartment","deal_type":"sale","rooms":4,"sqm":95,"price":2890000,"is_exclusive":true,"exclusivity_end":"2027-01-31","owner_customer_id":1532,"status_id":41,"status_key":"marketing","updated_at":"2026-10-28 09:00:00","changed":["price"]},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}},"property.deleted":{"post":{"summary":"property.deleted","description":"Real estate: a listing was deleted. data = the property as it stood.","operationId":"webhook_property_deleted","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"event":"property.deleted","business_id":77,"timestamp":"2026-10-27T10:30:02+02:00","data":{"id":210,"address":"הרצל 10","city":"תל אביב","neighborhood":null,"property_type":"apartment","deal_type":"sale","rooms":4,"sqm":95,"price":2890000,"is_exclusive":true,"exclusivity_end":"2027-01-31","owner_customer_id":1532,"status_id":41,"status_key":"marketing","updated_at":"2026-10-28 09:00:00"},"id":"3f9c2b7e8a1d4c6f9b0e2a5d7c8f1e43"}}}},"responses":{"2XX":{"description":"Received. Anything else (or no answer within 10 s) is retried."}}}}}}