Database
Create Database
Create a database instance hosted on Square Cloud.
POST
Create Database
string
required
The API key for your account. You can find this in your account settings.
square-cloud-db-<id>.squareweb.app) pointing to it. The password and certificate in the response are shown only once, save them immediately since neither can be retrieved again later, only reset via Reset Credentials.
Database hosting requires a Standard, Pro or Enterprise plan. The requested memory must be at least the engine’s minimum (512 MB for Redis, 1024 MB for MongoDB, MySQL and PostgreSQL) and cannot exceed your account’s available memory. Rate limited to 1 creation every 3 seconds per user.
Once created, use Edit Database to rename it or resize its memory, and Create Snapshot to back it up.
Parameters
string
required
The name of the database. 1–32 characters — letters, numbers, underscores (
_), hyphens (-) and spaces — and must include at least one letter, number or underscore.int
required
The RAM allocated to it. Redis minimum is 512 and Mongo, 1024.
string
required
The database type, mongo, redis, postgres, mysql.
string
required
The version of the database.\
Postgres 17, MySQL 9, Mongo 8, Redis 7.
Response
string
Indicates whether the call was successful..
success if successful, error if not.object
The contents of the response.
Common errors
Create Database

