Create procurement
⚠️ This endpoint is in public preview.
Create a market automation that maintains capacity by placing buy/sell orders.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Body
"node_count"Instance SKU the procurement's orders will fill on. Rejected at submission if the SKU id is not registered.
isku_[0-9a-zA-Z_-]{1,21}"isku_k3R-nX9vLm7Qp2Yw5Jd8F"
Minimum price to sell compute for ($/node-hour). Must contain decimal point. Will be rounded to nearest multiple of $0.000060.
^\d+\.\d+$"2.500000"
Maximum price to buy compute ($/node-hour). Must contain decimal point. Will be rounded to nearest multiple of $0.000060.
^\d+\.\d+$"2.500000"
How far ahead (in minutes) the procurement buys and sells compute. Higher values secure compute further in advance but commit to longer windows that may need to be sold when scaling down, potentially at a loss. Lower values reduce waste but risk compute being unavailable. The window contains this many complete minutes, beginning with the next minute. Buying power must cover each order's full duration.
1 <= x <= 1296001 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Enable/disable the procurement.
Response
Procurement created.
proc_[0-9a-zA-Z_-]{1,21}"proc_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a procurement resource. Format: sfc:procurement:::.
sfc:procurement:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:procurement:<account_id>:<workspace>:<name>"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
wksp_[0-9a-zA-Z_-]{1,21}"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
"procurement""node_count"Deprecated — use pool.
A pool referenced by id and name.
Instance SKU this procurement's orders are pinned to. Carries the SKU's human-readable name when one is registered.
Minimum price to sell compute for ($/node-hour). Must contain decimal point. Will be rounded to nearest multiple of $0.000060.
^\d+\.\d+$"2.500000"
Maximum price to buy compute ($/node-hour). Must contain decimal point. Will be rounded to nearest multiple of $0.000060.
^\d+\.\d+$"2.500000"
How far ahead (in minutes) the procurement buys and sells compute. Higher values secure compute further in advance but commit to longer windows that may need to be sold when scaling down, potentially at a loss. Lower values reduce waste but risk compute being unavailable. The window contains this many complete minutes, beginning with the next minute. Buying power must cover each order's full duration.
1 <= x <= 129600Enable/disable the procurement. Disabling cancels all standing orders.
Unix timestamp.
1738972800
Unix timestamp.
1738972800