{"openapi":"3.1.0","info":{"title":"Netlify Database (BYOK) API","version":"0.1.0","description":"Netlify Database (BYOK) lets an AI assistant read your own Netlify Database data through the Netlify Database API with a key you supply (personal access token). Read-only: 5 tools (list_database_branches, get_database_compute_settings, list_migrations, get_migration, list_database_snapshots). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-netlify-database.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-netlify-database/docs"},"termsOfService":"https://connectorbay.com/byok-netlify-database/terms"},"servers":[{"url":"https://byok-netlify-database.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-netlify-database/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_database_branches":{"post":{"operationId":"list_database_branches","summary":"List the database branches of a Netlify site with name, state, logical size, activity times and compute settings. Connec","description":"List the database branches of a Netlify site with name, state, logical size, activity times and compute settings. Connection strings are left out. Use for \"Which database branches does my Netlify site have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"site_id":{"description":"Site ID, as returned by the Netlify connector's list_sites.","maxLength":64,"title":"Site Id","type":"string"}},"required":["site_id"],"title":"list_database_branchesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_database_compute_settings":{"post":{"operationId":"get_database_compute_settings","summary":"Get the site database's compute settings: minimum and maximum compute units and the idle sleep timeout. Use for \"How doe","description":"Get the site database's compute settings: minimum and maximum compute units and the idle sleep timeout. Use for \"How does my Netlify database scale\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"site_id":{"description":"Site ID, as returned by the Netlify connector's list_sites.","maxLength":64,"title":"Site Id","type":"string"}},"required":["site_id"],"title":"get_database_compute_settingsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_migrations":{"post":{"operationId":"list_migrations","summary":"List the database migrations of a Netlify site with version, name, path and whether each was applied. Use for \"Which dat","description":"List the database migrations of a Netlify site with version, name, path and whether each was applied. Use for \"Which database migrations were applied\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"site_id":{"description":"Site ID, as returned by the Netlify connector's list_sites.","maxLength":64,"title":"Site Id","type":"string"},"branch":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Database branch name; empty means the default branch.","title":"Branch"}},"required":["site_id"],"title":"list_migrationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_migration":{"post":{"operationId":"get_migration","summary":"Get one database migration of a Netlify site, including its SQL text. Use for \"What does migration 001_create_users do\".","description":"Get one database migration of a Netlify site, including its SQL text. Use for \"What does migration 001_create_users do\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"site_id":{"description":"Site ID, as returned by the Netlify connector's list_sites.","maxLength":64,"title":"Site Id","type":"string"},"migration_name":{"description":"Migration name, as returned by list_migrations.","maxLength":200,"title":"Migration Name","type":"string"},"branch":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Database branch name; empty means the default branch.","title":"Branch"}},"required":["site_id","migration_name"],"title":"get_migrationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_database_snapshots":{"post":{"operationId":"list_database_snapshots","summary":"List the database snapshots of a Netlify site with source branch, manual flag, creation and expiry times. Use for \"Which","description":"List the database snapshots of a Netlify site with source branch, manual flag, creation and expiry times. Use for \"Which database snapshots exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"site_id":{"description":"Site ID, as returned by the Netlify connector's list_sites.","maxLength":64,"title":"Site Id","type":"string"}},"required":["site_id"],"title":"list_database_snapshotsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}