Management API

Manage projects, databases and credentials from CI and infrastructure as code.

The management API is at /v1 on the API host. Create an API key in the dashboard (Organization → API keys) and send it as a bearer token. Keys are scoped to the whole organization or one project, and act as admin or member.

curl "$MANAGEMENT_API/v1/projects" -H "Authorization: Bearer mc_sk_…"

curl -X POST "$MANAGEMENT_API/v1/projects/$PROJECT_ID/databases" \
  -H "Authorization: Bearer mc_sk_…" -H "Content-Type: application/json" \
  -d '{"name": "staging", "region": "eu-central"}'

Endpoints

  • GET /v1/regions, GET|POST /v1/projects, GET /v1/projects/:id
  • GET|POST /v1/projects/:id/databases, GET|DELETE /v1/databases/:id, and /restore, /suspend, /resume, /operations
  • GET|POST /v1/databases/:id/keys, POST …/keys/:keyId/rotate, DELETE …/keys/:keyId
  • GET|POST /v1/databases/:id/token-keys, DELETE …/token-keys/:tokenKeyId

Creating, deleting, suspending and resuming a database answer 202: the work runs in the background, and the database's latestOperation reports its progress. The OpenAPI document is at /v1/openapi.json.