Getting started
This guide walks you through obtaining credentials, enabling the Web API for a customer, understanding the sandbox environment, and making your first successful API call.
This website is the latest version of the API Documentation. Simply refresh the page to see the most recent information.
Obtaining Credentials
To access the Web API, you need partner credentials issued by CollaborateMD. Visit our Partner Page or contact Interface Support to request API access.
When you are granted access, you will receive:
- Your Test API username, something like
yourapitest - Your Test API password. Your password will contain letters, numbers, and symbols.
- If you forget or lose your API password, contact Interface Support to reset it.
- A Test
custnothat you can use in our Sandbox
Our interface support team will walk you through the testing process. Once you are approved to move to production, you will be given production credentials. You may continue to use your Test API credentials for development and testing, but all production access should use your production credentials:
- Your API username, something like ‘yourapi’
- Your API password. Your password will contain letters, numbers, and symbols.
- The list of customers that you can use with our API
API credentials are not CollaborateMD user credentials. API credentials can only be used to access this API. They cannot be used to log in to the CollaborateMD application.
Inactive Credentials
If you receive a 401 Unauthorized response even though you are sure that the username and password are correct, your credentials
may have been inactivated. To help ensure the security of your data, credentials are automatically marked as inactive after 90 days of inactivity.
To re-activate your credentials, please contact Interface Support. You will be provided with a new password when your credentials are re-activated.
Sandbox Credentials
Your sandbox credentials will only work in your sandboxed customer. On this site’s try-it console, all requests are routed to our sandbox/
URL, which only allows access to your sandbox customer. We recommend that you use the sandbox/ URL with all test requests. Do not enter
PHI into your test account.
⚠️ Even if your sandbox credentials have access to production customers, the
sandbox/URL will only allow access to the sandbox customer. Use the production URL (without thesandbox/prefix) for all production requests.
Enabling the Web API for a Customer
When you are approved for Production, you will be given access to your requested Customers and given their custno IDs.
If you need access to additional customers, please request access with our Interface Support team. If you use a custno that you don’t have access to,
you may receive one of the following error messages:
StatusMessage |
Status |
What it means |
|---|---|---|
The interface is not turned on for this customer. |
INVALID CRITERIA |
The customer is not set up with our API. |
Your credentials do not have access to the requested customer. |
ERROR |
The customer is setup with our API, but cannot be accessed with your credentials. |
Both arrive with HTTP 200, so you must check the Status and StatusMessage. See Error reference for details.
HTTP Basic Authentication
All requests use HTTP Basic Authentication. Your username and password are base64-encoded and sent in an Authorization header:
curl -X GET https://webapi.example.com/v1/customers \ -H "Authorization: Basic $(echo -n 'your-username:your-password' | base64)"For example, with credentials your-username and your-password, the base64-encoded string is eW91ci11c2VybmFtZTp5b3VyLXBhc3N3b3Jk, so the header is:
Authorization: Basic eW91ci11c2VybmFtZTp5b3VyLXBhc3N3b3JkMost HTTP clients (curl, Postman, your language’s HTTP library) handle this automatically when you provide the username and password.
Your First API Call
Once you have enabled the Web API for a customer, make a simple read-only request to retrieve the list of customers associated with your credential:
curl -X GET https://webapi.example.com/v1/customers \ -H "Accept: application/json" \ -H "Authorization: Basic $(echo -n 'your-username:your-password' | base64)"The Response
You will receive an HTTP 200 response with a body similar to:
{ "Status": "SUCCESS", "StatusMessage": "Customer list retrieved successfully", "VendorCustomer": [ { "CustomerName": "Example Practice Inc.", "CustomerNumber": "12345678", "AccountName": "Example Healthcare Account", "AccountNumber": "98765432" } ]}Responses are XML unless you ask for JSON with Accept: application/json. Either way, the field names are
the same: the JSON keys are the XML element names — capitalized and singular (e.g., VendorCustomer)
even where the value is a list.
HTTP 200 does not imply success. The Status field may indicate an error if the request is unsuccessful.
This field carries the actual outcome of the request. These four values are
the common ones:
Status: SUCCESSmeans the operation succeededStatus: ERRORmeans something went wrong (even if HTTP is 200)Status: NOT FOUNDmeans the resource does not existStatus: INVALID CRITERIAmeans the request parameters were invalid
Other statuses may be emitted by endpoints with specific error needs; see the documentation for each individual
endpoint for details on the possible statuses. Treat SUCCESS as the only success and send everything else to
your error path, rather than testing for the four above and falling through.
See Reading responses for more detail.
Exceptions to the 200-Status Convention
Some operations depart from the usual pattern and return standard HTTP status codes instead of 200:
- Binary-download operations (
download-837anddownload-835) — use standard HTTP status codes - 401 Unauthorized — returned when your credentials are invalid or expired
- Sandbox URLs (URLs starting with
/sandbox) return 403 Forbidden if you access a non-sandbox customer (even if your sandbox credentials have access to non-sandbox customers) - 404 Not Found — Returned when your URL is not one of our published endpoints.
- Certain service endpoints — a handful of operations return 404, 401, or 500 directly rather than
200 with a
Statusfield
See Reading Responses for more details and examples. In all cases, see the endpoint-specific documentation for the possible errors.
Next Steps
Now that you have successfully authenticated and retrieved customer information, explore the how-to guides:
- Create a Claim — Create patients claims in XML, HL7, or 837 format
- Create or Update a Patient — Manage patient records
- Check Eligibility — Verify insurance eligibility and estimate patient responsibility
- Poll for Updates — Retrieve updated patient and appointment records
- Download 835 (ERA) and 837 (Claim) Files — Retrieve insurance remittance and claim files
For details on any specific endpoint, browse the API Reference or use the try-it console there. See Permissions to understand which operations require specific roles.

