curl --request GET \
--url https://api.sfcompute.com/v0/contracts/{id} \
--header 'Authorization: Bearer <token>'{
"object": "contract",
"status": "active",
"id": "cont_xyz789",
"created_at": "2024-07-15T22:30:17.426Z",
"instance_type": "h100i",
"shape": {
"intervals": [
"2024-07-16T22:30:16Z",
"2024-07-17T22:30:16Z",
"2024-07-18T22:30:16Z"
],
"quantities": [
10,
20,
0
]
},
"colocate_with": [
"cont_abc456"
],
"cluster_id": "clus_xyz123",
"state": "Active",
"is_node": false,
"procurement_id": "proc_1234567890abcdef"
}Get a contract
curl --request GET \
--url https://api.sfcompute.com/v0/contracts/{id} \
--header 'Authorization: Bearer <token>'{
"object": "contract",
"status": "active",
"id": "cont_xyz789",
"created_at": "2024-07-15T22:30:17.426Z",
"instance_type": "h100i",
"shape": {
"intervals": [
"2024-07-16T22:30:16Z",
"2024-07-17T22:30:16Z",
"2024-07-18T22:30:16Z"
],
"quantities": [
10,
20,
0
]
},
"colocate_with": [
"cont_abc456"
],
"cluster_id": "clus_xyz123",
"state": "Active",
"is_node": false,
"procurement_id": "proc_1234567890abcdef"
}Documentation Index
Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Contract ID
cont_[0-9a-zA-Z_-]{1,21}"cont_k3R-nX9vLm7Qp2Yw5Jd8F"
Contract details
contract "contract"
active, pending cont_[0-9a-zA-Z_-]{1,21}"cont_k3R-nX9vLm7Qp2Yw5Jd8F"
An ISO 8601 datetime string
"2025-07-11T20:41:37.423Z"
"h100i"
"h100v"
"h200ki"
A schedule representing a change of a quantity over time. The schedule changes at intervals[i] to quantity[i]. Intervals are sorted from first to last change.
Show child attributes
Upcoming, Active, Expired Specifies whether this contract is managed by the Nodes API
true
cont_[0-9a-zA-Z_-]{1,21}clus_[0-9a-zA-Z_-]{1,21}"clus_k3R-nX9vLm7Qp2Yw5Jd8F"
"richmond"
The procurement which ordered this contract, if any
"proc_1234567890abcdef"