# CollaborateMD WebAPI > Partner integration API for CollaborateMD, a healthcare billing system. Create and submit claims, > create and update patients & appointments, check insurance eligibility, poll for changes, and download ERA > (835) and claim (837) files. Payloads are XML, HL7 v2.3.1, or ANSI X12 837, depending on the endpoint. ## Two conventions to know before writing any code 1. **Authentication is HTTP Basic.** Send `Authorization: Basic base64(username:password)` on every request. 2. **HTTP 200 does not mean success.** Most endpoints return 200 OK and report the real outcome in a body-level `Status` field, whose values are usually `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`, with detail in `StatusMessage` (the OpenAPI endpoint documentation specifies the actual values per endpoint). Code that treats 200 as success will silently mishandle errors. The only exceptions are the binary-download endpoints, which use real HTTP status codes. ## Machine-readable specification - [OpenAPI 3.1 specification](/openapi.json): all partner-facing operations, with schemas, requiredness, and per-operation permissions. Start here. - [XML schema v1](/docs/schemas/cmd_schema_v1.xsd) — generated from the v1 Java model during the build, for v1 endpoints. - [XML schema v2](/docs/schemas/cmd_schema_v2.xsd) — generated from the staged v1 model plus v2 Java sources during the build; it uses the v2 namespace and includes v2-only response fields. OpenAPI describes HTTP operations; these generated XML schemas describe XML payloads for XML consumers. ## Start here - [Getting started](/docs/guides/getting-started.md) — Obtain credentials, understand the sandbox environment, and make your first successful API call. ## Workflows - [Create a claim](/docs/guides/create-a-claim.md) — This guide covers the complete workflow for creating a claim in CollaborateMD. - [Create and update patients](/docs/guides/patient-create-update.md) — This guide covers creating and updating patient records in CollaborateMD, supporting both XML and HL7 payload formats. - [Provider & Facility Matching](/docs/guides/provider-facility-matching.md) — When creating Claims and Patients in CollaborateMD, the system requires that the Rendering Provider you send matches a Provider entered into CollaborateMD. - [Check eligibility](/docs/guides/check-eligibility.md) — This guide covers verifying insurance eligibility and estimating patient responsibility for a claim. - [Poll for updates](/docs/guides/poll-for-updates.md) — Poll the API periodically to retrieve Patients or Appointments updated since your last check. - [Download 835 (ERA) and 837 (Claim) files](/docs/guides/download-835-837.md) — This guide covers downloading insurance remittance files (835 ERA) and claim files (837) from CollaborateMD. - [Running Reports](/docs/guides/running-reports.md) — Run a custom CollaborateMD report for one or more customers, poll its status, and retrieve its CSV results. ## Reference - [Reading responses](/docs/guides/reading-responses.md) — All authenticated requests to a valid URL will receive a subclass of Generic Response and an HTTP Status of 200 OK. - [Error reference](/docs/guides/error-reference.md) — The WebAPI returns detailed error messages in the StatusMessage field. - [Content-Type requirements](/docs/guides/content-type-requirements.md) — The Content-Type header is required for all endpoints that accept XML. - [HL7 implementation reference](/docs/guides/hl7-reference.md) — This API supports version 2.3.1 of the HL7 specification, with some updates from later versions. - [Interface Tracker](/docs/guides/interface-tracker.md) — Interface Tracker is the home for API interactions within the CollaborateMD application. - [Downloads](/docs/guides/downloads.md) — Download build-generated API specifications: OpenAPI, XML schemas, and documentation index. ## Explanation - [Permissions](/docs/guides/permissions.md) — The CollaborateMD WebAPI uses role-based access control (RBAC); each operation requires one or more roles. - [v1 vs v2](/docs/guides/v1-vs-v2.md) — The CollaborateMD WebAPI versions each endpoint independently. - [Versioning and support](/docs/guides/versioning-and-support.md) — The CollaborateMD WebAPI follows a versioning policy designed for long-term partner stability. ## Notes for code generation - Multi-tenant. Paths are generally scoped by a customer number, `custno`. - Sandbox is by the `sandbox/` URL prefix. The sandbox only provides access to your specific sandbox customer. Production should remove the `sandbox/` prefix. - Some operations accept either XML or HL7 at different paths; these are alternatives, not a sequence. - Never hard-code a credential. Never log a request body — payloads carry protected health information.