About the Forge REST API
Forge provides a REST API that allows developers to interact programmatically with their sites, deployments, and account settings. Whether you're building custom deployment flows, integrating with CI/CD tools, or managing site configurations remotely, the Forge API gives you the flexibility to automate and extend your workflows.
API Versions
Forge currently supports two versions of its REST API: v1 and v2. These versions are available side-by-side, but we recommend starting with v2 for most new integrations. Hereβs an overview of each:
Version 1 (v1): Simple and Internal
The v1 API was originally built to support internal tools like the Forge CLI and early deployment automation. It exposes a limited set of endpoints for user authentication, site listing, and deployment.
While functional, v1 uses a single access token that grants full access to your Forge account. This design is convenient for quick internal use but not ideal for team-based or scoped access.
π View full v1 API reference β
Version 2 (v2): Full-featured and Secure
The v2 API is a comprehensive evolution of the platform, designed to expose the full range of Forge features with a more secure and flexible authentication model.
With v2, you can:
- Scope access to specific sites using Site Tokens
- Manage deployments, domains, SSL, and bandwidth settings
- Query account plans and usage data
- Build more granular tooling and workflows
Authentication is more robust: you can still use an Account Token for global access, or use a Site Token for restricted, per-site operations β perfect for collaborative and modular development.
π View full v2 API reference β
Choosing Between v1 and v2
Feature | v1 API | v2 API |
---|---|---|
Authentication | Account-wide token only | Site and Account tokens |
Deployment support | βοΈ Basic CLI Deploy | βοΈ Full deploy options |
Site management | β Not available | βοΈ SSL, domain, settings |
Bandwidth and usage stats | β Not available | βοΈ Available |
Security | π Single token (broad access) | π Scoped tokens (least privilege) |
Recommended for new devs? | β οΈ No | β Yes |
Getting Started
- If youβre building simple scripts or using the CLI, v1 may be sufficient.
- For full site management and secure integrations, we recommend starting with v2.
Join the Discussion
Have questions about this topic or want to share your experience? Join our community discussion!
Visit Forum Discussion