# Nimbuz API

Use the Nimbuz REST API to script anything you do in the portal. Create environments from CI, ship a build on every merge, pause staging at night, pull logs into your own tools, or reconcile invoices.

<div className="grid sm:grid-cols-2 gap-4 not-prose my-6">
  <a href="/api/quickstart" className="block rounded-lg border p-5 hover:border-primary transition-colors">
    <div className="font-semibold mb-1">🚀 Quickstart</div>
    <div className="text-sm text-muted-foreground">Go from login to a running deployment in about 10 calls.</div>
  </a>
  <a href="/api/authentication" className="block rounded-lg border p-5 hover:border-primary transition-colors">
    <div className="font-semibold mb-1">🔑 Authentication</div>
    <div className="text-sm text-muted-foreground">Get a JWT and send it as a Bearer token.</div>
  </a>
  <a href="/api/reference" className="block rounded-lg border p-5 hover:border-primary transition-colors">
    <div className="font-semibold mb-1">📚 API Reference</div>
    <div className="text-sm text-muted-foreground">Every endpoint, with schemas, examples and an interactive playground.</div>
  </a>
  <a href="/api/errors" className="block rounded-lg border p-5 hover:border-primary transition-colors">
    <div className="font-semibold mb-1">⚠️ Errors</div>
    <div className="text-sm text-muted-foreground">Status codes, error codes and how to handle them.</div>
  </a>
</div>

## Base URL

All requests go to:

```
https://api.nimbuz.tech
```

## What you can do

| Area                                     | Prefix           | Highlights                                                  |
| ---------------------------------------- | ---------------- | ----------------------------------------------------------- |
| [Authentication](/reference/authentication)    | `/user/v1`       | Log in, two-factor verification                             |
| [Projects](/reference/projects)                | `/project/v1`    | Create, list, rename, delete                                |
| [Environments](/reference/environments)        | `/project/v1`    | Create, set resource limits, delete                         |
| [Deployments](/reference/deployments)          | `/deployment/v1` | Deploy from Git, start, stop, restart, scale, delete        |
| [Tools](/reference/tools)                      | `/deployment/v1` | Install PostgreSQL, MongoDB, n8n and more; start, stop, resize |
| [Metrics](/reference/metrics)                  | `/metrics/v1`    | CPU, memory and storage history, plus live streams          |
| [Logs](/reference/logs)                        | `/logs/v1`       | Application and build logs with search                      |
| [Billing](/reference/billing)                  | `/pricing/v1`    | Invoices, PDF download, month-to-date cost, forecast        |

## Conventions

- **JSON in, JSON out.** Send `Content-Type: application/json`.
- **Strict bodies.** Unknown fields are rejected with `400 Validation Error`, so send only documented fields.
- **IDs:** projects and deployments use UUIDs; environments look like `env-k3x9q2m7`.
- **Async work:** creating or updating deployments and tools returns immediately. Follow progress by polling, or with a [live stream](/streaming).
- **Envelope:** responses look like `{ "status": "success", "message": "…", "data": … }`. Billing endpoints return `{ "success": true, "data": … }`.

:::tip{title="Machine-readable spec"}
Download the [OpenAPI document](/openapi.yaml) to generate a client, or import it into Postman or Insomnia.
:::
