curl --request GET \
--url https://api.sfcompute.com/v0/contracts \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "contract",
"status": "active",
"id": "cont_xyz789",
"created_at": "2024-07-15T22:30:17.426Z",
"instance_type": "h100i",
"shape": {
"intervals": [
"2024-07-16T00:00:00Z",
"2024-07-17T00:00:00Z"
],
"quantities": [
10,
0
]
},
"state": "Active",
"is_node": false,
"procurement_id": "proc_1234567890abcdef"
}
],
"has_more": false
}List contracts
curl --request GET \
--url https://api.sfcompute.com/v0/contracts \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "contract",
"status": "active",
"id": "cont_xyz789",
"created_at": "2024-07-15T22:30:17.426Z",
"instance_type": "h100i",
"shape": {
"intervals": [
"2024-07-16T00:00:00Z",
"2024-07-17T00:00:00Z"
],
"quantities": [
10,
0
]
},
"state": "Active",
"is_node": false,
"procurement_id": "proc_1234567890abcdef"
}
],
"has_more": false
}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.
Filter by instance type
"h100i"
"h100v"
"h200ki"
Start of interval to find active contracts. Must be used with active_within_interval_end An ISO 8601 datetime string
"2025-07-11T20:41:37.423Z"
End of interval to find active contracts. Must be used with active_within_interval_start An ISO 8601 datetime string
"2025-07-11T20:41:37.423Z"
Filter by contract state. Options: "All", "Upcoming", "Active", "Expired". Default excludes expired contracts
Include contracts managed by the Nodes API
Include contracts associated with procurements