Connect your app to LegalPal
API documentation for LegalPal firms. Sign in with a team or
subscription account to view the docs. Base API host is
https://api.qix.cloud.
Sign in required
Documentation is available to LegalPal team and subscription accounts only. Use Google or Microsoft above, or paste a firm JWT below after you sign in on Chat or Account.
Authentication
Send the JWT as Authorization: Bearer <token>.
Phone (2FA)
POST https://api.qix.cloud/sendCode
Body: { "phone": "+1..." }
POST https://api.qix.cloud/sign/phone
Body: { "phone": "+1...", "app": "<appId>", "code": 123456 }
OAuth code exchange via
POST https://api.qix.cloud/sign/google
with { code, redirectUri }. Docs login uses
https://api.qix.cloud/googleRedirect.
Microsoft
OAuth code exchange via
POST https://api.qix.cloud/sign/microsoft
with { code, redirect_uri }. Docs login uses
https://api.qix.cloud/microsoftRedirect.
After redirect the token query looks like
?token=microsoft_code_<code>.
App Builder
Published firm apps and editor drafts. Public reads do not require auth.
Assets live in Firebase Storage under apps/{appId}/assets/.
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /appBuilder/public/:appId |
Optional | Published document (theme, pages, assets, business) |
| GET | /appBuilder/public/:appId/version |
No | Published version stamp for cache busting |
| GET | /appBuilder/public/:appId/code/:codeId/:sha256/:file |
No | Public custom code file |
| GET | /appBuilder |
Yes | Editor draft for the signed-in firm |
| PUT | /appBuilder |
Yes | Save draft |
| POST | /appBuilder/publish |
Yes | Publish draft |
| GET | /appBuilder/publish/history |
Yes | Publish history |
| POST | /appBuilder/publish/rollback |
Yes | Rollback publish |
Try public document
// response appears here
Assets & custom code
| Method | Path | Auth | Notes |
|---|---|---|---|
| POST | /appBuilder/assets |
Yes | Upload asset → Firebase Storage URL |
| POST | /appBuilder/assets/import |
Yes | Import legacy asset |
| DELETE | /appBuilder/assets/:id |
Yes | Delete asset |
| POST | /appBuilder/customCode |
Yes | Upload custom HTML/JS/CSS version |
| GET | /appBuilder/customCode/:codeId |
Yes | Latest custom code |
| GET | /appBuilder/customCode/:codeId/versions |
Yes | Version list |
Runtime (window.LegalPal)
Host-brokered APIs for custom HTML apps inside the mobile client. All require a client JWT.
| Method | Path | Notes |
|---|---|---|
| GET | /appBuilder/runtime/context |
App, client, case status, appointments, inbox |
| GET | /appBuilder/runtime/messages |
Inbox messages |
| POST | /appBuilder/runtime/messages |
Send message |
| POST | /appBuilder/runtime/messages/read |
Mark read |
| POST | /appBuilder/runtime/appointments |
Create appointment |
| POST | /appBuilder/runtime/questions |
Submit question |
Chat & samples
Chat auth and messaging examples live in the
Chat-API-Samples
repo (private). App Builder samples there include
getAppBuilderPublic.ts,
getAppBuilderDraft.ts, and
getAppBuilderRuntimeContext.ts.
GET https://api.qix.cloud/chats?status=active&userId=<id> Authorization: Bearer <jwt>
API console
The older interactive explorer is still available for browsing saved samples after you sign in.