Install
openclaw skills install clioClio API integration with managed OAuth. This is a write-capable integration — it can read, create, update, and delete legal practice data including matters, contacts, activities, tasks, documents, calendar entries, time entries, and billing. Use this skill when users want to interact with legal practice data in Clio Manage. All write operations (creating/updating/deleting matters, contacts, billing) require explicit user approval with specific resource identifiers before execution. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
openclaw skills install clioAccess the Clio Manage API with managed OAuth authentication. Manage matters, contacts, activities, tasks, documents, calendar entries, time entries, and billing for legal practice management.
# List matters
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clio/api/v4/matters?fields=id,display_number,description,status')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://api.maton.ai/clio/{native-api-path}
The gateway proxies requests to app.clio.com and automatically injects your OAuth token. Only the endpoints documented in this skill are supported — always use specific endpoint paths from the API Reference section below rather than constructing arbitrary paths.
All requests require the Maton API key in the Authorization header:
Authorization: Bearer $MATON_API_KEY
Environment Variable: Set your API key as MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"
Manage your Clio OAuth connections at https://api.maton.ai.
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=clio&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clio'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"connection": {
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "clio",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple Clio connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clio/api/v4/matters')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple connections, always include this header to ensure requests go to the intended account.
By default, Clio returns minimal fields (id, etag). Use the fields parameter to request specific fields:
GET /clio/api/v4/matters?fields=id,display_number,description,status
For nested resources, use curly bracket syntax:
GET /clio/api/v4/activities?fields=id,type,matter{id,description}
GET /clio/api/v4/matters?fields=id,display_number,description,status,client_reference
GET /clio/api/v4/matters/{id}?fields=id,display_number,description,status,open_date,close_date
POST /clio/api/v4/matters
Content-Type: application/json
{
"data": {
"description": "New Legal Matter",
"status": "open",
"client": {"id": 12345}
}
}
PATCH /clio/api/v4/matters/{id}
Content-Type: application/json
{
"data": {
"description": "Updated Matter Description",
"status": "closed"
}
}
DELETE /clio/api/v4/matters/{id}
GET /clio/api/v4/contacts?fields=id,name,type,primary_email_address,primary_phone_number
GET /clio/api/v4/contacts/{id}?fields=id,name,type,first_name,last_name,company
POST /clio/api/v4/contacts
Content-Type: application/json
{
"data": {
"type": "Person",
"first_name": "John",
"last_name": "Doe",
"email_addresses": [
{"name": "Work", "address": "john@example.com", "default_email": true}
]
}
}
POST /clio/api/v4/contacts
Content-Type: application/json
{
"data": {
"type": "Company",
"name": "Acme Corporation"
}
}
PATCH /clio/api/v4/contacts/{id}
Content-Type: application/json
{
"data": {
"first_name": "Jane"
}
}
DELETE /clio/api/v4/contacts/{id}
GET /clio/api/v4/activities?fields=id,type,date,quantity,matter{id,description}
GET /clio/api/v4/activities/{id}?fields=id,type,date,quantity,note
POST /clio/api/v4/activities
Content-Type: application/json
{
"data": {
"type": "TimeEntry",
"date": "2026-02-11",
"quantity": 3600,
"matter": {"id": 12345},
"note": "Legal research"
}
}
PATCH /clio/api/v4/activities/{id}
Content-Type: application/json
{
"data": {
"note": "Updated note"
}
}
DELETE /clio/api/v4/activities/{id}
GET /clio/api/v4/tasks?fields=id,name,status,due_at,priority,matter{id,description}
GET /clio/api/v4/tasks/{id}?fields=id,name,description,status,due_at,priority
Requires assignee with both id and type ("User" or "Contact"):
POST /clio/api/v4/tasks
Content-Type: application/json
{
"data": {
"name": "Review contract",
"due_at": "2026-02-15T17:00:00Z",
"priority": "Normal",
"assignee": {"id": 12345, "type": "User"},
"matter": {"id": 67890}
}
}
PATCH /clio/api/v4/tasks/{id}
Content-Type: application/json
{
"data": {
"status": "complete"
}
}
DELETE /clio/api/v4/tasks/{id}
GET /clio/api/v4/calendar_entries?fields=id,summary,start_at,end_at,matter{id,description}
GET /clio/api/v4/calendar_entries/{id}?fields=id,summary,description,start_at,end_at,location
Requires calendar_owner with id and type:
POST /clio/api/v4/calendar_entries
Content-Type: application/json
{
"data": {
"summary": "Client Meeting",
"start_at": "2026-02-15T10:00:00Z",
"end_at": "2026-02-15T11:00:00Z",
"calendar_owner": {"id": 12345, "type": "User"}
}
}
Note: Associating a matter with a calendar entry during creation may return a 404 error. To link a matter, update the calendar entry after creation using PATCH.
PATCH /clio/api/v4/calendar_entries/{id}
Content-Type: application/json
{
"data": {
"summary": "Updated Meeting Title"
}
}
DELETE /clio/api/v4/calendar_entries/{id}
GET /clio/api/v4/documents?fields=id,name,content_type,size,matter{id,description}
GET /clio/api/v4/documents/{id}?fields=id,name,content_type,size,created_at
GET /clio/api/v4/documents/{id}/download
GET /clio/api/v4/users/who_am_i?fields=id,name,email,enabled
GET /clio/api/v4/users?fields=id,name,email,enabled,rate
GET /clio/api/v4/bills?fields=id,number,issued_at,due_at,total,balance,state
GET /clio/api/v4/bills/{id}?fields=id,number,issued_at,due_at,total,balance,state
Clio uses cursor-based pagination. Response includes pagination metadata:
GET /clio/api/v4/matters?fields=id,description&limit=50
Response includes pagination info in the meta object:
{
"data": [...],
"meta": {
"paging": {
"next": "https://app.clio.com/api/v4/matters?page_token=xyz123"
},
"records": 50
}
}
Use the page_token parameter to fetch the next page:
GET /clio/api/v4/matters?fields=id,description&page_token=xyz123
const response = await fetch(
'https://api.maton.ai/clio/api/v4/matters?fields=id,display_number,description',
{
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`
}
}
);
const data = await response.json();
import os
import requests
response = requests.get(
'https://api.maton.ai/clio/api/v4/matters',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
params={'fields': 'id,display_number,description'}
)
data = response.json()
id and etagmatter{id,description}Person or Companyid and type ("User" or "Contact")calendar_owner with id and type; associating a matter during creation may fail - use PATCH to link matters after creationcurl -g when URLs contain brackets to disable glob parsingjq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments| Status | Meaning |
|---|---|
| 400 | Missing Clio connection or bad request |
| 401 | Invalid or missing Maton API key |
| 404 | Resource not found |
| 429 | Rate limited (50 req/min during peak hours) |
| 4xx/5xx | Passthrough error from Clio API |
Clio includes rate limit headers in responses:
X-RateLimit-Limit - Maximum requests in 60-second windowX-RateLimit-Remaining - Requests remaining in current windowX-RateLimit-Reset - Unix timestamp for window resetRetry-After - Seconds to wait (when throttled)