Layerbeat

Price a server

POST
/v1/quotes

Returns a VPS purchase price valid for 10 minutes. Pass its id as quote_id when purchasing.

Access: API key: vm:read · Session: any workspace role.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Request Body

application/json
  1. body
currency?string

Selected personal credit balance. Never converts or combines balances.

Value in"USD""IDR"
region*string
plan*string
image*string
term_months*integer

Prepaid term in months.

Range1 <= value

Response Body

Quote

application/json
  1. response
display_idr_per_usd?string

Immutable original display rate. Omitted on legacy quotes or when IDR display is unconfigured. Total uses the selected credit currency.

Match^[0-9]+$
id*string

Pass as quote_id when buying.

expires_at*string
Formatdate-time
total*
wallet*
available*boolean

The combination can be bought.

curl -X POST 'https://layerbeat.com/v1/quotes' \  -H 'Content-Type: application/json' \  -d '{  "region": "sgp",  "plan": "small",  "image": "ubuntu-24-04",  "term_months": 1}'
{  "id": "quote_v7k2m4q9xw3z6tfjn8r5bcdhpa",  "expires_at": "2026-10-01T10:10:00Z",  "total": {    "amount": "12.00",    "currency": "USD"  },  "wallet": {    "shortfall": "0.00"  },  "available": true}