# Galon Backend > A PostgreSQL database for your application, hosted by Galon or your own, with versioned SQL migrations, backups and restore. Server side only: read the key from the `GALON_API_KEY` environment variable. Call `GET https://api.galon.ai/v1/tools` first: use only what it lists for this key. Send an `Idempotency-Key` with every write and reuse it on retry. On an error, act on `detail.code` and follow `detail.next_action`. ## What it does - A hosted PostgreSQL database for your project, created from the console, with daily backups and restore. - Or bring your own PostgreSQL: the connection string is encrypted and never returned. - Galon runs your versioned SQL migrations. - The connection string is revealed to an administrator only, and can be rotated. ## API - `GET /v1/backend/databases`: List databases - `POST /v1/backend/hosted/databases`: Create a hosted database - `GET /v1/backend/databases/{database_id}`: Read a database - `POST /v1/backend/databases/{database_id}/migrations`: Apply SQL migrations - `GET /v1/backend/operations/{operation_id}`: Read a database operation ## MCP tools Server: `https://api.galon.ai/v1/mcp` (Streamable HTTP). - `list_databases`: List the Galon Backend databases of this project. - `create_database`: Create a hosted PostgreSQL database in one step. - `get_database`: Read a database: status, size and limits, address masked. - `apply_migrations`: Queue versioned SQL migrations on a database. - `get_database_operation`: Read a migration or backup operation. ## Docs - [Galon Backend guide](/cloud/docs/services/backend) - [OpenAPI 3.1 contract](/cloud/docs/openapi.json): the source of truth for routes and fields - [Complete LLM integration guide](/llms-full.txt)