{"title":"Lead workspace API","version":"0.3","baseUrl":"https://sales-crm.powercode.space","apiBase":"https://sales-crm.powercode.space/api","documentationUrl":"https://sales-crm.powercode.space/docs/openclaw","authentication":"None. In production restrict the network or add token checks in Express.","endpoints":[{"method":"GET","path":"https://sales-crm.powercode.space/api/companies","about":"Company list; newest by updated_at first."},{"method":"GET","path":"https://sales-crm.powercode.space/api/companies/:id","about":"Company + decision_makers. Full JSON document from Mongo for the current schema. Corporate email is company_email."},{"method":"POST","path":"https://sales-crm.powercode.space/api/companies","about":"Create. JSON; name required. Content-Type: application/json."},{"method":"PATCH","path":"https://sales-crm.powercode.space/api/companies/:id","about":"Partial update (JSON). Company mail is company_email."},{"method":"DELETE","path":"https://sales-crm.powercode.space/api/companies/:id","about":"Delete company and all DMs."},{"method":"POST","path":"https://sales-crm.powercode.space/api/companies/:companyId/decision-makers","about":"Add DM. full_name required; company_id from URL."},{"method":"PATCH","path":"https://sales-crm.powercode.space/api/decision-makers/:id","about":"Update DM; company_id in body is ignored."},{"method":"DELETE","path":"https://sales-crm.powercode.space/api/decision-makers/:id","about":"Delete DM."}],"companyBodyKeys":["name","website","linkedin_company_url","description","industry_segment","headcount","country","source","company_email","buying_signals","notes","enrichment_status","validation_status","outreach_status","company_email_verify_status","company_email_verified_at"],"decisionMakerBodyKeys":["full_name","title","linkedin_profile_url","email","email_status","notes","email_verify_status","email_verified_at"],"companyFieldGuide":{"name":"Required on create.","company_email":"Company email (info@, contact@, sales@ …). Single field for corporate mail.","website":"URL string.","linkedin_company_url":"URL string.","description":"Free text.","industry_segment":"String.","headcount":"String (range or number as text).","country":"String.","source":"String.","buying_signals":"Text.","notes":"Text.","enrichment_status":"Pipeline string; default \"-\" (not started yet).","validation_status":"Pipeline string; default \"-\".","outreach_status":"Pipeline string; default \"-\".","company_email_verify_status":"Usually read-only: updated by cron after external email verification. PATCH can overwrite — not recommended.","company_email_verified_at":"Time of last external check for company_email; set by cron.","created_at":"read-only (timestamps).","updated_at":"read-only (timestamps).","_id":"read-only Mongo ObjectId."},"decisionMakerFieldGuide":{"full_name":"Required when creating a DM.","email":"Contact person email; do not confuse with company_email.","email_status":"Internal status (unknown, found, verified, invalid, bounced) — not the same as external verification status.","title":"String.","linkedin_profile_url":"URL string.","notes":"Text.","email_verify_status":"Updated by cron after external verification; manual PATCH not recommended.","email_verified_at":"Time of last external check for DM email; cron.","company_id":"Taken from URL on POST; ignored on PATCH.","created_at":"read-only.","updated_at":"read-only.","_id":"read-only."},"canonicalPayload":{"company_email_field":"company_email","decision_maker_email_field":"email","legacy_note":"general_email was removed from the schema; on server start legacy values migrate into company_email and are removed from the document."},"reminders":["POST/PATCH: Content-Type: application/json.","ObjectId is 24 hex characters.","Company mail is company_email; personal mail only on decision_makers[].email.","general_email is no longer used (migration runs on server start).","External email check: cron every 15 min (provider in .env). Do not hand-edit *_verify_* mail fields from the API.","Field details: companyFieldGuide, decisionMakerFieldGuide, canonicalPayload. GET https://sales-crm.powercode.space/docs/openclaw"]}