ComTrack

API reference

BOB API

Read your Book of Business rows, with search, filters and paging, and add new rows to it from your own system. One API key reads and writes one case.

4 min readUpdated

GETPOSThttps://commissionconnector.com/api/bob

Read your Book of Business, and add rows to it, from outside ComTrack.

Two things you can do:

  • Get BOB data — list your BOB rows, with search, filters and paging
  • Add a BOB row — create one new row

Authentication

You need an API key for the case you want to read. Keys look like cc_live_… and are created per case inside ComTrack.

Send it on every request as an x-api-key header:

x-api-key: cc_live_…

The key already identifies the case, so there is no case ID anywhere in the URL. One key reads one case's BOB. If you work across several cases, you need one key each.

Base address:

https://commissionconnector.com/api/bob

Get BOB data

GET https://commissionconnector.com/api/bob
x-api-key: cc_live_…

Returns the first 10 rows by default.

What comes back

{
  "records": [
    {
      "agent_name": "Jane Agent",
      "carrier": "Aetna",
      "policy_number": "POL-12345"
    }
  ],
  "total": 12487,
  "page": 1,
  "limit": 10
}
Field Description
records The rows on this page
total How many rows match in total, ignoring paging
page / limit Echo of what you asked for

Paging

Setting Meaning Default
page Which page, starting at 1 1
limit Rows per page 10
GET /api/bob?page=3&limit=100

The largest page size is 200. Ask for more and you get 200. To pull everything, step through pages until you have collected total rows.

keywords searches across every column at once, matching partial text.

GET /api/bob?keywords=aetna

Sorting

GET /api/bob?keywords=aetna&order_by=effective_date&order=desc

order_by takes any field name from the response. order is asc or desc.

Please note: sorting is only applied when you also send keywords. Sorting on its own is ignored and you get the default order. Unknown field names are also ignored rather than rejected.

Filters

Filters target one column each. Send them as JSON:

GET /api/bob?filters=[{"column":"carrier","search":"Aetna"}]

Each filter is { "column": "<field name>", "search": "<text to match>" }. Send as many as you need. A row must match all of them.

Long filter lists

If your filters are too long for a web address, send them in the body instead:

POST https://commissionconnector.com/api/bob/query?page=1&limit=100
x-api-key: cc_live_…
Content-Type: application/json

{ "filters": [ { "column": "carrier", "search": "Aetna" } ] }

Please note: on this one, only filters goes in the body. page, limit, keywords, order_by and order still have to be in the web address, as shown above. Putting them in the body has no effect.

Add a BOB row

POST https://commissionconnector.com/api/bob
x-api-key: cc_live_…
Content-Type: application/json

{
  "agent_name": "Jane Agent",
  "carrier": "Aetna",
  "policy_number": "POL-12345",
  "client_full_name": "John Client",
  "effective_date": "01/15/2026"
}

Send any of the BOB fields. At least one has to have a value. Any field you leave out is simply left blank.

What comes back

201 Created with the new row, including the id ComTrack assigned it.

200 OK with an existing row means you already sent this one. See below.

Sending the same row twice is safe

If the row you send matches one already in the case, nothing new is created. You get 200 and the row that already exists, so a retry after a dropped connection or a re-run of an import can't create duplicates.

Important, and worth reading twice: two fields are not part of that comparison: paid_to_date and report_date.

So if you send a row that is identical to an existing one apart from a new paid_to_date, ComTrack treats it as the same row: you get 200, the row you get back still shows the old value, and your new value is not saved. It looks like success but nothing changed.

This endpoint adds rows. It does not update them. To change a value on a row that already exists, edit it in BOB Data.

Fields ComTrack controls

These are set by ComTrack and ignored if you send them: id, case_id, bob_link_id, record_hash, created_at, updated_at. The case always comes from your API key, so a row can never land in a different case.

Errors

Code Meaning What to do
200 Success, or, on add, "this row already existed" —
201 Row created —
400 Nothing usable in the request, e.g. every field blank Check the body
401 Key missing, wrong, or not recognised Check the x-api-key header
403 Access denied See the two reasons below
500 Something went wrong on our side Retry; if it persists, contact us

Two reasons for a 403

  1. The Business Associate Agreement has not been accepted. BOB holds personal health information, so the organisation that owns the key must have accepted the BAA before any BOB data can be read or written. The response says so, and includes a link to accept it. This has to be done once, by someone in the organisation, in ComTrack. It cannot be done through the API.
  2. The plan does not include API access.

Things worth knowing before you build

  • One key, one case. No case ID in the URL, ever.
  • 200 rows per page maximum. Page through for larger pulls.
  • Sorting needs keywords. On its own it is ignored.
  • On /query, only filters belongs in the body. Everything else stays in the web address.
  • Adding is not updating. Re-sending a row is safe but will not change values, and paid_to_date / report_date changes are silently ignored.
  • BOB data is sensitive. Rows include dates of birth, MBIs, phone numbers, email addresses and home addresses. Store and transmit it accordingly.

Was this article helpful?