List servers

Returns the servers owned by the API key's account, with their latest status and metric snapshot. A key restricted to one server returns only that server.

Pagination. page is 1-based; perpage defaults to 25 and is at most 1001. A perpage that is not an integer, is below 1 or above 1001 is silently replaced by 25 (no error). links is present only when meta.total is greater than the page size and contains nextpage, prevpage and lastpage URLs; these URLs carry only page and perpage, so sort, tags and process filters are dropped when you follow them. Re-add them yourself.

Do not paginate when filtering by tags, process or process-cpu. These parameters make the API return up to 999 servers on one page regardless of perpage. The filters are applied after the page is fetched, so meta.total is lowered by the number of servers removed from that page and is not the number of matches across all pages. For accounts with more than 999 servers, results are incomplete.

Empty results. When the account has no servers, or every server is filtered out, the servers key is absent: the body is {"meta": {"total": 0}}.

Costs. process and process-cpu read process snapshots for every returned server and are slow on large accounts.

Servers without process snapshots. With process, such a server gets an empty process array. With process-cpu alone, the code calls count() on a non-array for such a server, which raises a PHP error and most likely fails the whole request with HTTP 500. Combine process-cpu with process only if you accept that, and treat a 500 as "retry without process-cpu".

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
≥ 1
Defaults to 1

1-based page number. 0, empty and non-numeric values give the first page. Negative values are not handled and most likely fail the request with a server error; do not send them.

integer
1 to 1001
Defaults to 25

Servers per page, 1 to 1001. Out-of-range or non-numeric values silently fall back to 25. Ignored (999 is used) when tags, process or process-cpu is sent.

string
enum

Sort order. Any other value, including name, sorts by server id (creation order).

Allowed:
string

Comma-separated tag slugs (not display names). Only servers that have ALL the listed tags are returned. Servers with no tags are excluded. The tags field in the response contains display names, so it cannot be used to build this filter.

string

Process name to look up. Adds a process array to each returned server holding the matching processes from its latest snapshot, and removes servers where nothing matches.

string

Comma-separated CPU conditions of the form gt:N or lt:N, for example gt:50,lt:90. Keeps processes whose CPU percentage is at least N (gt) or at most N (lt) and removes servers left with none. Adds a process array to each server. Malformed conditions are not validated.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json