- Void Platform API: The interface connecting the Void CLI to platform resources, deployment, and identity services.
- Two control modes: Manage everything through the CLI or the Web Dashboard.
- Cloudflare runtime: Deploy and self-host applications inside your own Cloudflare account.
- Credential layers: User sessions, project credentials, and administrator tokens serve different workflows.
- Start here: Authenticate, connect your project, then run your first deployment.
What Is the Void Platform API?
The Void Platform API is the backbone of Void Platform, a cloud deployment and platform management tool designed for developers who want to build, deploy, and operate web applications on Cloudflare. The API sits between the Void CLI and the platform's resources — projects, deployments, authentication, databases, storage, logs, and domains — so every command you run translates into a structured platform operation.
Officially documented at void.cloud, the platform supports connecting projects, deploying applications, managing users and permissions, configuring domains, and running self-hosted installations inside your own Cloudflare account.
Void Platform exposes its capabilities through several functional areas:
| Functional Area | What It Covers | Primary Interface |
|---|---|---|
| Deployment | Build, deploy, monitor, cancel, and roll back applications | void deploy |
| Project Management | Create and associate projects, manage team access | CLI + Dashboard |
| Authentication | User sessions, OIDC, GitHub/Google login, admin tokens | void auth login |
| Domains | DNS, HTTPS, nested hostnames, workers.dev test routes | Installation config |
| Data and Storage | Database resources and application storage | Platform resources |
| Operations | Logs, health checks, deployment events, troubleshooting | void logs |
Think of the Void Platform API as three layers: the CLI (your local interface), the platform API (authorization, projects, and routing), and the Cloudflare runtime (where applications actually execute). Keeping these layers distinct makes debugging much easier.
Core CLI Commands for API Workflows
The Void CLI is the primary way developers interact with the platform API. Commands are grouped by workflow stage, so you can move from project initialization through deployment and operations without leaving the terminal.
| Category | Command | Purpose | Best Use Case |
|---|---|---|---|
| Initialization | void init | Initialize Void project configuration | Starting a new project or onboarding a repository |
| Authentication | void auth login | Create an interactive CLI login session | Local development and admin workflows |
| Platform Connection | void platform connect | Link the local project to a platform project | Targeting an existing platform environment |
| Deployment | void deploy | Build and deploy the current project | Manual releases or CI pipelines |
| Logs | void logs | Inspect application and deployment logs | Debugging failed deployments or runtime errors |
| Database | void db | Database-related project operations | Coordinating migrations with deployments |
| Secrets | void secrets | Manage sensitive configuration values | Keeping credentials out of the repository |
| Domains | void platform installation | Configure domain routing and installation settings | Custom domains, DNS, and HTTPS setup |
Interactive Workflows
- Guided prompts for setup
- Great for first-time users
- Confirms platform and project context
Scriptable Workflows
- Command-line parameters
- Repeatable installations
- Fits CI/CD pipelines
Status Inspection
- Check platform connection state
- Review deployment status
- JSON output for automation
Always confirm the active account, connected platform, and target project before running void deploy. Deploying to the wrong platform project is one of the most common workflow mistakes.
Step-by-Step: First Deployment Through the API
Follow this sequence to take a project from an empty directory to a live application. The full flow is documented in the first deployment guide.
Initialize and Prepare the Project
Start from a dedicated project directory with your application files and configuration ready. Run void setup to begin the guided workflow that establishes the project context used by every later command.
Authenticate and Connect the Platform
Complete the CLI authentication steps, then use the connection flow to associate your local repository with the intended Void Platform project and environment. Confirm the platform selection when prompted.
Review Deployment Settings
Before deploying, verify the target application, deployment platform, project name, and related resources. A quick review here prevents misdirected deployments and naming conflicts.
Run the Deployment
Execute void deploy and keep the terminal session open. Monitor the CLI output and platform status until the build and deployment process finishes successfully.
Verify and Manage the Result
Check the deployment status and logs, test the application URL, and use rollback or cancellation controls if anything needs to be reverted to a previous stable state.
Void Platform supports deployment interruption, cancellation, and rollback. If a release goes wrong, you can revert to the last stable deployment rather than starting over from scratch.
Authentication Layers and Security
Void Platform authentication is layered, and mixing up these layers causes most access-control problems. Each credential type answers a different question.
| Credential Type | Who or What It Identifies | Typical Owner | Storage Guidance |
|---|---|---|---|
| User login session | An individual person | Developer, admin | Local interactive session only |
| Platform connection | A project-to-platform link | Project maintainer | Managed by CLI configuration |
| Project credentials | A specific project workflow | Automation, integrations | CI encrypted secrets, scoped per project |
| Administrator token | Platform-wide operations | Platform owner | Restricted storage, smallest scope possible |
| Cloudflare Access identity | An access-control layer | Security team | Separate from Void Platform login |
External identity providers add flexibility without replacing platform credentials:
- GitHub and Google login provide familiar sign-in for team members when enabled by an administrator.
- OIDC connects platform access to an organization-managed identity provider.
- Cloudflare Access adds an identity-aware layer in front of protected applications or admin surfaces — but it is distinct from a Void CLI login or project credential.
Never commit Cloudflare credentials, database connection strings, JWT signing secrets, or project encryption keys to source control. Store them in your CI provider's encrypted secret store and expose them only to the deployment job. The official CI and credentials documentation covers injection patterns in detail.
Void Platform Security Checklist:
- Separate admin tokens from project credentials and CI variables
- Use non-interactive credentials for CI deployment jobs
- Rotate project credentials when team ownership changes
- Verify HTTPS certificate coverage on all production domains
- Classify every environment variable as sensitive or public
Domains, Resources, and Operations
Domain configuration and ongoing operations round out the platform API surface. Plan DNS, certificates, and routing together so traffic always reaches the intended environment.
| Configuration Task | Key Considerations | Verification Step |
|---|---|---|
| Choose application domain | Production vs staging vs workers.dev test hostnames | Hostname maps to one application and environment |
| Prepare DNS records | Correct record type and target per installation instructions | DNS resolves to the platform destination |
| Enable HTTPS | Certificate provisioning time, wildcard coverage for nested hosts | No browser warnings on the exact hostname |
| Nested domains and wildcards | Environment or tenant routing, avoid overrides | Test root, nested, and wildcard paths separately |
| Domain changes | Add new domain before removing old, update callbacks and webhooks | Direct navigation and integrations both work |
On the operations side, use void logs to investigate failed deployments and startup errors, review deployment events for audit trails, and treat health checks as part of your daily maintenance routine. Self-hosted installations running in your own Cloudflare account give you control over resource configuration during installation, including database and storage resources.
Because Void Platform can be installed into your own Cloudflare account, platform data, authentication policy, and resource limits stay under your control — a strong option for teams with strict infrastructure or compliance requirements.
FAQ
Q: What is the Void Platform API used for?
The Void Platform API powers the connection between the Void CLI and platform resources. It handles project management, deployment operations, authentication, domain routing, databases, storage, and logs for applications running on Cloudflare.
Q: Do I need the CLI to use Void Platform?
The CLI is the primary interface and the recommended way to run setup, deployment, and operational commands. Platform installation and administration can also be managed through interactive flows and dashboard surfaces, but deployment workflows are CLI-centered.
Q: How do I authenticate a CI pipeline with Void Platform?
Use non-interactive project-scoped credentials stored in your CI provider's encrypted secret store. Expose them only to the deployment job, keep staging and production credentials separate, and reserve administrator tokens for tasks that genuinely require platform-wide access.
Q: Can I roll back a failed deployment?
Yes. Void Platform provides deployment controls for interruption, cancellation, and rollback, letting you revert an application to a previous stable state instead of rebuilding from scratch.