Databases
Connect a database that stays where it is (Neon, Supabase, PlanetScale, Upstash, MongoDB Atlas, …) to a project: the URL is checked (public addresses only), tested once and stored only as the project's encrypted variables (DATABASE_URL and the usual framework names)
post/projects/{projectId}/databases/external
Request
- Base URL: https://hostingsurge.com/api/v1
- URL: https://hostingsurge.com/api/v1/projects/{projectId}/databases/external
- Auth: one of:
- HTTP bearer
- API key in cookie __Host-hs_session
Path parameters
projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b
Request body
Response
Connected, or the test failed and nothing was saved (state test_failed)
Changes
No recorded changes to this operation across all 1 revision of this API.