APIs and integrations

API layout

Endpoints are individual PHP scripts, not a single REST controller. Paths and request/response conventions vary between generations.

Path under public_html/API/Purpose and examples
0.1/Directory data: members.list.php, offices.list.php, practice-group endpoints
0.2/Directory search: members.search.php, firms.search.php, offices.lat_long.php
account/Account-related operations: status.get.php, status.update.php, clients.php
dashboard/Dashboard data, including searches_by_time.php
edit/Write operations for users, events, practice groups, and banner URLs
microservices/Internal create/read/update/delete services, including a separate v2/ tree

Scripts prefixed DELETE_, ERROR_, or containing test/backup names also exist. Do not treat their presence as a supported integration contract or invoke them without reviewing their behavior.

Request and response conventions

The shared bootstrap can decode a sole POST field named json into $_POST. Endpoints then perform their own validation; this is not a guarantee that every script accepts the same payload.

Shared responses commonly use:

{
  "success": 0,
  "result": {},
  "message": {
    "error": [],
    "info": [],
    "success": []
  }
}

This illustrates the envelope, not a fixed schema. result can be a list, an ID-keyed object, or another endpoint-specific structure. Some failure paths return HTTP 200, so integrations must inspect the response body as well as status.

Directory search example

API/0.2/members.search.php validates an api_access_code. It also accepts the legacy alias aa_code, which overwrites api_access_code when supplied. Optional filters include member_id, office_id, and firm_id, with aliases mid, oid, and fid. Its result is keyed by member ID.

Do not assume version 0.1 has the same output keys: members.list.php uses composite office/firm/member keys. Check the exact endpoint before changing a consumer.

Authentication and internal calls

Different endpoints use API access codes, JWT/session state, CSRF checks, or internal-call conventions. Source files contain commented template checks as well as executable checks. Read the actual endpoint and bootstrap before describing its authentication requirements.

Shared settings configure the internal microservice base URL as http://127.0.0.1/API/microservices. Moving these services to another container would require reviewing callers; they are currently addressed as local HTTP services. Keep access codes, tokens, cookies, and credential values out of logs and documentation.

External integrations

IntegrationEvidence and support considerations
Mandrill SMTPdelivermail/send.php uses PHPMailer and smtp.mandrillapp.com on port 587 for queued email
MailgunShared mail settings, email classes, and scheduled-job code exist; verify the active sending path before troubleshooting
SentryLegacy database helpers attempt initialization after loading Composer; verify events reach the intended project rather than assuming monitoring is active
MapQuestShared settings include a mapping API configuration; office APIs include latitude/longitude data
GeoIP2, reCAPTCHA, spreadsheet exportsLibraries appear in the application Composer manifest; verify use at the relevant call site
Azure FilesNew images belong in iicnetstorage / iicnetuploads; see storage guidance

Credentials and enabled-service configuration must be obtained through approved channels. This guide intentionally does not reproduce values embedded in legacy source.

Source references