Price a server
POST
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.
- A configuration that is not currently on sale returns
409 out_of_stock. A quote does not reserve stock.
header
AuthorizationBearer <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.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
application/json- body
currency?stringSelected personal credit balance. Never converts or combines balances.
Value in
"USD""IDR"region*stringplan*stringimage*stringterm_months*integerPrepaid term in months.
Range
1 <= valueQuote
application/json- response
display_idr_per_usd?stringImmutable original display rate. Omitted on legacy quotes or when IDR display is unconfigured. Total uses the selected credit currency.
Match
^[0-9]+$id*stringPass as quote_id when buying.
expires_at*stringFormat
date-timetotal*wallet*available*booleanThe 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}