Hostingsurge Databases API

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

GitHub OpenAPI

Operations 35

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… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hostingsurge-com:hostingsurge-com-databases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hostingsurge-com-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hostingsurge Platform Databases API
  version: 1.0.0
  description: 'Deploy and operate projects on Hostingsurge: Git/upload/Docker/WordPress projects, deployments, logs, environment variables, domains and databases. Errors are {"error":{"code","message","details?"}}.'
servers:
- url: /api/v1
  description: Same origin as the dashboard, e.g. https://hostingsurge.com/api/v1
security:
- bearerAuth: []
- sessionCookie: []
tags:


# --- truncated at 32 KB (879 KB total) ---
# Full source: https://artifacts.apis.io/hostingsurge-com/openapi/hostingsurge-com-databases-api-openapi.yml