Docs
API Reference

Endpoints

Compute endpoints — the compute that serves a database — and how to start and suspend them.

An endpoint is the compute that serves a database. In Silos, the endpoint and the database are closely tied: creating a database provisions its endpoint, and starting or suspending compute maps to resuming or suspending the database.

The API is stabilizing. The paths below reflect the current interface; field-level details may still change before general availability.

If you're migrating from Neon, note that Silos folds the endpoint into the database resource — a database is its endpoint. The table below maps the common Neon endpoint operations to their Silos equivalents.

Neon operationSilos equivalent
List endpointsGET /v1/databases/{id}/endpoints
Create endpointImplicit when you create a database
Get endpointGET /v1/databases/{id}
Update endpointPATCH /v1/databases/{id}
Start endpointPOST /v1/databases/{id}/resume
Suspend endpointPOST /v1/databases/{id}/suspend

List endpoints

GET /v1/databases/{database_id}/endpoints

List the compute endpoints associated with a database.

Terminal
curl https://api.silos.sh/v1/databases/db_abc123/endpoints \
  -H "Authorization: Bearer $SILOS_API_KEY"
Response
{
  "endpoints": [
    {
      "id": "db_abc123",
      "database_id": "db_abc123",
      "region": "iad",
      "status": "active"
    }
  ]
}

Start an endpoint

Starting an endpoint resumes the database's compute. Use the database resume action:

POST /v1/databases/{id}/resume

Terminal
curl -X POST https://api.silos.sh/v1/databases/db_abc123/resume \
  -H "Authorization: Bearer $SILOS_API_KEY"
Response
{
  "database": {
    "id": "db_abc123",
    "status": "active"
  }
}

Suspend an endpoint

Suspending an endpoint stops the database's compute while retaining durable state:

POST /v1/databases/{id}/suspend

Terminal
curl -X POST https://api.silos.sh/v1/databases/db_abc123/suspend \
  -H "Authorization: Bearer $SILOS_API_KEY"
Response
{
  "database": {
    "id": "db_abc123",
    "status": "suspended"
  }
}

Because an endpoint maps to a database in Silos, you manage compute through the Databases resource. The GET .../endpoints listing is provided for tools that expect an endpoint collection.

On this page