Get a server pool
Get a server pool, with its sizes and how many warm servers it holds now.
The ID of the server pool to get.
Bearer $TOKEN
{
"id": "example",
"name": "Example server pool",
"server_type": "AM1",
"snapshot_id": "123456789",
"image": "ubuntu-26-04",
"min_size": 0,
"max_size": 0,
"growth_multiplier": 2.0,
"shrink_multiplier": 0.8,
"idle_minutes": 5,
"enabled": true,
"public_ipv4": true,
"defaults": {
"ssh_keys": [
"example"
],
"firewall_ids": [
"123456789"
],
"network_ids": [
"123456789"
],
"metadata": {
"example": "value"
}
},
"target_size": 1,
"available": 1,
"warming": 1,
"claims_total": 1,
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:00:00.000Z",
"team_id": "t123"
}
{
"error": {
"message": "Malformed JSON body.",
"code": "bad_request"
}
}
{
"error": {
"message": "Missing or invalid token.",
"code": "unauthorized"
}
}
{
"error": {
"message": "We require at least one successful credit card transaction before allowing billable actions via the API. This significantly helps us to prevent fraud. Once your first transaction is processed, you will be able to use the API unrestricted. Please add credit to your account at https://betterstack.com/settings/billing/card/new?credits=10&activate_api=true. Need help? We're here for you at hello@betterstack.com.",
"code": "payment_required"
}
}
{
"error": {
"message": "Resource not found.",
"code": "not_found"
}
}
{
"error": {
"message": "The request could not be completed right now. Please try again in a few moments.",
"code": "internal_error"
}
}
Returns the server pool.
The body isn't valid JSON.
The API token is missing or invalid.
The organization hasn't made its first payment yet, and the request creates a resource we charge for. The code is payment_required. A request that creates a server, load balancer, object cache, database, reserved IP or volume can also return first_purchase. The url in first_purchase opens a page where you make the payment. The resource is created after the payment. The page works until expires_at, 24 hours after the response.
A rule of the resource forbids the request.
The resource doesn't exist, it's in another zone, or your token can't access it.
The resource's state doesn't allow the request, such as starting a running server or removing a placement group that still has servers.
We've locked the resource, with the code locked. Every change to a locked resource is refused, and so is a change that involves one.
Too many requests, with the code rate_limited. We limit requests per client IP and per organization, and some costly endpoints have a stricter limit. Wait as long as the Retry-After header says.
An unexpected, temporary error on our side, with the code internal_error. Try again.
The zone has no capacity, with the code no_capacity. Or we couldn't set up or change the resource, with the code orchestration_failed. Or the organization is creating too many resources at the same time, with the code concurrent_create_limit. Try again after a short wait.
The pool's ID, a UUID.
The pool's name, unique in the team. Up to 63 lowercase letters, digits and hyphens, starting and ending with a letter or digit. Warm servers are named after the pool, with 6 hex characters added, until a claim renames them.
The server type of the warm servers. For a pool that boots from a snapshot, it's the snapshot's type.
The ID of the snapshot the warm servers boot from, or null for a pool that boots from an image.
The slug of the base image the warm servers boot from, or null for a pool that boots from a snapshot.
The fewest warm servers the pool aims for, from 0 up to max_size.
The most warm servers the pool aims for. Together, the max_size of all the organization's pools can't be more than its server_pool_size quota.
The factor target_size is multiplied by when a claim finds the pool empty, from 1 to 10. 1 turns growing off.
The factor target_size is multiplied by each minute while the pool is full and has had no claim for idle_minutes. More than 0 and at most 1. 1 turns shrinking off.
Minutes without a claim before the pool shrinks, from 1 to 1440.
Whether the pool keeps warm servers. A disabled pool removes all its warm servers and keeps its settings. A claim on a disabled pool is refused.
Whether the warm servers get a public IPv4 address. A warm server without one has only IPv6.
What every warm server gets when it boots, such as ssh_keys, firewalls, private networks and tags. When a claim adds nothing to these, the server is ready as soon as the claim returns.
The slugs of the SSH keys to add.
The IDs of the firewalls to attach.
The IDs of the private networks to join.
Tags as string pairs.
The number of warm servers the pool aims for, from min_size to max_size. The target changes as claims come in, and is 0 while the pool is disabled.
How many warm servers a claim can get now.
How many warm servers are still booting.
How many claims the pool has served.
When the pool was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
When the pool was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
The ID of the team that owns the pool and its servers.