Knowledge Base updated: 2026-11-17
HTTPSMS Knowledge Base
Orientation
HTTPSMS is a multi-client SMS platform: a Go API coordinates messaging, persistence, accounts, integrations, and billing; registered Android phones supply the device-side SMS capability; and a Nuxt dashboard presents operational workflows.
Critical state includes messages and threads, contacts, phone enrollment and availability, integration configuration and delivery state, user/account settings, and subscription and usage records. The API and its persistence-facing layers are the system of record; Android and dashboard clients report and manage that state through authenticated API flows.
System architecture
flowchart LR
Dashboard[Nuxt dashboard] --> API[Go API service]
Android[Android phone agent] --> API
API --> Messaging[Messaging services]
API --> Phones[Phone management]
API --> Accounts[Accounts and billing]
API --> Integrations[Integration services]
Messaging --> Store[(Persistent state)]
Phones --> Store
Accounts --> Store
Integrations --> Store
Messaging --> Push[Push queue / FCM]
Push --> Android
Android --> Carrier[SMS carrier]
Carrier --> Android
Integrations --> Webhooks[Webhooks]
Integrations --> Notify[Discord / email]
Integrations --> ThreeCX[3CX]
flowchart LR
Request[Outbound message request] --> Validate[Request validation]
Validate --> Service[Messaging service]
Service --> Persist[Persist message state]
Persist --> Route[Select available phone]
Route --> Push[Push delivery]
Push --> Device[Android agent]
Device --> Result[Device delivery outcome]
Result --> Update[Update terminal state]
Glossary
- Phone API key — credential used by an enrolled phone for authenticated device access.
- Thread — the persisted conversation grouping used to organize messages and contacts.
- Push queue — delivery path that forwards phone-directed work through FCM.
- Heartbeat — device availability signal used when routing messaging work.
- Entitlement — subscription-derived authorization governing account capabilities.
Invariants
- Message delivery state is persisted before and after device-side delivery work; see docs/sms-message-lifecycle.md and docs/push-delivery-and-read-receipts.md.
- Phone availability affects routing of message work; see docs/phone-heartbeats-and-availability.md.
- Device-facing access is authenticated through phone enrollment and API-key lifecycle flows; see docs/phone-registration-and-api-keys.md.
- Subscription state is evaluated as entitlements for account capabilities; see docs/subscription-billing-and-entitlements.md.
Routing table
api/**/message*,api/**/conversation*,api/**/contact*-> docs/messaging-platform.mdapi/**/message*,api/**/event*,api/**/delivery*-> docs/sms-message-lifecycle.mdapi/**/thread*,api/**/search*,dashboard/**/message*-> docs/message-threads-and-search.mdapi/**/contact*,dashboard/**/contact*-> docs/contacts-and-conversation-recipients.mdapi/**/bulk*,api/**/schedule*,api/**/retry*-> docs/bulk-and-scheduled-messaging.mdandroid/**,api/**/phone*,api/**/push*-> docs/phone-connectivity.mdandroid/**/sms/**,android/**/receiver*,android/**/service*,android/**/auth*-> docs/android-phone-agent.mdapi/**/phone*,api/**/api-key*,dashboard/**/phone*-> docs/phone-registration-and-api-keys.mdapi/**/heartbeat*,api/**/availability*,android/**/heartbeat*-> docs/phone-heartbeats-and-availability.mdapi/**/push*,api/**/receipt*,android/**/fcm*,android/**/push*-> docs/push-delivery-and-read-receipts.mdapi/**/webhook*,api/**/discord*,api/**/email*,api/**/3cx*-> docs/integrations-and-automation.mdapi/**/webhook*-> docs/webhooks.mdapi/**/discord*,api/**/email*,dashboard/**/discord*-> docs/discord-and-email-notifications.mdapi/**/3cx*-> docs/3cx-integration.mdapi/**/account*,api/**/user*,api/**/subscription*,api/**/billing*-> docs/accounts-and-billing.mdapi/**/user*,api/**/auth*,api/**/profile*,dashboard/**/settings*-> docs/identity-and-user-preferences.mdapi/**/subscription*,api/**/billing*,api/**/invoice*,api/**/usage*-> docs/subscription-billing-and-entitlements.mddashboard/**,nuxt.config.*-> docs/web-dashboard.mddashboard/**/message*,dashboard/**/thread*,dashboard/**/bulk*,dashboard/**/search*-> docs/dashboard-message-experience.mdapi/**,cmd/**,internal/**-> docs/api-service-architecture.mdapi/**/handler*,api/**/request*,api/**/response*,api/**/validation*-> docs/api-request-processing.md