get_server_info
Describes the Postwind node that answered.
- Call it
- to check the connection, and before adding a sending domain, to choose its
dns_providerandip_pool. - Needs
- any valid key, nothing else.
- Returns
version,enabled_subservices,transports(direct,relay:<name>),default_transport,dns_providersandip_pools(name,address_count, andaddressesfor an admin key only, null for a project key); the same asGET /api/v1/server.
Arguments
No arguments.
No other arguments are accepted.
Result
The result comes back as structuredContent, with the same JSON as a text block.
- object · all fields required
-
available_transportsarray of stringThe transports this node can send through now; a message whose transport is not here is not sent (
send_test_emailfails withprecondition_failed,transport_unavailable). Empty until the built-indirectandrelaytransports ship. -
default_transportstringThe transport a project without its own uses.
-
dns_providersarray of stringDNS providers a sending domain may name:
manualalways,porkbunwhen it is configured. -
enabled_subservicesarray of stringSubservices enabled on this node, in start order:
api,mcp,web,smtp.inbound,delivery. -
ip_poolsarray of PoolIP pools by name, for a sending domain’s
ip_pool.3 fields
- Pool object · all fields required
-
address_countinteger · uint≥ 0
-
addressesarray of PoolAddress | nullThe addresses; shown to an admin key only,
nullfor a project key.3 fields
- PoolAddress object · all fields required
-
hostnamestringThe
EHLOname; the address’s PTR points to it. -
ipstring | nullThe local address the node sends from;
null: the system route behind NAT. -
public_ipstring | nullThe public address behind NAT;
nullwhen there is no NAT.
-
namestring
-
transportsarray of stringDelivery transports a project may use:
direct(built in) andrelay:<name>for each configured relay. -
versionstringPostwind version and git commit, as
postwind --versionprints them.
Definitions
Pool
An IP pool: a named set of outbound addresses.
- object · all fields required
-
address_countinteger · uint≥ 0
-
addressesarray of PoolAddress | nullThe addresses; shown to an admin key only,
nullfor a project key.see PoolAddress
-
namestring
PoolAddress
One outbound address of an IP pool.
- object · all fields required
-
hostnamestringThe
EHLOname; the address’s PTR points to it. -
ipstring | nullThe local address the node sends from;
null: the system route behind NAT. -
public_ipstring | nullThe public address behind NAT;
nullwhen there is no NAT.
Errors
A failed call answers isError: true with a code from the same table as the HTTP API, and detail. How tools report errors
HTTP API
The same operation over HTTP: GET /api/v1/server