# Hostingsurge Databases API

**Canonical:** https://apis.io/apis/hostingsurge-com/hostingsurge-com-databases-api/  
**Provider:** Hostingsurge — https://apis.io/providers/hostingsurge-com/  
**Base URL:** https://hostingsurge.com/api/v1  
**Documentation:** https://hostingsurge.com/developers

Hostingsurge Databases API is one of 37 APIs that [Hostingsurge](https://apis.io/providers/hostingsurge-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include Database. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

The Databases API from Hostingsurge — 24 operation(s) for databases.

## Operations (35)

| Method | Path | Summary |
|---|---|---|
| GET | `/databases` | List databases |
| POST | `/databases` | Create a database (optionally attaching DATABASE_URL to a project) |
| GET | `/databases/{databaseId}` | Get a database (password only with ?reveal=true) |
| DELETE | `/databases/{databaseId}` | Delete a database and its data (confirm with its name) |
| POST | `/databases/{databaseId}/actions/{action}` | Start, stop or restart |
| POST | `/databases/{databaseId}/attach` | Attach a database to a project: writes its internal connection string as a… |
| POST | `/databases/{databaseId}/public-access` | Toggle public exposure of a database (a fresh public port is assigned when… |
| POST | `/databases/{databaseId}/resources` | Change a database's CPU/memory limits within the plan and the organization's… |
| GET | `/databases/{databaseId}/backups` | Get the native scheduled-backup configuration, if one exists |
| PUT | `/databases/{databaseId}/backups` | Create or update the native scheduled-backup configuration; each backup is also… |
| DELETE | `/databases/{databaseId}/backups` | Remove the scheduled-backup configuration (the engine deletes its backups and… |
| POST | `/databases/{databaseId}/backups/run` | Trigger an immediate backup using the existing schedule (a schedule must exist… |
| GET | `/databases/{databaseId}/backups/executions` | Recent scheduled/on-demand backups (newest first), each with its copy in backup… |
| POST | `/databases/{databaseId}/backups/download` | A 15-minute download link (presigned URL) for one backup, after checking the… |
| POST | `/databases/{databaseId}/backups/restore` | Restore a checked backup into a new database of the same engine (default), or… |
| POST | `/databases/{databaseId}/restore` | Replay one of this database's own backup files (server path) into it: exact… |
| GET | `/databases/{databaseId}/restore/{importId}` | Poll the status of a restore started with restoreDatabase |
| POST | `/projects/{projectId}/databases/external` | Connect a database that stays where it is (Neon, Supabase, PlanetScale… |
| GET | `/databases/{databaseId}/extensions` | PostgreSQL extensions you can enable (pgvector, pg_trgm, uuid-ossp, citext… |
| POST | `/databases/{databaseId}/extensions` | Enable (CREATE EXTENSION … CASCADE) or disable (DROP EXTENSION, refused while… |
| GET | `/databases/{databaseId}/pooler` | PgBouncer connection pooler: status, mode, pooled and direct connection URLs |
| PUT | `/databases/{databaseId}/pooler` | Turn the connection pooler on (transaction mode by default) or change its… |
| DELETE | `/databases/{databaseId}/pooler` | Turn the connection pooler off |
| GET | `/databases/{databaseId}/insights` | Size, open connections, version and engine figures (cached for a minute… |
| POST | `/databases/{databaseId}/clone` | Create a new database of the same engine with a copy of this one's data (runs… |
| GET | `/databases/{databaseId}/rest` | REST API (Upstash-compatible) of a Redis database: on or off, its address, live… |
| POST | `/databases/{databaseId}/rest` | Turn the REST API on (or change public access): apps using @vercel/kv… |
| DELETE | `/databases/{databaseId}/rest` | Turn the REST API off: its tokens stop working within 30 seconds |
| POST | `/databases/{databaseId}/rest/rotate` | Replace the REST tokens (both by default); the old ones stop working within 30… |
| GET | `/databases/{databaseId}/metrics` | Metrics history: size, connections, operations per second, cache hit ratio and… |
| POST | `/databases/{databaseId}/console` | Open a read-only database console (dashboard session only; databases:reveal). |
| GET | `/databases/{databaseId}/console/{sessionId}` | A console session's state |
| PATCH | `/databases/{databaseId}/console/{sessionId}` | Switch a console between read-only and write mode (write needs databases:write… |
| DELETE | `/databases/{databaseId}/console/{sessionId}` | Close a console session |
| POST | `/databases/{databaseId}/console/{sessionId}/run` | Run a statement (SQL, a MongoDB command document or Redis commands) or browse… |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/hostingsurge-com/openapi/hostingsurge-com-databases-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-builder-visual-op-schema.json
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-policy-templates-input-body-schema.json
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-pending-changes-input-body-schema.json
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-confirm-prices-input-body-schema.json
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-collection-input-body-schema.json
- **JSONSchema** — https://artifacts.apis.io/hostingsurge-com/json-schema/hostingsurge-com-create-shop-input-body-schema.json

## Other Hostingsurge APIs (12)

- [Hostingsurge Accelerator API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-accelerator-api/)
- [Hostingsurge Agents API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-agents-api/)
- [Hostingsurge Alerts API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-alerts-api/)
- [Hostingsurge Analytics API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-analytics-api/)
- [Hostingsurge Assistant API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-assistant-api/)
- [Hostingsurge Automation API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-automation-api/)
- [Hostingsurge Backups API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-backups-api/)
- [Hostingsurge Billing API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-billing-api/)
- [Hostingsurge Builder API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-builder-api/)
- [Hostingsurge Business API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-business-api/)
- [Hostingsurge Certificates API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-certificates-api/)
- [Hostingsurge Deployments API](https://apis.io/apis/hostingsurge-com/hostingsurge-com-deployments-api/)

## Tags

Database

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/hostingsurge-com/hostingsurge-com-databases-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/hostingsurge-com/.
