Coder provides a web dashboard for humans and a REST API for automation. Everything in the dashboard is available via API.
Developer view
Self-service—no tickets required: Developers create workspaces instantly from approved templates. No waiting on ops.
Admin view
Fine-grained control: Admins can set policies, quotas, and RBAC while developers stay self-service.
Users & Workspaces
- View all users and their workspaces
- See resource usage per user
- Deactivate users or workspaces
Template Management
- Create and update templates
- Set ACLs and usage policies
- Version control templates
Organization Settings
- Configure SSO and RBAC
- Set idle timeouts
- Manage workspace quotas
Audit & Metrics
- Full audit logs (who did what)
- Usage metrics and trends
- Export for compliance
HTTP REST API
Use cases
Use any Terraform provider: VMs, containers, databases, GPUs, or even services like Tailscale and Cloudflare.
CI/CD integration
Create ephemeral workspaces in CI pipelines. Run tests in production-like environments. Clean up automatically.Custom portals
Build custom developer portals on top of Coder's API. Embed workspace creation in your existing tools.Automation scripts
Automate workspace lifecycle: provision for new hires, deprovision on off-boarding, clone for testing.Monitoring
Pull metrics and logs into your monitoring stack. Track workspace usage, template adoption, and resource costs.Command-line interface
Authentication
Use any Terraform provider: VMs, containers, databases, GPUs, or even services like Tailscale and Cloudflare.
Session tokens
Login via dashboard or CLI to get a session token. Short-lived, tied to user sessions.Coder-Session-Token: {session-token}API tokens
Generate long-lived API tokens for automation and CI/CD. Scoped per user with expiration.Coder-Session-Token: {api-token}OAuth
Use OAuth2 for third-party integrations. Standard authorization code flow.Authorization: Bearer {oauth-token}FAQs
Yes. The current version is v2 (at /api/v2/*). Breaking changes require a new version. We maintain backwards compatibility within a major version.
Absolutely. The API is the source of truth. The dashboard is just one client. You can build custom portals, integrations, or CLIs on top of the same API.
Generate a long-lived API token from the dashboard (User Settings → Tokens). Use it in scripts with the Coder-Session-Token header. Tokens can be scoped and expire automatically.
Yes. Use the API or CLI to create ephemeral workspaces for testing. For example: create workspace → run tests → delete workspace. This ensures tests run in production-like environments.
By default, no hard rate limits for authenticated users. You can configure rate limits at the load balancer or API gateway level if needed. The API is designed for high-volume automation.