POST
/
databases
curl --request POST \
  --url https://api.sevalla.com/v2/databases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "company_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  "location": "us-central1",
  "resource_type": "db1",
  "display_name": "test-db",
  "db_name": "test-db",
  "db_password": "example-password",
  "db_user": "example-user",
  "type": "postgresql",
  "version": "15"
}'
{
  "database": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
database/json

Response object of create database request

The response is of type object.