Integrations, API keys, and agents

Connections, webhooks, OAuth, API keys, and supervised agents.

Route: /dashboard/platform/integrations. Needs canManageIntegrations.

Connections

IntegrationConnection records have a kind: email, calendar, document storage, signature, payment, court, accounting, or other. Credentials are encrypted with INTEGRATION_CREDENTIAL_KEY. Use rotateIntegrationCredential and transitionIntegrationConnection. ExternalRecordLink maps local records to external IDs.

Webhooks

WebhookSubscription rows define destinations. enqueueWebhookDelivery sends the event on the same request, with an x-openfront-signature header, only to hosts in WEBHOOK_ALLOWED_HOSTS, and records WebhookDeliveryAttempt rows. A delivery gets up to 8 attempts. Staff resend a failed, dead_letter, or interrupted processing delivery with Retry delivery (retryWebhookDelivery) on the Integrations desk. rotateWebhookSigningSecret rotates the secret.

API keys and OAuth

issueApiKey shows the secret once; revokeApiKey removes it. issueOAuthClient and revokeOAuthClient manage clients. OAuth uses /api/oauth/authorize and /api/oauth/token with authorization code, S256 PKCE, and refresh token rotation. Bearer tokens are accepted at /api/graphql.

Agents

Agent principals, credentials, and grants are scoped to one firm and optionally one matter. Manage them on the generic Models pages.

requestAgentAction → reviewAgentAction → executeAgentAction for action types such as task.draft, matter.transition, invoice.issue, trust.post, and communication.send. Every step writes an AgentActionEvent.

On this page