Skip to main content
POST
/
databases
Create a new database
curl --request POST \
  --url https://shardcloud.app/api/databases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "postgres",
  "ram": 513,
  "password": "<string>",
  "visualizer": true,
  "name": "<string>"
}'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
enum<string>
required
Available options:
postgres,
mongo,
redis
ram
integer
required
Required range: x >= 512
password
string
required
name
string
required
visualizer
boolean

Response

Database created successfully

message
string
I