PHP · WORDPRESS & LEGALTECH
wp-clio-api — WordPress & PHP Client Library for Clio Legal Practice Management
wp-clio-api is an object-oriented PHP and WordPress integration library for the Clio Manage and Clio Grow REST APIs used by law firms. It simplifies OAuth 2.0 token refresh, lead intake synchronization, matter creation, and conflict-of-interest lookups directly from WordPress forms.
$ composer require bhubbard/wp-clio-api
Copy
GitHub ↗
API Version
Clio v4 REST
OAuth2 Refresh
Atomic WP Lock
Field Selection
Nested `fields=`
Rate-Limit Guard
X-RateLimit Aware
01. Interactive Workbench
02. Reference Implementation
03. Architecture & Specs
Interactive Clio v4 Legal Intake -> Contact & Matter Sync Simulator
Client Intake Payload & Practice Area
Clio API v4 Endpoint Operation
POST /api/v4/contacts.json + POST /api/v4/matters.json (Idempotent Lead Intake)
POST /api/v4/notes.json (Attach Signed Retainer & Call Transcript)
GET /api/v4/activities.json?fields=id,total,date,user{name}
Verify `X-Hook-Signature` HMAC-SHA256 Clio Webhook Event
Execute Pipeline ▶
Reset
Deterministic Execution Output & Telemetry
STATUS: READY // 0 ERRORS
PHP (WordPress Clio API Client)
$clio = new \BHubbard\Clio\Client( get_option( 'clio_access_token' ) );
$contact = $clio->contacts()->create( [
'type' => 'Person',
'first_name' => 'Elena',
'last_name' => 'Rostova',
'email_addresses' => [ [ 'name' => 'Work', 'address' => '[email protected] ' ] ],
] );
$matter = $clio->matters()->create( [
'client' => [ 'id' => $contact['data']['id'] ],
'description' => 'Commercial Contract Dispute — Intake #4092',
'status' => 'Pending',
] );
Production Engineering Specifications
Repository: https://github.com/bhubbard/wp-clio-api
Live Studio: https://code.brandonhubbard.com/wp-clio-api/
Portal: https://code.brandonhubbard.com/
Install: composer require bhubbard/wp-clio-api
Design System: Brandon Hubbard Swiss Modernist (#0A0A0C / 1px Exposed Structural Grid)