Application API

Topolo Nexus

Clear API and contract surface for Topolo Nexus, grouped under the application instead of split across generic reference sections.

curated srv_nexus

Documentation Map

Authority

Service IDs:

srv_nexus

Repos: PlatformApplications/TopoloNexus

Hosts:

https://nexus.topolo.app https://topolo-nexus-gateway.topolo.workers.dev https://topolo-nexus-dashboard-staging.pages.dev https://topolo-nexus-gateway-staging.topolo-staging.workers.dev

Dependencies: topolo-auth, applications-packages

Depends on Topolo Auth: yes

Contract Source

Type: curated

Source: PlatformApplications/TopoloNexus/package.json

Source exists: yes

Canonical docs and gateway routes define Nexus as the typed provider gateway for AI, email, payments, provider-credential resolution, reusable outbound sender identities, and org-scoped model preferences, with platform-default credential mutation restricted to Auth `platform_super_admin` principals in the `admin` organization and broader platform-scoped service-client administration accepting Auth `platform_admin` or `platform_super_admin` from that same org. Trusted service-context auth now supports a primary shared token, additional staged tokens through `TRUSTED_SERVICE_TOKENS`, and dedicated app-specific tokens such as `SUPPORT_NEXUS_SERVICE_TOKEN` when a single migrated worker needs unattended service-context delivery without rotating the shared token set. TopoloMail uses a dedicated service-client token for `/api/ai/completions` and `/api/ai/transcriptions`, with dynamic organization attribution and user delegation so mailbox AI and dictation usage are logged to the active user, organization, and app. TopoloWeb now forwards studio bearer tokens to Nexus for structured chat planning responses that are applied locally as typed site mutations, keeping Nexus responsible for provider invocation while TopoloWeb keeps blueprint validation and persistence. Supported AI routes can now also flow through authenticated Cloudflare AI Gateway from inside Nexus without changing the external `/api/ai/*` contract, with gateway transport settings kept in worker config and secrets rather than `provider_credentials` rows. The image preference surface now treats the Nexus org setting as the baseline while allowing products to request per-run inline overrides against the allowed model catalog, including OpenAI GPT Image models, without mutating the stored org preference. Stripe price creation accepts either an existing product ID or caller-supplied product data while keeping provider credentials inside Nexus, and the typed payment surface now also supports subscription quantity updates plus invoice previews for owner-managed billing flows such as TopoloOne org seats. For TopoloP2P, Nexus remains behind TopoloPay only: P2P submits settlement requests to Pay, and Pay uses the Nexus typed payment surface for provider invocation. The gateway now also exposes authenticated `GET /api/widget` for TopoloOne live workspace. The dashboard browser login handoff and one-time sso_code callback redemption delegate to the shared Topolo auth client, embedded password-login success completes through Nexus app navigation after token persistence, and the authenticated dashboard workspace renders through the shared `TopoloAppShell` so account, launcher, command, theme, sidebar-collapse, and BugFix chrome stay package-owned. Auth API-key scopes for `srv_nexus` are manifest-aligned with the Nexus permission contract and synced to production D1.

API key scopes in Auth catalog: 7

Auth Requirements

No global OpenAPI security scheme is declared.

  • ai.invoke
  • apps.read
  • org.admin
  • organizations.provision
  • provider_credentials.manage
  • service.invoke
  • usage.read

Runtime and Deployment

Wrangler surfaces: PlatformApplications/TopoloNexus/apps/dashboard/wrangler.toml, PlatformApplications/TopoloNexus/apps/gateway/wrangler.toml

Environment variables: AI_GATEWAY_ACCOUNT_ID, AI_GATEWAY_ID, AUTH_API_URL, CORS_ORIGINS, ENVIRONMENT, TOPOLO_AUTH_URL

Routes: workers.dev or Pages-only delivery

Observability enabled: yes

README-Derived Interface Surface

Source: PlatformApplications/TopoloNexus/README.md

No route-level highlights were extracted from the current README.

Package Surfaces

topolo-nexus

Topolo AI Gateway - Central AI management, usage tracking, and cost control

Source: PlatformApplications/TopoloNexus/package.json

Scripts: dev:gateway, dev:dashboard, deploy:gateway, deploy:dashboard, db:migrate, db:migrate:remote

@topolo/nexus-dashboard

No package description recorded.

Source: PlatformApplications/TopoloNexus/apps/dashboard/package.json

Scripts: dev, build, build:staging, typecheck, preview, deploy, deploy:staging

@topolo/nexus-gateway

No package description recorded.

Source: PlatformApplications/TopoloNexus/apps/gateway/package.json

Scripts: dev, build, deploy, deploy:staging, deploy:dry-run, deploy:dry-run:staging, typecheck, tail

Runtime Surface

Wrangler surfaces: PlatformApplications/TopoloNexus/apps/dashboard/wrangler.toml, PlatformApplications/TopoloNexus/apps/gateway/wrangler.toml

This application does not yet have a source-controlled OpenAPI spec in the docs platform. The current API page is derived from the registered contract source and repository surface.