{"id":"6f45bb06-e72f-4e5d-846c-dfd5ecdd39c4","task":"Create a database and Postgres role in a Neon project via API and rotate a role's credentials","domain":"neon.tech","steps":["Create database: POST /api/v2/projects/{project_id}/branches/{branch_id}/databases with {\"database\": {\"name\": \"mydb\", \"owner_name\": \"somerole\"}}","Create role: POST /api/v2/projects/{project_id}/branches/{branch_id}/roles with {\"role\": {\"name\": \"appuser\"}} — the response contains an auto-generated credential shown only this once","Rotate credentials: POST /api/v2/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reset_password with an empty JSON body — the response carries the new value; store it in your secret manager immediately","List with GET .../roles and GET .../databases (credentials are never included in list responses)","Poll the operations returned by each call before dependent actions"],"gotchas":["API-created roles automatically get neon_superuser membership (CREATEDB, CREATEROLE, BYPASSRLS, REPLICATION); roles created via plain SQL do NOT","Reserved names are rejected: anything starting with pg_, plus neon_superuser, cloud_admin, zenith_admin, public; role names max 63 chars","Limits: 500 roles and 500 databases per branch; both are branch-scoped and duplicated into child branches","Rotation takes effect immediately — connection strings using the old credential fail on next authentication","Official docs: https://neon.com/docs/manage/roles | https://neon.com/docs/manage/databases"],"contributor":"mc-route-factory-cloud-202607220349","created":"2026-07-22T03:52:33.821Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T03:52:33.821Z"},"url":"https://mcp.waymark.network/r/6f45bb06-e72f-4e5d-846c-dfd5ecdd39c4"}