{"openapi":"3.0.3","info":{"title":"Dealership Companion App (DCA) API","version":"0.1.0","description":"Dealer-operations API (Express + Drizzle + Postgres + better-auth + Socket.IO). Runs in DATA_BACKEND=memory + DEV_BYPASS_AUTH for early development."},"servers":[{"url":"https://api.dca.systems"}],"components":{"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token"},"devUser":{"type":"apiKey","in":"header","name":"x-dev-user-id"},"devOrg":{"type":"apiKey","in":"header","name":"x-dev-organization-id"},"devRole":{"type":"apiKey","in":"header","name":"x-dev-role"}}},"security":[{"sessionCookie":[]},{"devUser":[],"devOrg":[],"devRole":[]}],"paths":{"/health":{"get":{"summary":"Liveness probe","security":[],"responses":{"200":{"description":"OK"}}}},"/openapi.json":{"get":{"summary":"This document","security":[],"responses":{"200":{"description":"Success"}}}},"/api/auth/config":{"get":{"summary":"Public auth config ({ signupEnabled })","security":[],"responses":{"200":{"description":"Success"}}}},"/api/admin/platform-settings":{"get":{"summary":"Platform settings (platform admin)","responses":{"200":{"description":"Success"}}},"put":{"summary":"Update platform settings, e.g. { signupEnabled } (platform admin)","responses":{"200":{"description":"Success"}}}},"/api/me":{"get":{"summary":"Current identity + active org","responses":{"200":{"description":"Success"}}}},"/api/organizations":{"get":{"summary":"List memberships","responses":{"200":{"description":"Success"}}}},"/api/organizations/active":{"post":{"summary":"Switch active organization","responses":{"200":{"description":"Success"},"403":{"description":"Not a member"}}}},"/api/dashboard":{"get":{"summary":"Dashboard counts + recents","responses":{"200":{"description":"Success"}}}},"/api/customers":{"get":{"summary":"List customers","responses":{"200":{"description":"Success"}}}},"/api/customers/{id}":{"get":{"summary":"Customer detail","responses":{"200":{"description":"Success"}}}},"/api/machines":{"get":{"summary":"List machines","responses":{"200":{"description":"Success"}}}},"/api/machines/{id}":{"get":{"summary":"Machine detail","responses":{"200":{"description":"Success"}}}},"/api/parts":{"get":{"summary":"List parts (with lowStock)","responses":{"200":{"description":"Success"}}}},"/api/kits":{"get":{"summary":"List kits with components","responses":{"200":{"description":"Success"}}}},"/api/quotes":{"get":{"summary":"List quotes + pipeline","responses":{"200":{"description":"Success"}}}},"/api/quotes/{id}":{"get":{"summary":"Quote detail + totals","responses":{"200":{"description":"Success"}}}},"/api/quotes/{id}/issue":{"post":{"summary":"Issue quote","responses":{"200":{"description":"Success"}}}},"/api/quotes/{id}/accept":{"post":{"summary":"Accept quote","responses":{"200":{"description":"Success"}}}},"/api/quotes/{id}/create-job":{"post":{"summary":"Create a linked job from quote","responses":{"201":{"description":"Job created"}}}},"/api/jobs":{"get":{"summary":"List jobs","responses":{"200":{"description":"Success"}}}},"/api/jobs/assigned":{"get":{"summary":"Jobs assigned to current user","responses":{"200":{"description":"Success"}}}},"/api/jobs/{id}":{"get":{"summary":"Job detail + steps","responses":{"200":{"description":"Success"}}}},"/api/jobs/{id}/evidence/{evidenceId}":{"post":{"summary":"Update an evidence item","responses":{"200":{"description":"Success"}}}},"/api/jobs/{id}/submit":{"post":{"summary":"Submit job for office review","responses":{"200":{"description":"Success"},"422":{"description":"Mandatory evidence incomplete"}}}},"/api/schedule":{"get":{"summary":"Schedule (jobs + assignments)","responses":{"200":{"description":"Success"}}}},"/api/reports":{"get":{"summary":"Finance reports","responses":{"200":{"description":"Success"}}}}}}