Skip to main content
GET
/
v2
/
capacity_transfers
/
{id}
Get capacity transfer
curl --request GET \
  --url https://api.sfcompute.com/v2/capacity_transfers/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "capacity_transfer",
  "id": "<string>",
  "status": "pending",
  "created_at": 1738972800,
  "from_capacity": "<string>",
  "to_capacity": "<string>",
  "zone": "richmond",
  "allocation_schedule_delta": [
    {
      "node_count": 123,
      "start_at": 1738972800,
      "end_at": 1738972800
    }
  ],
  "rejected_reason": "<string>"
}

Authorizations

Authorization
string
header
required

Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.

Path Parameters

id
string
required

Capacity transfer ID

Pattern: cxfr_[0-9a-zA-Z_-]{1,21}
Example:

"cxfr_k3R-nX9vLm7Qp2Yw5Jd8F"

Response

Capacity transfer details.

object
string
default:capacity_transfer
required
read-only
Allowed value: "capacity_transfer"
id
string
required
Pattern: cxfr_[0-9a-zA-Z_-]{1,21}
Example:

"cxfr_k3R-nX9vLm7Qp2Yw5Jd8F"

status
enum<string>
required
Available options:
pending,
executed,
rejected
created_at
integer<int64>
required

Unix timestamp.

Example:

1738972800

from_capacity
string
required
Pattern: cap_[0-9a-zA-Z_-]{1,21}
Example:

"cap_k3R-nX9vLm7Qp2Yw5Jd8F"

to_capacity
string
required
Pattern: cap_[0-9a-zA-Z_-]{1,21}
Example:

"cap_k3R-nX9vLm7Qp2Yw5Jd8F"

zone
string
required
Example:

"richmond"

allocation_schedule_delta
object[]
required

The transfer's allocation schedule, expanded into constant-quantity rectangles. The final rectangle has end_at: null (the unbounded tail); gaps are represented as explicit zero-quantity rectangles.

rejected_reason
string | null

Reason a capacity transfer was rejected.