Get a site's database connection string
One step with Netlify. We can help you get access.
Look something up
Get a site's database connection string
with Netlify · IT Infrastructure Management
Works with AI assistants
Use Netlify: its Netlify's API documentation Database API lets you get a site's database connection string in a single step (GET /sites/{site_id}/database). Netlify also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Where do I find the connection string for my site's database?
- Can I get the database connection string for a specific role?
Say it to your AI assistant
- Get the database connection string for site {site}.
- Fetch the connection string for site {site} using the {role} role.
For your developer
GET /sites/{site_id}/database in Netlify's API documentation Database API. Full spec on APIs.io.