Umbrella
Public API

Developer documentation

Integrate Umbrella with your firm systems using API keys and signed webhooks. Manage keys and subscriptions from Settings once signed in. Settings.

API keys

Authentication

Firm admins create keys via the authenticated API. Pass the key on every request.

POST https://api.okaylegal.ai/api/v1/public-api/keys
Authorization: Bearer <session_token>
X-Tenant-Id: <tenant_id>
Content-Type: application/json

{
  "name": "CRM sync",
  "scopes": ["read:matters", "read:clients"]
}

List keys: GET /public-api/keys

read:matters
write:matters
read:clients
read:invoices
read:documents

Webhooks

Subscriptions

Register HTTPS endpoints to receive event payloads signed with HMAC-SHA256.

POST https://api.okaylegal.ai/api/v1/webhooks/subscriptions
Authorization: Bearer <session_token>
X-Tenant-Id: <tenant_id>

{
  "url": "https://your-app.com/webhooks/legal",
  "secret": "whsec_...",
  "events": ["matter.created", "invoice.paid"]
}

Verify deliveries using the X-Legal-Signature header. Test connectivity with POST /webhooks/test.

  • matter.created
  • matter.updated
  • invoice.created
  • invoice.paid
  • time_entry.submitted
  • trust.entry.approved
  • document.uploaded

Security

Rotate API keys periodically and scope them to the minimum permissions required.

Webhook secrets must be stored securely; never commit them to source control.

All API traffic requires TLS. Tenant isolation is enforced via X-Tenant-Id on firm-scoped routes.