Skip to main content
GET
/
databases
/
{id}
Get database
curl --request GET \
  --url https://api.sevalla.com/v2/databases/{id} \
  --header 'Authorization: Bearer <token>'
{
  "database": {
    "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
    "name": "my-database",
    "display_name": "My Database",
    "status": "ready",
    "created_at": 1738195200000,
    "memory_limit": 1024,
    "cpu_limit": 1000,
    "storage_size": 10240,
    "type": "postgresql",
    "version": "16",
    "resource_type_name": "db-standard-1",
    "cluster": {
      "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
      "location": "europe-west1",
      "display_name": "Europe West 1"
    },
    "internal_hostname": "my-database.internal",
    "internal_port": "5432",
    "internal_connection_string": "postgresql://user:pass@my-database.internal:5432/mydb",
    "internal_connections": [
      {
        "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
        "type": "appResource"
      }
    ],
    "data": {
      "db_name": "mydb",
      "db_password": "********",
      "db_root_password": "********",
      "db_user": "dbuser"
    },
    "external_connection_string": "postgresql://user:pass@ext-host.sevalla.com:5432/mydb",
    "external_hostname": "ext-host.sevalla.com",
    "external_port": "5432"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Query Parameters

internal
boolean
default:true

Include internal connection info

Example:

true

external
boolean
default:true

Include external connection info

Example:

true

Response

Default Response

database
object
required