Documentation / API Overview / API Surfaces and Boundaries

API Surfaces and Boundaries

Learn where the API starts and ends, and how it relates to PCAdmin, PCUser, PCCLI, jobs, and database records.

PanelConfig has several operational surfaces. The API is not a replacement for every surface; it is the remote JSON layer. Understanding the boundary prevents unsafe assumptions and keeps integrations maintainable.

Surface Comparison

SurfaceBest forAccess model
PCAdminProvider and operator decisions, security review, account administrationInteractive authenticated users with permissions.
PCUserCustomer self-service for hosting resourcesCustomer-scoped panel sessions.
PCCLILocal server automation, cron, repeatable operator tasksShell access and command allowlists.
APIRemote JSON read access and integration workflowsBearer token attached to an active user.

Current Boundary

The current API files are simple resource endpoints. They authenticate, apply rate limits, read from existing tables, and return the standard JSON envelope. Write-heavy workflows such as provisioning an account, adding DNS records, restoring backups, or restarting services should be documented as planned unless matching route files are added.

Boundary Diagram

flowchart TD
    A[API Client] --> B[Bearer Token Check]
    B --> C[Role and Account Visibility]
    C --> D[Read Existing Records]
    D --> E[JSON Envelope]
    B --> F[Token Last Used Updated]
    B --> G[Request Log Inserted]

Operator Advice

When connecting provider systems, start with read-only use cases: inventory sync, health reporting, SSL state checks, and backup visibility. Add write workflows only after the product source includes matching endpoints and those endpoints are tested on staging.

← Token Scopes API Safety →